[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getloadavg on aix5
From: |
Peter O'Gorman |
Subject: |
getloadavg on aix5 |
Date: |
Mon, 7 Jan 2008 11:11:17 -0600 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
Hi,
While getloadavg works ok on aix4, it returns incorrect results on
aix5.
Why do we not use libperfstat on aix?
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.basetechref/doc/basetrf1/perfstat_cputot.htm
It has the advantage of not requiring root privs to get the loadavg.
Anyway, this resulted in more accurate results for us.
Peter
--- lib/getloadavg.c~ 2008-01-07 16:03:48.239700086 +0000
+++ lib/getloadavg.c 2008-01-07 16:26:43.014094746 +0000
@@ -255,7 +255,11 @@
# endif
# ifdef _AIX
-# define LOAD_AVE_TYPE long
+# ifdef _AIX51
+# define LOAD_AVE_TYPE long long
+# else
+# define LOAD_AVE_TYPE long
+# endif
# endif
# ifdef convex
- getloadavg on aix5,
Peter O'Gorman <=