Sunday, May 5, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 7174  / 1 Year ago, thu, december 22, 2022, 9:06:35

I'm trying to track down repetitive hangs on an oldish laptop (10yo, 4Gb of mem, 2 cores, Kubuntu 18.04)
It now happens several times a day with moderate use (<10 tabs open in firefox, a bunch of other progs, nothing huge).



Sometimes I get a OOM but in most cases the user interface crawls to a halt for one to 30 minutes before things go back to normal. This is a recent occurrence (last 2 months). In most cases there's nothing in dmesg or syslog.



I've been trying to diagnose it without success, but one thing I've noticed with htop is that the load average jumps to 30 or more while the cumulative CPU usage stays below 10% and the memory usage (Mem+Swap) stays well below 4Gb.



1st question: how can the load average be so different from the CPU usage ?
2nd question: what else can I do? Can I run some stress programs and hope to get meaningful info?



[Edit]
Still waiting for the next crash, but I notice that swapiness is at 0. Shouldn't it be 60 by default ?


More From » memory-usage

 Answers
2

From the comments...



As I suspected, there was a swap problem. In this case, it wasn't swapping at all.



For 4G RAM, set the vm.swappiness to 60 (it was at 0 - which was a totally wrong setting) and there hasn't been a single hang since then.


[#3497] Saturday, December 24, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istmasted

Total Points: 287
Total Questions: 130
Total Answers: 153

Location: Burkina Faso
Member since Thu, Dec 23, 2021
2 Years ago
;