Unix Programming - How to find no. of pages being used by a process from its core?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2004 > How to find no. of pages being used by a process from its core?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to find no. of pages being used by a process from its core?
Mark

2004-11-25, 5:53 pm

Hi,

I have a core of a process that cored due to failed malloc() call.
Using information from core it was found that process has currently
asked for 1/4th of the total memory that it can be allocated
(we maintain per-malloc call size/number statistics internally,
total memory limit was found doing getrlimit(RLIMIT_DATA, (struct
rlimit *)s).

Now due to internal fragmentation it *may* be possible that even if
program has currently asked for 1/4th of it allocated limit, based on
frequency of malloc()-free() calls, the memory may have become
internally fragmented so much that the process ends up using all its
allocated memory.

From the core of the process, is it possible to find no. of hardware
pages being used by a process.

More specifically how to access the "u area" of a process.

OS being used is FreeBSD.

Any help in this regard is sincerely appreciated

Thanks
Steve
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com