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

Moderators: odroid, mdrjr

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

Unread postby 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?
outhudd9
 
Posts: 11
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english

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

Unread postby 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.
User avatar
rooted
 
Posts: 4914
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

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

Unread postby 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.
crashoverride
 
Posts: 3520
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

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

Unread postby 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.
outhudd9
 
Posts: 11
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english

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

Unread postby 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.
crashoverride
 
Posts: 3520
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

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

Unread postby 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!
outhudd9
 
Posts: 11
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 0 guests