does getrusage() return physical I/O stats?

does getrusage() return physical I/O stats?

Post by Aman Sin » Fri, 28 Jun 2002 10:12:07

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?

Aman Sinha


1. Getrusage stats under Linux

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.


~  "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)            ~

2. SunOs 4.x fork difference

3. getrusage vs /proc/pid/stat?

4. Confirming available RAM

5. getrusage returns zeros

6. NYC Talk on SATAN, Firewalls & Security

7. Physical address of kernel memory returned by ddi_umem_alloc()?

8. Sound Blaster Live! Problems

9. stat returns wrong info

10. Converting date returned by stat

11. "stat" returning incorrect file size, why?

12. stat() not returning what I had expected

13. What does the value returned by st_mtime in the stat structure mean?