aspose file tools*
The moose likes Linux / UNIX and the fly likes how to free tmpfs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to free tmpfs" Watch "how to free tmpfs" New topic
Author

how to free tmpfs

James Tharakan
Ranch Hand

Joined: Aug 29, 2008
Posts: 580

I am getting issues like no free memory
I am trying to find how to and from where can i delete the contents from the tmpfs
I tried restarting the machine which did not help.


df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 39G 20G 17G 55% /
/dev/sda3 186G 175G 1.4G 100% /rhel5pdi
tmpfs 755M 0 755M 0% /dev/shm



Thanks


SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

James,

As per your logs your tmpfs is 100% free and that is maintained automatically by OS and if sometimes it is full, restart can do the needful. Restart clears everything in tmpfs.

As per your output it is /dev/sda3 186G 175G 1.4G 100% /rhel5pdi which seems to be culprit.


SCJP SCWCD AIX SOA
The significant problems we face cannot be solved by the same level of thinking that created them -- Albert Einstein

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I'm not sure how RedHat manages memory, but afaik, tmpfs is something different from swap, and for free memory you need, if something from an harddrive, then swap.

Swap isn't measured and reported with df but with 'free':

To search for your swap space, you may use fdisk -l with sudo (sda3 on my system):



http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to free tmpfs
 
Similar Threads
Resource not found on linux machine restart
Problem with installing db2 udb 8.1 version on RH 7.1
Ant - Try to increase heap size error
Memory in Ubuntu installation
odd cd-rw behavior Mandrake 10.0 official