Skip to contentSkip to conversation

Manual memory usage profiling

DISCUSSION Riley Williams 1 participant 1 message Jul 26, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Aleksandar.

Quoted 6 lines · Aleksandar Donev

Date: Fri, 26 Jul 2002 01:11:16 -0400
From: Aleksandar Donev <[email protected]>
To: [email protected],

	[email protected],
	[email protected]

Subject: Manual memory usage profiling

I'm not sure why you sent this to the Linux-8086 list, unless you are under the misapprehension that it is for the Linux operating system on x86 processors, which it isn't.

The Linux-8086 list is specifically for the development of the ELKS operating system, the "Embeddable Linux Kernel Subset", which is designed for the 8088, 8086 and 80286 processors on which the full Linux kernel will not run.

Best wishes from Riley.

========================================================================

Quoted 56 lines

Hello,

I am posting this on this list hoping someone will direct me. Feel free to forward this to anyone, anywhere. Also, please CC [email protected] 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: [email protected]
WWW: http://atom.princeton.edu/donev
Phone: (609) 258-2775
Fax: (609) 258-6878
__________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html