trouble getting memory and swap info

Joerg Sonnenberger joerg at
Thu Oct 28 00:28:47 PDT 2004

On Thu, Oct 28, 2004 at 02:17:03AM +0200, Sten Spans wrote:
> On fbsd4 and probably dragonfly a program needs
> setgid kmem for certain memory statistics, which is
> why top works and gkrellm doesn't.

If you have details to which statistics are only available via kmem
and not by sysctl, tell me. We can easily add sysctl handlers for them
and remove the setgid kmem requirement from top and other such tools.
I don't like the idea of userland reading kernel memory directly at all.


More information about the Kernel mailing list