|
| 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
|
|