On Sun, Jan 17, 2010 at 08:21:27AM -0500, inet_use...@samerica.com wrote:

> Hi,
> 
> How can one find out how much memory is being used by the different
> modules of the obsd system?
> 
> In a system with 1GB running 4.5 I see very little being used by
> processes with top -b. But the reported
> free  is only 155MB.
> 
> load averages:  1.01,  0.77,  0.68    10:19:05
> 31 processes:  1 running, 29 idle, 1 on processor
> CPU states:  2.0% user,  0.4% nice,  0.8% system,  1.5% interrupt,
> 95.3% idle
> Memory: Real: 59M/844M act/tot  Free: 155M  Swap: 0K/1028M used/tot
> 
> What excatly does 59M/844M means?

Your working set is 59M, 844M is in use and 155M unused.  This means
that 59M of your memory is actively used, while 844M is allocated to
processes. 

> Can I get a detailed view of this memory?

The quote above looks like top, and top gives also details, especially
the SIZE and RES columns, which are the size of the process and the in
memory size of the process. You could sort on mem usage: while running
top, type 'o size'

Another way would be ps, in particluar ps axu, look again at the SIZE
and RES columns. 

Note that intepreting the per process statistics can be tricky, since
the memory accounting gets complicated by shared pages and other
stuff. 

        -Otto

Reply via email to