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.

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.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Micha

Micha

No answer shown.
/etc/sysctl.conf
Or /etc/sysctl.d/ on more recent systems.

Popbi

Popbi

I think answer for this question is:

echo 2148483648 > /proc/sys/kernel/shmmax
or
sysctl -w kernel.shmmax=2148483648

Micha

Micha

Which configuration file …
So no. 🙂

Marco

Marco

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

Marcus

Marcus

#vim /etc/sysctl.conf

kernel.shmmax=2147483648

😡