[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Bizarre process memory usage



On Wed, 12 Feb 2003, Christopher Wong wrote:
> I am having some trouble interpreting the Linux memory stats for a program
> I am writing, and wonder if anyone has suggestions. Briefly, top thinks it
> has a footprint of 708K while ps thinks it is a whopping 12MB in size.  
> This is a small daemon that only links to libc and libm. It does not do
> anything extraordinary apart from servicing and making RPC calls.  
> Running profilers like memprof and memusage (from glibc-common) tells me
> that it only uses about 40K of heap. This leaves me at a loss as to where
> that 12MB footprint is coming from. It's not from the heap, nor from the
> tiny executable nor any wierd library. Yet when it dumps core it's 
> a 12MB file. Any ideas?

Never mind. I "misunderestimated" the static data part. I'm so 
embarrassed. Sorry.

Chris






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]