[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ps vs free again

Shao Zhang <shao@cia.com.au> writes:
SZ> I just tried top, but it seems it is showing the same info as free
SZ> which is included the memory cached but can be freed if another
SZ> program requests in the memory used section.
SZ> What I want to know is the exact amount memory used by system, I
SZ> don't want the cached memory.

{3} dmaze% free
             total       used       free     shared    buffers     cached
Mem:         47388      46280       1108      18440       1908      13340
-/+ buffers/cache:      31032      16356
Swap:       101216       6304      94912

I think the first number on the "-/+ buffers/cache" line is the number 
you're looking for.

David Maze             dmaze@mit.edu          http://donut.mit.edu/dmaze/
"Hey, Doug, do you mind if I push the Emergency Booth Self-Destruct Button?"
"Oh, sure, Dave, whatever...you _do_ know what that does, right?"

Reply to: