1. lshwres -m <managed system> -r mem --level lpar -F lpar_id,run_mem,curr_mem Output: 1,1536,1536 2,2048,2048 3,2048,2048 4,2048,2048 2. lshwres -m <managed system> -r proc --level lpar -F lpar_id,run_proc_units,curr_proc_units Output: 1,0.20,0.20 2,0.20,0.20 3,0.20,0.20 4,0.20,0.20
Currently I am using following formulas for calculating CPU & Memory utilization from the attributes gathered from the commands above.
% Memory Utilization = (run_mem/curr_mem) * 100 % CPU Utilization = (run_proc_units/curr_proc_units) * 100
The problem I am facing here is everytime I calculate CPU/Memory Utilization I get the ratio as 100%.
Is the approach I am using for the calculation is correct or I am missing some important attribute which should be included in the formulas.