Why does top's CPU breakdown (option 1) in default non-irix mode show conflicting results?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm running some benchmarks on various forks of bitcoind
and I noticed some conflicting values when running top
.
In the screenshot below, there is an even spread of ~30% cpu utilization across each of the 8 cpus. But in the list view below it, bitcoind
shows 105% CPU. Given that this is not in Irix mode, that means that bitcoind
is using 100% of 1 cpu. But it is not displaying that way in the breakdown above. Further, the Python processes I'm running report ~40% each in the bottom readout, but none of the cpus on top read ~40%.
The machine does indeed have 8 physical cores, running Ubuntu non-virtualized.
What's going on here?
For comparison, here's running stress
on 8 cpus with the same top
display. Notice that 8 cpus each have 100% utilization, and the 8 stress
processes each have a 100% report.
Update: indeed the variant I was testing is multithread and the H
option showed the breakdown, thanks @TheGeek
top cpu-usage processes
add a comment |Â
up vote
0
down vote
favorite
I'm running some benchmarks on various forks of bitcoind
and I noticed some conflicting values when running top
.
In the screenshot below, there is an even spread of ~30% cpu utilization across each of the 8 cpus. But in the list view below it, bitcoind
shows 105% CPU. Given that this is not in Irix mode, that means that bitcoind
is using 100% of 1 cpu. But it is not displaying that way in the breakdown above. Further, the Python processes I'm running report ~40% each in the bottom readout, but none of the cpus on top read ~40%.
The machine does indeed have 8 physical cores, running Ubuntu non-virtualized.
What's going on here?
For comparison, here's running stress
on 8 cpus with the same top
display. Notice that 8 cpus each have 100% utilization, and the 8 stress
processes each have a 100% report.
Update: indeed the variant I was testing is multithread and the H
option showed the breakdown, thanks @TheGeek
top cpu-usage processes
1
there's absolutely no problem here. you have 800% of CPU available, top makes a ratio between the CPU time consume by your process and the CPU time a CPUi core is capable to handle. If you have a multi threaded process such as crypto mining the whole process if well written could consume 105% spread between all your CPU core. There's no problem here
â Kiwy
Apr 29 at 13:00
@kiwy oh no problem here, the issue is with my understanding the output e.g.PICNIC
â y3sh
May 1 at 13:49
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running some benchmarks on various forks of bitcoind
and I noticed some conflicting values when running top
.
In the screenshot below, there is an even spread of ~30% cpu utilization across each of the 8 cpus. But in the list view below it, bitcoind
shows 105% CPU. Given that this is not in Irix mode, that means that bitcoind
is using 100% of 1 cpu. But it is not displaying that way in the breakdown above. Further, the Python processes I'm running report ~40% each in the bottom readout, but none of the cpus on top read ~40%.
The machine does indeed have 8 physical cores, running Ubuntu non-virtualized.
What's going on here?
For comparison, here's running stress
on 8 cpus with the same top
display. Notice that 8 cpus each have 100% utilization, and the 8 stress
processes each have a 100% report.
Update: indeed the variant I was testing is multithread and the H
option showed the breakdown, thanks @TheGeek
top cpu-usage processes
I'm running some benchmarks on various forks of bitcoind
and I noticed some conflicting values when running top
.
In the screenshot below, there is an even spread of ~30% cpu utilization across each of the 8 cpus. But in the list view below it, bitcoind
shows 105% CPU. Given that this is not in Irix mode, that means that bitcoind
is using 100% of 1 cpu. But it is not displaying that way in the breakdown above. Further, the Python processes I'm running report ~40% each in the bottom readout, but none of the cpus on top read ~40%.
The machine does indeed have 8 physical cores, running Ubuntu non-virtualized.
What's going on here?
For comparison, here's running stress
on 8 cpus with the same top
display. Notice that 8 cpus each have 100% utilization, and the 8 stress
processes each have a 100% report.
Update: indeed the variant I was testing is multithread and the H
option showed the breakdown, thanks @TheGeek
top cpu-usage processes
edited Apr 30 at 15:59
asked Apr 29 at 4:38
y3sh
1033
1033
1
there's absolutely no problem here. you have 800% of CPU available, top makes a ratio between the CPU time consume by your process and the CPU time a CPUi core is capable to handle. If you have a multi threaded process such as crypto mining the whole process if well written could consume 105% spread between all your CPU core. There's no problem here
â Kiwy
Apr 29 at 13:00
@kiwy oh no problem here, the issue is with my understanding the output e.g.PICNIC
â y3sh
May 1 at 13:49
add a comment |Â
1
there's absolutely no problem here. you have 800% of CPU available, top makes a ratio between the CPU time consume by your process and the CPU time a CPUi core is capable to handle. If you have a multi threaded process such as crypto mining the whole process if well written could consume 105% spread between all your CPU core. There's no problem here
â Kiwy
Apr 29 at 13:00
@kiwy oh no problem here, the issue is with my understanding the output e.g.PICNIC
â y3sh
May 1 at 13:49
1
1
there's absolutely no problem here. you have 800% of CPU available, top makes a ratio between the CPU time consume by your process and the CPU time a CPUi core is capable to handle. If you have a multi threaded process such as crypto mining the whole process if well written could consume 105% spread between all your CPU core. There's no problem here
â Kiwy
Apr 29 at 13:00
there's absolutely no problem here. you have 800% of CPU available, top makes a ratio between the CPU time consume by your process and the CPU time a CPUi core is capable to handle. If you have a multi threaded process such as crypto mining the whole process if well written could consume 105% spread between all your CPU core. There's no problem here
â Kiwy
Apr 29 at 13:00
@kiwy oh no problem here, the issue is with my understanding the output e.g.
PICNIC
â y3sh
May 1 at 13:49
@kiwy oh no problem here, the issue is with my understanding the output e.g.
PICNIC
â y3sh
May 1 at 13:49
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
It is because your coind is multi-threaded. Press letter "H" in top to turn on threaded mode. This will show you child threads of bitcoind. You can then see the spread of CPU usage.
You can also try gstack to see list of threads.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
It is because your coind is multi-threaded. Press letter "H" in top to turn on threaded mode. This will show you child threads of bitcoind. You can then see the spread of CPU usage.
You can also try gstack to see list of threads.
add a comment |Â
up vote
2
down vote
accepted
It is because your coind is multi-threaded. Press letter "H" in top to turn on threaded mode. This will show you child threads of bitcoind. You can then see the spread of CPU usage.
You can also try gstack to see list of threads.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
It is because your coind is multi-threaded. Press letter "H" in top to turn on threaded mode. This will show you child threads of bitcoind. You can then see the spread of CPU usage.
You can also try gstack to see list of threads.
It is because your coind is multi-threaded. Press letter "H" in top to turn on threaded mode. This will show you child threads of bitcoind. You can then see the spread of CPU usage.
You can also try gstack to see list of threads.
answered Apr 29 at 6:31
TheGeek
1286
1286
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440673%2fwhy-does-tops-cpu-breakdown-option-1-in-default-non-irix-mode-show-conflictin%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
there's absolutely no problem here. you have 800% of CPU available, top makes a ratio between the CPU time consume by your process and the CPU time a CPUi core is capable to handle. If you have a multi threaded process such as crypto mining the whole process if well written could consume 105% spread between all your CPU core. There's no problem here
â Kiwy
Apr 29 at 13:00
@kiwy oh no problem here, the issue is with my understanding the output e.g.
PICNIC
â y3sh
May 1 at 13:49