How do I change Shmmax parameters in Linux?

How do I change Shmmax parameters in Linux?
Answer
You do not need to adjust the default semaphore settings.
  1. Log in as root.
  2. Edit the file /etc/sysctl. conf. …
  3. Set the values of kernel.shmax and kernel.shmall, as follows: echo MemSize > /proc/sys/shmmax echo MemSize > /proc/sys/shmall. …
  4. Reboot the machine using this command: sync; sync; reboot.
 

Tìm kiếm

Back
Top