I have two identical Linux laptops (Core™ i7-4810MQ with 32GB RAM) both running Ubuntu 16.04. Running seemingly any command on machine 2 takes about 4-12 times as long as on machine 1, depending on the activity. This was noticed late last week while running some simple gradle
builds and hasn't changed since then.
To measure, I ran a C++ build on each system. I chose this one because I make the C++ program a few months ago and had built it on both systems. They weren't measured, but they took roughly the same amount of time back then. Running the follow on each system today:
make clean && time make -j8
System 1 finishes with the following report:
real 0m54.627s
user 5m54.188s
sys 0m23.008s
System 2 takes much longer:
real 11m1.053s
user 65m59.512s
sys 4m10.404s
Searches on Stack Exchange and Google lead to numerous threads on diagnosing the issue, but they all seem to assume that there is a process slowing the machine down. top
, iostat
and gnome-system-monitor
etc report identical resource usage on both machines - neither is busy doing anything difficult and there is lots of CPU, memory, bandwidth and io available.
What are the first things to check when a Linux system is clearly under-performing, but it's not a hardware capability limitation?