A soma de% na coluna da CPU não corresponde à linha% da CPU total [duplicada]

6

Não entendo por que a soma de% na coluna da CPU em top não corresponde à linha% da CPU total:

Versãodetextocomvaloresligeiramentediferentes:

ubuntu@server:~$toptop-23:20:21up5:18,3users,loadaverage:10.28,10.36,10.20Tasks:299total,11running,288sleeping,0stopped,0zombie%Cpu(s):41.7us,0.0sy,0.0ni,58.3id,0.0wa,0.0hi,0.0si,0.0stKiBMem:99007376total,83451488used,15555892free,36212buffersKiBSwap:0total,0used,0free.5139148cachedMemPIDUSERPRNIVIRTRESSHRS%CPU%MEMTIME+COMMAND5914ubuntu2002578433961452S1.30.00:05.33htop1473root20037389614441012S1.00.00:03.72automount263root200000S0.30.01:37.69kworker/7:16000ubuntu2002381218641176R0.30.00:00.41top1root2003350029081496S0.00.00:03.87init2root200000S0.00.00:00.36kthreadd3root200000S0.00.00:00.06ksoftirqd/04root200000S0.00.00:00.00kworker/0:05root0-20000S0.00.00:00.00kworker/0:0H6root200000S0.00.00:03.48kworker/u48:07root200000S0.00.01:49.74rcu_sched8root200000S0.00.00:01.74rcuos/09root200000S0.00.00:02.69rcuos/110root200000S0.00.00:01.87rcuos/211root200000S0.00.00:00.90rcuos/312root200000S0.00.00:00.58rcuos/413root200000S0.00.00:01.34rcuos/514root200000S0.00.00:00.79rcuos/615root200000S0.00.00:00.92rcuos/716root200000S0.00.00:00.77rcuos/817root200000S0.00.00:01.51rcuos/9

Oquepoderiaexplicarisso?

htopmostraomesmo:

Ocomputadortem24núcleos.Maisexatamente,éumamáquinavirtualemumclusterOpenStack.

topvideo:

    
por Franck Dernoncourt 31.01.2016 / 05:28

1 resposta

2

Pode ser que top esteja lendo todo o uso das CPUs físicas, não das CPUs virtuais.

Também é possível que existam alguns processos em execução, ocultos para o usuário ubuntu .

Tente também executar ps aux .

Você pode digitar 1 number enquanto executa top para obter informações detalhadas sobre os usos das CPUs.

Aqui está a notação de man top point 2b:

us, user    : time running un-niced user processes
sy, system  : time running kernel processes
ni, nice    : time running niced user processes
id, idle    : time spent in the kernel idle handler
wa, IO-wait : time waiting for I/O completion
hi : time spent servicing hardware interrupts
si : time spent servicing software interrupts
st : time stolen from this vm by the hypervisor

    
por 31.01.2016 / 06:11