From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Description of problem: We want to report runtime memory usage in our application running on linux 64bit. We do not know any API which we can use it in our application so that it reports correct result over 2GB of memeory. So please let me know if there is any API for the same. Suppose there is no such API present in the current release, then could you send us a shared library which we can overload in our application which will keep track of the memory usage and report it correctly. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Whenever we run our application and the meemory usage goes more than 2GB 2. 3. Actual Results: As we use the mallinfo, it returns in correct info above 2GB Expected Results: Correct usage reeport Additional info:
I believe the getrusage() system call provides the info you need. The /proc/self/{stat,statm,maps} pseudo-devices provide further info, but you'd need to read the kernel source (fs/proc/array.c) to learn how to interpret the format.
*** Bug 181350 has been marked as a duplicate of this bug. ***
*** Bug 181351 has been marked as a duplicate of this bug. ***
*** Bug 181352 has been marked as a duplicate of this bug. ***
*** Bug 181353 has been marked as a duplicate of this bug. ***
*** Bug 181354 has been marked as a duplicate of this bug. ***
*** Bug 181355 has been marked as a duplicate of this bug. ***
*** Bug 181356 has been marked as a duplicate of this bug. ***