Originally posted by: rufenro
I use a script that calls "iostat -t 1 2" then parses the ouptut and adds up the sys%, user%, and wait% to get the total percent of cpu usage. The script then saves that to a file which is loaded into a database for historical tracking/graphing.
The problem I am running into is that my lpars are showing as a lot busier than I think they really are. I did a test where I ran the same script only using "lparstat 1 1" instead of iostat. These were both run out of cron at the same time on an LPAR running Oracle & AIX 5.3 TL9 SP2. Here are the most recent results with iostat - format is date/time,cpu%:
05/19/2010 21:12,109
05/19/2010 21:17,112
05/19/2010 21:22,107
05/19/2010 21:27,108
05/19/2010 21:33,1
05/19/2010 21:37,109
05/19/2010 21:42,108
05/19/2010 21:47,102
05/19/2010 21:52,106
05/19/2010 21:57,101
Here are the same times/dates with lparstat:
05/19/2010 21:12,58
05/19/2010 21:17,53
05/19/2010 21:22,59
05/19/2010 21:27,56
05/19/2010 21:33,40
05/19/2010 21:37,58
05/19/2010 21:42,52
05/19/2010 21:47,53
05/19/2010 21:52,57
05/19/2010 21:57,52
Why the huge difference? Which one is more accurate?
#AIX-Forum