LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-06-2010, 05:19 PM   #1
bgeary
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
tmpfs /dev/shm - file deletion and size determination


Hello:

I was not able to find these answers via a search on google.

1) In our tmpfs /dev/shm we have what seem to be unused/stale files. Can these be safely deleted by using 'rm'.

2) How is the space calculated for tmpfs /dev/shm?
So for instance if we have unused/stale files are these in the calculation of space used?

Red Hat Enterprise Linux Server release 5.4 x86_64


Fs Size Used Avail Use% Mounted on
tmpfs 32G 25G 7.9G 76% /dev/shm

Thank You
bg

Last edited by bgeary; 05-06-2010 at 05:21 PM.
 
Old 05-10-2010, 11:36 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
According to Redhat doc's /dev/shm is 1/2 the physical memory assigned to the server. So, from your 'df' output you should have 64Gb memory in use. /dev/shm is used to store 'Shared Memory' pages for applications running on the server, but it stores the pages in memory so its faster to access. So, no, I wouldn't delete files from here, you could use 'lsof' to check on file/page usage but deleting them seems a little extreme. If you can reboot, then this would safely clean /dev/shm.

HTH

Stuart.
 
1 members found this post helpful.
Old 05-10-2010, 11:51 AM   #3
bgeary
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stuart_cherrington View Post
According to Redhat doc's /dev/shm is 1/2 the physical memory assigned to the server. So, from your 'df' output you should have 64Gb memory in use. /dev/shm is used to store 'Shared Memory' pages for applications running on the server, but it stores the pages in memory so its faster to access. So, no, I wouldn't delete files from here, you could use 'lsof' to check on file/page usage but deleting them seems a little extreme. If you can reboot, then this would safely clean /dev/shm.

HTH

Stuart.

Stuart:

Thanks. The issue we are having is that Oracle says it does not have enough memory to start. We were trying to determine if this is because of stale/leftover files in /dev/shm that were being counted as part of the free/available stats. We only started having this problem recently and this is when we noticed these leftover files. So this is why we are trying to determine if we can delete or even if RH is counting these in the free/availalble memory stats.

Thanks again
bg
 
Old 05-11-2010, 04:33 PM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Red Hat support should be more then competent to provide you with answers since you are paying them to be there when you need them the most.
 
0 members found this post helpful.
Old 05-12-2010, 07:56 AM   #5
bgeary
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DrLove73 View Post
Red Hat support should be more then competent to provide you with answers since you are paying them to be there when you need them the most.
Thanks. I am trying to get my account setup with them but it is taking a bit long. So yes I will be contacting them.


Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/shm not mounted /dev busy compgenius999 Linux - Newbie 1 03-03-2010 11:12 AM
Sizes of /dev /dev/shm /lib/init/rw jmoschetti45 Linux - Server 0 01-25-2010 11:20 AM
Changing the size of "/dev/shm" in openSUSE 10.1 g4j31a5 Linux - General 4 04-26-2007 12:18 PM
Tmpfs on /dev/shm kundor Linux - General 6 03-11-2007 10:57 PM
where is "tmpfs", with /dev/shm ? SChipS Linux - General 2 04-28-2005 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration