mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
0d6e63abdc
Physical machine information does not include any monotonically increasing time field like other per CPU information blocks. This Prevents the percentage calculation for the physical information fields as the divisor(time_delta) is missing; field% = (value_current - value_previous) / time_delta To circumvent that, use the current partition's per CPU online time values to calculate the time_delta. Integrate time_delta as a new field(phys_delta_us) specific to the physical systems. Explicitly CPU0 online time is used, since CPU0 is always online and cannot be deconfigured on s390x. Its online-time deltas would match those of the physical CPUs. Since a new field has to be used for physical systems a new column in the table also has to be created but instead map the physical system field to the corresponding regular system fields for a nicer table view. Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Mete Durlu <meted@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
11 KiB
11 KiB