Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, like the title implies, I want to ask how to change the size of
"/dev/shm" in openSUSE 10.1? I searched the "/etc/sysconfig/kernel" but there's no
"SHMFS_SIZE" line. I tried "mount -o remount,size=$NEWSIZE /dev/shm" but
it said there's no "/dev/shm" in fstab / mtab. What should I do?
I've tried that but didn't work. I've tried changing the kernel.shmall & kernel.shmmax to 2 gigs and 4 gigs and rebooted the comp. Then I tried copying 300 megs of files to "/dev/shm" and it said insufficient disk space.
I've tried changing the kernel.shmall & kernel.shmmax to 2 gigs and 4 gigs and rebooted the comp.
If you changed with sysctl, then rebooted, your changes would be lost… Try changing with sysctl then copying. If you want “permanent” changes, either modify /etc/sysctl.conf or your bootloader’s config file.
Shared memory (/dev/shm) is not used very much so you might not have an entry in fstab. I'm not a memory expert and do not know how shmmax relates to POSIX shared memory or Sys V shared memory but AFAIK tmpfs is dynamic i.e. it will use as much memory as needed until you max out your RAM and swap if a max size not specified. AFAIK /dev/shm is for sharing memory between applications and not used as virtual storage. However you can mount say /tmp as tmpfs.
To specify a max size
tmpfs /dev/shm tmpfs defaults,size=8G 0 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.