Memory information relations



Hi,

I would like to know what are exact relations between these 3 memory
information printouts:

top:

Mem: 157M Active, 127M Inact, 60M Wired, 25M Cache, 60M Buf, 125M Free
Swap: 998M Total, 998M Free

sysctl -a | grep Mem:

Virtual Memory: (Total: 78781K, Active 798692K)
Real Memory: (Total: 497676K Active 174300K)
Shared Virtual Memory: (Total: 28884K Active: 22684K)
Shared Real Memory: (Total: 13768K Active: 10812K)

sysctl -a | grep mem:

hw.physmem: 527667200
hw.usermem: 453668864
hw.realmem: 536608768

So I would like to understand exactly which number is the sum of other
numbers here.

I have already read this paper: http://www.absolutebsd.com/AbsoluteBSD18.pdf
but still I don't even know exact relations between the numbers in "top" printout.

Thanks,
Nejc

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Relevant Pages

  • Re: sysctl spinning (was: Re: ps Causes Hard Hang)
    ... >> hang if you're trying to use the syscons break to debugger, ... >> to debugger can get into DDB fine. ... It looks like the sysctl code is ... I'm wonder if it was the recent limits on locked memory ...
    (freebsd-current)
  • Re: mlock(2), unprivileged users, and RLIMIT_MEMLOCK
    ... Due to bugs in seahorse, ... wiring-down RLIMIT_MEMLOCK bytes of memory in an effort to steal away ... we could leave the per-process limit (to abide by ... is used by quite a few sysctl handlers. ...
    (freebsd-current)
  • Re: PATCH - raise max_anon limit
    ... > It would be better to lose the sysctl and do it all dynamically. ... > Simple, a bit crufty, doesn't release memory. ... > Each entry in the radix tree can be a bitmap (radix-tree.c should ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: sysctl spinning (was: Re: ps Causes Hard Hang)
    ... It looks like the sysctl code is ... I'm wonder if it was the recent limits on locked memory ... userland passed a large output buffer to the sysctl call. ... EAGAIN will only be returned when this condition ...
    (freebsd-current)
  • Re: ACPI slowing CPU... or something else
    ... avail memory = 121630720 ... ACPI disabled by blacklist. ... cpu0: <ACPI CPU> on acpi0 ... If I understand the 'sysctl' output, ...
    (freebsd-questions)