Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1071839
  • 博文数量: 132
  • 博客积分: 612
  • 博客等级: 中士
  • 技术积分: 1389
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-14 16:06
文章分类

全部博文(132)

文章存档

2015年(2)

2014年(55)

2013年(53)

2012年(2)

2011年(20)

分类: LINUX

2014-07-08 10:18:01

1.首先修改系统共享内存的默认值来满足对申请大内存的需求:


主要步骤为:
1  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.

2  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.

3  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.

Read more :
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.

Read more :
  • 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.

  • 2

    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.

  • 3

    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.



  • Read more :

    nstructions

      • 1

        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.

      • 2

        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.

      • 3

        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.



    Read more :

    nstructions

      • 1

        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.

      • 2

        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.

      • 3

        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.



    Read more :

    nstructions

      • 1

        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.

      • 2

        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.

      • 3

        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.



    Read more :
    阅读(1619) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~