• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

how to free tmpfs

 
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 81
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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):


 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic