Re: [dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Fri, 15 Sep 2017 10:34:48 +0200

> This commit allows to specify (statically) the number of CPU's (ncpu).
> This allows to show the cpu usage relative to 1 CPU.
> So, when 1 cpu is busy, 100% is shown. 2 cpu's busy: 200%, and so on.
> At this point, the configuration of ncpu is static.
>
> When no number is given (the backward compatible option), then
> slstatus thinks it only has 1 cpu and no scaling is done, like it
> used to be.

Eeek,

Could you explain the rationale of this?.

100% means “all resources”, 200% means “twice all resources”, how is
this supposed to be interpreted?

Having 100% on this setup (of 200% max) only means actually 50%, not
100% of supposedly one core and having another core still available.

We are not collecting per-cpu statistics, so it's misleading at best.
If it's a question of “precision” (those are approximate stats), use ‰,
not %.

Thanks
Received on Fri Sep 15 2017 - 10:34:48 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 15 2017 - 10:36:31 CEST