Wired memory monitoring

Julian Elischer julian at elischer.org
Sat Oct 2 11:20:29 PDT 2004


Jan Srzednicki wrote:
> Hello,
> 
> I am investigating some VM issues on FreeBSD. I have noticed that wired
> memory grows quite rapidly on forking lots of processes. After those
> processes exit, it drops a bit, but still can use about 100MB after
> launching 3000 processes. I think it's not a leak, as subsequent forks
> don't cause it to grow noticeably.
> 
> I'm rather curious what eats all that memory. sysctl vm.zone shows some
> high values, but they're are not high in memory usage terms, even
> considering 50% (or so) efficiency of the slab allocator.
> 
> The question is, are there any other memory inspecting tools that would
> allow me to see where is all that wired memory? And, are there any ways
> to control it's behaviour (eg. to free unused per-process structures and
> data)?
> 
> greetings,
Every thread allocated only shows the thread structure in the zone stats
but there is a 3 page stack allocated with it too which doesn't show up there.




More information about the freebsd-hackers mailing list