On Fri, 2008-08-01 at 12:42 +0700, Jean Jordaan wrote: > Hi all > > I noticed these lines while running top on a system: > > Mem: 8310816k total, 8007528k used, 303288k free, 32512k > buffers > Swap: 0k total, 0k used, 0k free, 1688920k > cached > > I don't know how to interpret that Swap line. How can there be 0k > swap? And if there's 0k swap, what does that 'cached' memory mean?
i believe "top" grabs its output from /proc/meminfo and to learn more about what's there - i think you can take a look at kernel documentation/filesystems/proc.txt ... look for the section on meminfo here are 2 that you might be interested in Cached: in-memory cache for files read from the disk (the pagecache). Doesn't include SwapCached SwapCached: Memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O) hope this helps :) _______________________________________________ Slugnet mailing list [email protected] http://wiki.lugs.org.sg/LugsMailingListFaq http://www.lugs.org.sg/mailman/listinfo/slugnet
