Over 100% CPU utilization when using sar in multi-core environments

Asked 2 years ago, Updated 2 years ago, 48 views

Red Hat Enterprise Linux Server 5.3 uses sysstat 7.0.2-11.el5.

I am running a script that aggregates the previous day's health with the sar command, but sometimes CPU utilization exceeds 100% in a multi-core environment, and sometimes the script displays the error "Please give a smaller interval value".

Is it possible to avoid this error somehow?

linux

2022-09-30 20:52

1 Answers

Why don't you give them a version for now?Version 10.2.0 clearly fixes the multi-CPU calculation.I haven't seen from which version the fix was made.

350/*Reduce interval value to one processor*/
351 if(cpu_nr>1){
352itv = get_interval (uptime0[prev], uptime0[curr]);
353         }
354 else {
355 itv = g_itv;
356         }

mpstat.c


2022-09-30 20:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.