Closed one7two99 closed 1 year ago
Can you explain, why you have used delay 0 and iterations 2 in this command?
Good question...
I guess because I didn't want conky
to wait for 1s (your case) or 3s (default) on the execution of the command - --delay
appears to be the time between iterations.
I just double checked and noticed that --iterations 1
will always show zero CPU usage on my host and --delay 1
sometimes also produces high CPU usage; the default as well. IMHO the dom0
CPU usage displayed by xentop
isn't much reliable or possibly shows 100%
for a single CPU (i.e. 4 cores = max 400%), idk.
If you find a more precise way to use xentop
, please let me know.
Hello 3hhh, appreciate your work and took your work as foundation for my own conky setup.
I found out that the calculation done in https://github.com/3hhh/qubes-conky/blob/master/conky_qubesSettings.conf will always show a much higher CPU-utilization for Domain-0 that it is. The root cause seems to be within this code:
More precise:
the last option (-d0 = --delay 0) seems to produce a CPU peak durinf the run of this command, so that CPU utilization is much higher.
Domain-0 CPU utilization with delay > 0
... will be shown as 4,8% (see last line)
CPU utilization with delay = 0
... will be shown as 133% (!) - see last line.
Can you explain, why you have used delay 0 and iterations 2 in this command?