| Red Hat This forum is for the discussion of Red Hat Linux. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-06-2010, 05:19 PM
|
#1
|
|
LQ Newbie
Registered: May 2010
Posts: 3
Rep:
|
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.
|
|
|
|
05-10-2010, 11:36 AM
|
#2
|
|
Member
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 227
Rep:
|
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.
|
05-10-2010, 11:51 AM
|
#3
|
|
LQ Newbie
Registered: May 2010
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by stuart_cherrington
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
|
|
|
|
05-11-2010, 04:33 PM
|
#4
|
|
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,115
Rep: 
|
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.
|
05-12-2010, 07:56 AM
|
#5
|
|
LQ Newbie
Registered: May 2010
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by DrLove73
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:59 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|