Manual memory usage profiling

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

 



Hello,

I am posting this on this list hoping someone will direct me.
Feel free to forward this to anyone, anywhere. Also, please CC
adonev@princeton.edu to any replies.

I am a scientific programmer and am developing tools for manual
profiling of Fortran programs. There seem to be now several library
API's for obtaining hardware performance statistics under Linux x86 in
the newer 2.4.x kernels, such as the PAPI profiling API. These provide
access to some most useful information such as flops and cache use.

I am also interested in profiling memory usage, in particular heap
usage. But I have been unable to find any libraries or other tools to
instrument a code to obtain some memory usage profiling statistics.
getrusage for example does not seem to work. I am sure the linux kernel
knows about memory allocations/deallocations/swapping and other such
activities of a given process, but I am not sure if the kernel maintains

these statistics and if I can somehow access them, other then
via access to /proc (I don't even know of an API to do that other
than getrusage, which does not seem to work under 2.4 kernels)

I am not an OS programmer, but can deal with a reasonable API if there
is one, even if low level.
Any clues are greatly appreciated.

Thanks,
Aleksandar

P.S. I use Red Hat 7.3 on a Pentium III (and also Athlon)

--
__________________________________
Aleksandar Donev
Complex Materials Theory Group (http://cherrypit.princeton.edu/)
Princeton Materials Institute & Program in Applied and Computational
Mathematics
@ Princeton University
Address:
   419 Bowen Hall, 70 Prospect Avenue
   Princeton University
   Princeton, NJ 08540-5211
E-mail: adonev@princeton.edu
WWW: http://atom.princeton.edu/donev
Phone: (609) 258-2775
Fax: (609) 258-6878
__________________________________




_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux