Dear Kiean Khuan
CPU % you see in WRKACTJOB or WRKSYSSTS is tricky. If you keep pressing F5, you will see an "average" value over a period of time you see in Elapse Time field. If the Elapse Time is longer than a few minutes and there has been a lot of workload fluctuation, the "average" CPU % can be misleading. (F5 is better used to see "accumulation" value such as CPU Time or IO Count or memory faulting, etc.)
I generally suggest you press F10 instead because F10 captures "instantaneous" CPU %. In WRKSTSACT, if I remember correctly, it F10s itself automatically every 10 seconds. So, CPU % is at worse averaged over 10 seconds.
Wen you SELECT from IBM i service table function, from this explanation https://www.ibm.com/docs/en/i/7.3?topic=services-active-job-info-table-function, the answer is "The percent of processing unit time attributed to this job during the measurement time interval." I have no idea what this time interval" means. You can ask this by opening a service request from IBM service web site.
BTW, what is the end goal you want to achieve? I ask this because, perhaps, using IBM i Performance Data Investigator (PDI) charts mat be the answer to what you want. Google with "ibm i pdi" to learn more or ask more questions here.
------------------------------
Satid S
------------------------------
Original Message:
Sent: Thu August 15, 2024 09:42 PM
From: Kiean Khuan Ooi
Subject: CPU utilisation Monitoring
Hi All,
We are required to monitor CPU utilisation for IBM i V7R5 & V7R4 running on Power 9 and Power 8 servers respectively.
The CPU % in WRKACTJOB and Overall CPU utilisation in WRKSYSACT both giving diffrent reading? Which one
is recommended for monitoring? Also for CPU % in WRKACTJOB, when we used SQL command
SELECT SUM(ELAPSED_CPU_PERCENTAGE) FROM table(QSYS2.ACTIVE_JOB_INFO())
The reading seems not tally with the CPU % in WRKACTJOB. Did we use the corrent command and extract the correct table
Thanks
Ooi K K
------------------------------
Kiean Khuan Ooi
------------------------------