# shared memory file system

**URL:** <https://forums.suse.com/t/shared-memory-file-system/22671>\
**Category:** SLES Configure-Administer\
**Created:** [May 28, 2012, 3:02pm UTC](https://forums.suse.com/t/shared-memory-file-system/22671 "2012-05-28T15:02:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nn3003](https://avatars.discourse-cdn.com/v4/letter/n/eada6e/32.png) [@nn3003](https://forums.suse.com/u/nn3003)\
**Post date:** [May 28, 2012, 3:02pm UTC](https://forums.suse.com/t/shared-memory-file-system/22671/1 "2012-05-28T15:02:07Z")

</div>

Hello !

I have SLES 11 SP1 and I am running Oracle Database on it. It uses shared memory. By default after installation I have some amount of shared memory /dev/shm  
tmpfs 7.8G 3.8G 4.1G 49% /dev/shm  
How can I change this value ? I think by default is is 50 percent of system memory, I need to change it to different value. What configuration parameter do I need to change ? Is it in yast ? /etc/sysconfig ?

Thank you for answer !

---

<div class="post-metadata">

**Author:** ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)\
**Post date:** [May 30, 2012, 10:31am UTC](https://forums.suse.com/t/shared-memory-file-system/22671/2 "2012-05-30T10:31:34Z")

</div>

[QUOTE=nn3003;4849]Hello !

I have SLES 11 SP1 and I am running Oracle Database on it. It uses shared memory. By default after installation I have some amount of shared memory /dev/shm  
tmpfs 7.8G 3.8G 4.1G 49% /dev/shm  
How can I change this value ? I think by default is is 50 percent of system memory, I need to change it to different value. What configuration parameter do I need to change ? Is it in yast ? /etc/sysconfig ?

Thank you for answer ![/QUOTE]

Hi,

These are kernel parameters you are looking to set (like kernel.shmmax / shmall / shmmni) which can be set in /etc/sysctl.conf to have the desired values set across reboots.

This is an older guide based on SLES 9and Oracle 10g but still applies where to find what, do check the Oracle documentation of the version you are using to find the recommended values suited : [http://www.puschitz.com/InstallingOracle10gOnSUSE.shtml](http://www.puschitz.com/InstallingOracle10gOnSUSE.shtml)

Hope that helps,  
Willem

---

<div class="post-metadata">

**Author:** ![enovaklbank](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@enovaklbank](https://forums.suse.com/u/enovaklbank)\
**Post date:** [June 4, 2012, 5:22pm UTC](https://forums.suse.com/t/shared-memory-file-system/22671/3 "2012-06-04T17:22:19Z")

</div>

Yes, by default it has the size of system-ram/2.  
You can enlarge it by remounting it with a different size, e.g.:  
mount -o remount,size=9G /dev/shm

or make it permanent by adding a line to /etc/fstab, e.g.:

none /dev/shm tmpfs remount,size=9G 0 0

---

<div class="post-metadata">

**Author:** ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)\
**Post date:** [June 4, 2012, 10:11pm UTC](https://forums.suse.com/t/shared-memory-file-system/22671/4 "2012-06-04T22:11:57Z")

</div>

[QUOTE=enovaklbank;4944]Yes, by default it has the size of system-ram/2.  
You can enlarge it by remounting it with a different size, e.g.:  
mount -o remount,size=9G /dev/shm

or make it permanent by adding a line to /etc/fstab, e.g.:

none /dev/shm tmpfs remount,size=9G 0 0[/QUOTE]

Interesting… never looked at this in depth, but this is different to what can be set in sysctl?

-Willem
