A database application requires a maximum shared memory segment (shmmax) of 2GB (2147483648 Bytes).
Which configuration file should be modified, to set this kernel parameter permanently? Please enter the complete path to the file.
Which configuration file should be modified, to set this kernel parameter permanently?
A database application requires a maximum shared memory segment (shmmax) of 2GB
(2147483648 Bytes).
Which configuration file should be modified, to set this kernel parameter permanently? Please enter
the complete path to the file.
No answer shown.
/etc/sysctl.conf
Or /etc/sysctl.d/ on more recent systems.
I think answer for this question is:
echo 2148483648 > /proc/sys/kernel/shmmax
or
sysctl -w kernel.shmmax=2148483648
Which configuration file …
So no. 🙂
To determine the maximum size of a shared memory segment, run:
# cat /proc/sys/kernel/shmmax
2147483648
The default shared memory limit for SHMMAX can be changed in the proc file system without reboot:
# echo 2147483648 > /proc/sys/kernel/shmmax
Alternatively, you can use sysctl(8) to change it:
# sysctl -w kernel.shmmax=2147483648
To make a change permanent, add the following line to the file /etc/sysctl.conf (your setting may vary). This file is used during the boot process.
# echo “kernel.shmmax=2147483648” >> /etc/sysctl.conf
#vim /etc/sysctl.conf
kernel.shmmax=2147483648
😡