Advertisement
hackerboxes

liunx share memory

Jun 19th, 2013
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. 设置linux的共享内存
  2. [root@neirongroot]# echo 1073741824 > /proc/sys/kernel/shmmax
  3.  
  4.  
  5.  
  6. [root@neirongroot]# more /proc/sys/kernel/shmmax
  7.  
  8.  
  9.  
  10. 1073741824这里设为1G。
  11.  
  12.  
  13.  
  14. 对于shmmax文件的修改,系统重新启动后会复位。可以通过修改/etc/sysctl.conf使更改永久化。
  15.  
  16.  
  17.  
  18.   在该文件内添加以下一行 kernel.shmmax = 1073741824 这个更改在系统重新启动后生效.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement