Acquire root privileges. Administrator-level privileges are required to adjust the shared memory limit on your Linux machine. Log in as the "root" user, or use the "sudo" or "su" commands when logged in as a normal user.
分类: LINUX
2014-07-08 10:18:01
Acquire root privileges. Administrator-level privileges are required to adjust the shared memory limit on your Linux machine. Log in as the "root" user, or use the "sudo" or "su" commands when logged in as a normal user.
Adjust the "kernel.shmmax" kernel parameter to the desired size with the "sysctl" command. For example, running "sysctl -w kernel.shmmax=17179869184" allows shared memory regions of up to 16GB.
Edit the file /etc/sysctl.conf to make the change persist across reboots. The system reads this file at boot time to set the default values for various parameters. Using the "sysctl" command to change kernel.shmmax only alters its value until the next time the computer is rebooted. To make the change permanent, add a line such as "kernel.shmmax=17179869184" to the end of that file.
Acquire root privileges. Administrator-level privileges are required to adjust the shared memory limit on your Linux machine. Log in as the "root" user, or use the "sudo" or "su" commands when logged in as a normal user.
Adjust the "kernel.shmmax" kernel parameter to the desired size with the "sysctl" command. For example, running "sysctl -w kernel.shmmax=17179869184" allows shared memory regions of up to 16GB.
Edit the file /etc/sysctl.conf to make the change persist across reboots. The system reads this file at boot time to set the default values for various parameters. Using the "sysctl" command to change kernel.shmmax only alters its value until the next time the computer is rebooted. To make the change permanent, add a line such as "kernel.shmmax=17179869184" to the end of that file.
Acquire root privileges. Administrator-level privileges are required to adjust the shared memory limit on your Linux machine. Log in as the "root" user, or use the "sudo" or "su" commands when logged in as a normal user.
Adjust the "kernel.shmmax" kernel parameter to the desired size with the "sysctl" command. For example, running "sysctl -w kernel.shmmax=17179869184" allows shared memory regions of up to 16GB.
Edit the file /etc/sysctl.conf to make the change persist across reboots. The system reads this file at boot time to set the default values for various parameters. Using the "sysctl" command to change kernel.shmmax only alters its value until the next time the computer is rebooted. To make the change permanent, add a line such as "kernel.shmmax=17179869184" to the end of that file.
Acquire root privileges. Administrator-level privileges are required to adjust the shared memory limit on your Linux machine. Log in as the "root" user, or use the "sudo" or "su" commands when logged in as a normal user.
Adjust the "kernel.shmmax" kernel parameter to the desired size with the "sysctl" command. For example, running "sysctl -w kernel.shmmax=17179869184" allows shared memory regions of up to 16GB.
Edit the file /etc/sysctl.conf to make the change persist across reboots. The system reads this file at boot time to set the default values for various parameters. Using the "sysctl" command to change kernel.shmmax only alters its value until the next time the computer is rebooted. To make the change permanent, add a line such as "kernel.shmmax=17179869184" to the end of that file.