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 |
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. |
Quote:
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 |
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.
|
Quote:
Thanks |
All times are GMT -5. The time now is 10:47 AM. |