Getrusage stats under Linux

Getrusage stats under Linux

Post by Nicolas G Leshoc » Tue, 26 Sep 1995 04:00:00



Hi, I'm currently running GCC 2.6.3 under LINUX kernel version 1.2.1
and I'm not getting any kind of statistics reporting from any calls
to getrusage.  I get the processor time but no reports on the page
faults, resident set size, or context switches.  Does the kernel
support these reporting facilities.

I tried calling getrusage before running BS operations on a very large
array in order to induce large amounts of paging.  No results. Zeros
reported for ru_ixrss,ru_maxrss,ru_nvcs, and maj and min page faults.

Can anyone help me out?

Thanks in advance.

Nick
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~  "Go, sir, gallop, and don't forget that the world was made in  ~
~   six days.  You can ask me for anything you like, except       ~
~   time."                                                        ~
~                 Napoleon Bonaparte to an aide (1803)            ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
 
 

1. does getrusage() return physical I/O stats?

I am using AIX 4.3.1 and 4.3.2 on two different machines (one is
64 bit, another is 32 bit) - I always get 0 block reads and writes
from getrusage(), regardless of how much data I read or write.  This
despite the fact that the major and minor page faults show up as
fairly high numbers (a few thousands).  
Can anyone confirm if this is a known limitation of AIX? Is there
any other system call I can use to get the right block reads/writes?

Thanks,
Aman Sinha

2. umass0: Phase Error, residue = 0

3. getrusage vs /proc/pid/stat?

4. KVM Switches for Linux and Windows

5. LISP-STAT (or XLISP-STAT) under Linux?

6. Local mouse/kbd with remote display

7. Urgent: "lpc stat" and "lpc stat lj02" gives different result

8. sharing of pages

9. Wrong time from stat.st_atime using stat()

10. /proc/stat does not show disk_io stats for all IDE d isks

11. /proc/stat does not show disk_io stats for all IDE disks

12. strange runtime problem: struct stat, sys/stat.h

13. Linux, Dual-Pentium and getrusage