[SOLVED] Suddenly gets very slow, despite very low CPU usage

Post Reply
outhudd9
Posts: 33
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english
Contact:

[SOLVED] Suddenly gets very slow, despite very low CPU usage

Unread post by outhudd9 » Sun May 27, 2018 6:45 am

Often my Odroid C2 will almost freeze up. Running everything very slowly.

As an example, I've noticed then when apt install is unpacking a package. It seems to stay at the same point for a very long time, and when I do htop, I see only 1 or 2% CPU usage, nothing really happening. Memory isn't full and Swap is not being used.

Anyway I can check what this bottleneck is? Using Ubuntu 16.04.4 and...

Linux odroid64 3.14.79-117 #1 SMP PREEMPT Tue Jan 2 23:46:30 BRST 2018 aarch64 aarch64 aarch64 GNU/Linux

Maybe I should check SD r/w speed?

User avatar
rooted
Posts: 6298
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: Suddenly gets very slow, despite very low CPU usage

Unread post by rooted » Sun May 27, 2018 6:56 am

Could you post the output of dmesg to pastebin after this happens?

Also verify your storage r/w speed.

crashoverride
Posts: 4230
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Contact:

Re: Suddenly gets very slow, despite very low CPU usage

Unread post by crashoverride » Sun May 27, 2018 7:09 am

outhudd9 wrote:As an example, I've noticed then when apt install is unpacking a package. It seems to stay at the same point for a very long time, and when I do htop, I see only 1 or 2% CPU usage, nothing really happening. Memory isn't full and Swap is not being used.
apt is very I/O intensive. This likely means that the storage (SD card) is the bottleneck. Try using a different SD card or a higher rated (A1) card.

outhudd9
Posts: 33
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english
Contact:

Re: Suddenly gets very slow, despite very low CPU usage

Unread post by outhudd9 » Sun May 27, 2018 4:20 pm

Thanks, I don't see anything relevant with dmesg.

I'll try a few benchmarks to test different SD cards and see if that's the problem.

crashoverride
Posts: 4230
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Contact:

Re: Suddenly gets very slow, despite very low CPU usage

Unread post by crashoverride » Sun May 27, 2018 11:16 pm

Its also worth noting that apt runs in two phases: download and install. The information displayed during operation will indicate what its doing. The download phase may be bottlenecked by the network while the install phase may be bottlenecked by storage.

outhudd9
Posts: 33
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english
Contact:

Re: Suddenly gets very slow, despite very low CPU usage

Unread post by outhudd9 » Tue Jun 12, 2018 9:28 pm

crashoverride wrote:
outhudd9 wrote:As an example, I've noticed then when apt install is unpacking a package. It seems to stay at the same point for a very long time, and when I do htop, I see only 1 or 2% CPU usage, nothing really happening. Memory isn't full and Swap is not being used.
apt is very I/O intensive. This likely means that the storage (SD card) is the bottleneck. Try using a different SD card or a higher rated (A1) card.
Thanks for this.

The SD card was the problem here. I got an A1 rated Sandisk 32GB and the difference is like night and day. Much much faster now all round. Thanks!

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest