total system memory usage

2010-01-17 Thread inet_user23
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.6810: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?

Can I get a detailed view of this memory?

Thanks in advance.

Regards,

Jose



Re: total system memory usage

2010-01-17 Thread Otto Moerbeek
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.6810: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



Re: total system memory usage

2010-01-17 Thread Tomas Bodzar
For similar quick overview you can use :

vmstat 1 5

column avm will be your 49MB and free will be your 155MB. From this
output you can see more details about your VM system and if your
system is ok or going to hell.

For more details you can use these commands :

vmstat -vm | more
vmstat -sv | more

You can find some good info in output of systat(1) too.

For process specific you can use 'ps aux' or 'top' and sort with o
option in top(1)

On Mon, Jan 18, 2010 at 7:19 AM, Otto Moerbeek o...@drijf.net wrote:
 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 B is only 155MB.

 load averages: B 1.01, B 0.77, B 0.68 B  B 10:19:05
 31 processes: B 1 running, 29 idle, 1 on processor
 CPU states: B 2.0% user, B 0.4% nice, B 0.8% system, B 1.5% interrupt,
 95.3% idle
 Memory: Real: 59M/844M act/tot B Free: 155M B Swap: 0K/1028M used/tot

 What excatly does 59M/844M means?

 Your working set is 59M, 844M is in use and 155M unused. B 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.

 B  B  B  B -Otto