Same processes, different CPU usage
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have 2 Raspberry PI 3 Model B machines. They have exactly the same hardware and the same OS, the default one (Debian Jessie) provided by Raspberry.
I use those machines to run a Ruby On Rails application. Besides the application (the same in both machines), there are also several background tasks and jobs.
The problem is that when I monitor the CPU and RAM usage with htop
, top
, or any other tool, I get different CPU usage for the same processes in those machines.
You can notice this by comparing the pictures above. I marked unicorn
process as an example. You can see an extreme diff between them 0% vs. 78.8%.
Nonetheless, the machines are not a clone of each-other. There are tools which might be installed in one of them and not in the other one.
I tried to bring the machines in the same conditions, killing/stopping those processes which were different for both machines and left only the same processes, but nothing changed.
Considering this circumstances:
- Has anyone ever experienced this situation before?
- How should I continue the debug now? What is that reason that might cause this issue?
Thank you in advance.
linux debian raspberry-pi troubleshooting
add a comment |Â
up vote
0
down vote
favorite
I have 2 Raspberry PI 3 Model B machines. They have exactly the same hardware and the same OS, the default one (Debian Jessie) provided by Raspberry.
I use those machines to run a Ruby On Rails application. Besides the application (the same in both machines), there are also several background tasks and jobs.
The problem is that when I monitor the CPU and RAM usage with htop
, top
, or any other tool, I get different CPU usage for the same processes in those machines.
You can notice this by comparing the pictures above. I marked unicorn
process as an example. You can see an extreme diff between them 0% vs. 78.8%.
Nonetheless, the machines are not a clone of each-other. There are tools which might be installed in one of them and not in the other one.
I tried to bring the machines in the same conditions, killing/stopping those processes which were different for both machines and left only the same processes, but nothing changed.
Considering this circumstances:
- Has anyone ever experienced this situation before?
- How should I continue the debug now? What is that reason that might cause this issue?
Thank you in advance.
linux debian raspberry-pi troubleshooting
3
You are underliningunicorn master
in the top picture, butunicorn worker
in the bottom. You can see thatunicorn worker
is using about the same amount of resources in both pictures. You can also see that the top system is heavily loaded by somewatch_for_packages.rb
Ruby scripts.
â Kusalananda
May 29 at 15:30
@Kusalananda fixed it now. Thank you.
â Dionis Beqiraj
May 29 at 15:38
1
You still have the four CPU-consuming processes running on the top system. Compare the two systems when those processes are finished, or kill them (if that's OK) and then compare. In general, it is hard to get two systems to behave the same way: a lot depends on things like differen cron jobs, network traffic, timing variations and who knows what else.
â NickD
May 29 at 15:42
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have 2 Raspberry PI 3 Model B machines. They have exactly the same hardware and the same OS, the default one (Debian Jessie) provided by Raspberry.
I use those machines to run a Ruby On Rails application. Besides the application (the same in both machines), there are also several background tasks and jobs.
The problem is that when I monitor the CPU and RAM usage with htop
, top
, or any other tool, I get different CPU usage for the same processes in those machines.
You can notice this by comparing the pictures above. I marked unicorn
process as an example. You can see an extreme diff between them 0% vs. 78.8%.
Nonetheless, the machines are not a clone of each-other. There are tools which might be installed in one of them and not in the other one.
I tried to bring the machines in the same conditions, killing/stopping those processes which were different for both machines and left only the same processes, but nothing changed.
Considering this circumstances:
- Has anyone ever experienced this situation before?
- How should I continue the debug now? What is that reason that might cause this issue?
Thank you in advance.
linux debian raspberry-pi troubleshooting
I have 2 Raspberry PI 3 Model B machines. They have exactly the same hardware and the same OS, the default one (Debian Jessie) provided by Raspberry.
I use those machines to run a Ruby On Rails application. Besides the application (the same in both machines), there are also several background tasks and jobs.
The problem is that when I monitor the CPU and RAM usage with htop
, top
, or any other tool, I get different CPU usage for the same processes in those machines.
You can notice this by comparing the pictures above. I marked unicorn
process as an example. You can see an extreme diff between them 0% vs. 78.8%.
Nonetheless, the machines are not a clone of each-other. There are tools which might be installed in one of them and not in the other one.
I tried to bring the machines in the same conditions, killing/stopping those processes which were different for both machines and left only the same processes, but nothing changed.
Considering this circumstances:
- Has anyone ever experienced this situation before?
- How should I continue the debug now? What is that reason that might cause this issue?
Thank you in advance.
linux debian raspberry-pi troubleshooting
edited May 29 at 15:38
asked May 29 at 15:11
Dionis Beqiraj
1011
1011
3
You are underliningunicorn master
in the top picture, butunicorn worker
in the bottom. You can see thatunicorn worker
is using about the same amount of resources in both pictures. You can also see that the top system is heavily loaded by somewatch_for_packages.rb
Ruby scripts.
â Kusalananda
May 29 at 15:30
@Kusalananda fixed it now. Thank you.
â Dionis Beqiraj
May 29 at 15:38
1
You still have the four CPU-consuming processes running on the top system. Compare the two systems when those processes are finished, or kill them (if that's OK) and then compare. In general, it is hard to get two systems to behave the same way: a lot depends on things like differen cron jobs, network traffic, timing variations and who knows what else.
â NickD
May 29 at 15:42
add a comment |Â
3
You are underliningunicorn master
in the top picture, butunicorn worker
in the bottom. You can see thatunicorn worker
is using about the same amount of resources in both pictures. You can also see that the top system is heavily loaded by somewatch_for_packages.rb
Ruby scripts.
â Kusalananda
May 29 at 15:30
@Kusalananda fixed it now. Thank you.
â Dionis Beqiraj
May 29 at 15:38
1
You still have the four CPU-consuming processes running on the top system. Compare the two systems when those processes are finished, or kill them (if that's OK) and then compare. In general, it is hard to get two systems to behave the same way: a lot depends on things like differen cron jobs, network traffic, timing variations and who knows what else.
â NickD
May 29 at 15:42
3
3
You are underlining
unicorn master
in the top picture, but unicorn worker
in the bottom. You can see that unicorn worker
is using about the same amount of resources in both pictures. You can also see that the top system is heavily loaded by some watch_for_packages.rb
Ruby scripts.â Kusalananda
May 29 at 15:30
You are underlining
unicorn master
in the top picture, but unicorn worker
in the bottom. You can see that unicorn worker
is using about the same amount of resources in both pictures. You can also see that the top system is heavily loaded by some watch_for_packages.rb
Ruby scripts.â Kusalananda
May 29 at 15:30
@Kusalananda fixed it now. Thank you.
â Dionis Beqiraj
May 29 at 15:38
@Kusalananda fixed it now. Thank you.
â Dionis Beqiraj
May 29 at 15:38
1
1
You still have the four CPU-consuming processes running on the top system. Compare the two systems when those processes are finished, or kill them (if that's OK) and then compare. In general, it is hard to get two systems to behave the same way: a lot depends on things like differen cron jobs, network traffic, timing variations and who knows what else.
â NickD
May 29 at 15:42
You still have the four CPU-consuming processes running on the top system. Compare the two systems when those processes are finished, or kill them (if that's OK) and then compare. In general, it is hard to get two systems to behave the same way: a lot depends on things like differen cron jobs, network traffic, timing variations and who knows what else.
â NickD
May 29 at 15:42
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f446727%2fsame-processes-different-cpu-usage%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
3
You are underlining
unicorn master
in the top picture, butunicorn worker
in the bottom. You can see thatunicorn worker
is using about the same amount of resources in both pictures. You can also see that the top system is heavily loaded by somewatch_for_packages.rb
Ruby scripts.â Kusalananda
May 29 at 15:30
@Kusalananda fixed it now. Thank you.
â Dionis Beqiraj
May 29 at 15:38
1
You still have the four CPU-consuming processes running on the top system. Compare the two systems when those processes are finished, or kill them (if that's OK) and then compare. In general, it is hard to get two systems to behave the same way: a lot depends on things like differen cron jobs, network traffic, timing variations and who knows what else.
â NickD
May 29 at 15:42