configuration-guide.com

simple configuration guide for your computer related tasks

Menu
Menu

how to change shared memory linux kernel

Posted on January 26, 2019February 23, 2019 by voidzzz

if you ever need to change the size of your kernel shared memory in linux due to some error like memory allocation error or other shared memory error, you might need to increase your shared memory size in linux kernel.

  1. login to console with user that have root access
  2. edit /etc/sysctl.conf file using any of your favorite editor (if you use vi, type : vi /etc/sysctl.conf)
  3. change entry ini kernel.shmall (ie. kernel.shmall = 12884901888 for 12 GB of shared memory allocation). to get the number, simply calculate 12 x 1024 x 1024 x 1024 for 12 GB or 8 x 1024 x 1024 x 1024 for 8 GB
  4. save the file (if you use vi, type in :wq to save and quit)

Reboot your linux system for changes to take effect.

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

User Control Panel

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Configuration Category

©2022 configuration-guide.com | Built using WordPress and Responsive Blogily theme by Superb