Same processes, different CPU usage

The name of the pictureThe name of the pictureThe name of the pictureClash 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.



enter image description hereenter image description here



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:



  1. Has anyone ever experienced this situation before?

  2. How should I continue the debug now? What is that reason that might cause this issue?

Thank you in advance.







share|improve this question

















  • 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










  • @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














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.



enter image description hereenter image description here



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:



  1. Has anyone ever experienced this situation before?

  2. How should I continue the debug now? What is that reason that might cause this issue?

Thank you in advance.







share|improve this question

















  • 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










  • @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












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.



enter image description hereenter image description here



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:



  1. Has anyone ever experienced this situation before?

  2. How should I continue the debug now? What is that reason that might cause this issue?

Thank you in advance.







share|improve this question













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.



enter image description hereenter image description here



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:



  1. Has anyone ever experienced this situation before?

  2. How should I continue the debug now? What is that reason that might cause this issue?

Thank you in advance.









share|improve this question












share|improve this question




share|improve this question








edited May 29 at 15:38
























asked May 29 at 15:11









Dionis Beqiraj

1011




1011







  • 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










  • @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




    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






  • 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay