We have issue with temfs filesystem on red hat linux

Hi experts,

We have issue with tempfs filesystem on redhat Linux box.
Memory = 20GB
SWAP = 41 GB
tmpfs = 11 Gb

Some times the tmpfs (/dev/shm) is filled up with 90 to 95 % and SAP application responding very very slow.  

1. How exactly shared memory is works?
2. What is thumb rule for creating shared memory ?
3. What is solution for above issue?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

/dev/shm a.k.a the shared memory is concept which shares memory between programs. Very rarely you would see issues with /dev/shm on Linux OS'
What is your 'top' like? Does your SAP app configured to use /dev/shm and what are its settings. I haven't used SAP at all so I won't be able to tell you what settings need to be tweaked. Perhaps other experts can help..
MaddyUNIXAuthor Commented:
Hi Lego,

Yes, SAP app configured to use /dev/shm.
Do you know if a setting has been configured for the app to use an amount of memory from /dev/shm. If not, check logs for the app, /var/og/messages, dmesg any logs for some clues. A trivial error can be useful for debug.
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

MaddyUNIXAuthor Commented:
Hi lego,

No clues, in logs... I need to know.  

1. How exactly shared memory is works?
2. What is thumb rule for creating shared memory ?
3. What is solution for above issue?


Here are some pointers on how to push through after going through some sites. It seems SAP needs the /dev/shm to be 75% RAM + Swap.

Warning: tmpfs at /dev/shm is configured quite small with 1024 MB!
 Minimum value is 2048 MB.
 Recommended size is 75 % of RAM + swap. In your case you are just above 50%.

Here is another link on how a user was guided on checking certain settings.


For your questions,
Shared memory is a concept for data sharing between programs.
There isn't any rule for creating /dev/shm unless specified or unless there is a reason to take advantage of its capabilities.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MaddyUNIXAuthor Commented:
Hi lego,

I have few more qustions:

1.  In 22GB of RAM , if i allocate tempfs (/dev/shm) 11GB . The 11GB shm is fully occupied in RAM (ramdisk) or it will extend on demand or allocated 11GB reserved.

2. What disadvantages we have configuring shm? What are the limitations?

3. It shm is 80 to 90 % full what will happens?


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.