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 <[email protected]> wrote:
> On Sun, Jan 17, 2010 at 08:21:27AM -0500, [email protected] 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

Reply via email to