2

On an almost daily basis my laptop is stuck. In most cases I need to turn off the machine manually and restart it. In those cases CPU is very busy and memory seems to be used heavily.

Memory: 8GB

CPU: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz

This happens, when I use different apps, like a browser, eclipse and Microsoft Teams, but the combination of running apps seems to be pretty random.

Output of top

~~Now I can see some processes are using very much CPU, but what exactly is kswapd0 and kworker?~~ I guess, that my system is misconfigured, the current guess is that the swapfile is too small. How can this be increased / controlled?

$ uname -r
>> 5.4.0-54-generic

$ lsb_release -a >> Description: Ubuntu 20.04.1 LTS

Edit regarding the swapfile in a LVM disks system

~$ grep -i swap /etc/fstab
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       

free -h confirms, that my swapfile is Swap: 975Mi big.

Edit

Here is the Linux bug, but it seems to be marked as invalid. For whatever reason.

And a possible solution (not confirmed yet!): https://bugs.launchpad.net/ubuntu/+source/linux/+bug/887793/comments/170

heynnema
  • 73,649
BairDev
  • 159
  • 9

1 Answers1

1

My solution:

Create a new swapfile

I've tried to increase the size of the swap_1 volume, but it failed. Probably because there was no space left in the volume group. I have used these instructions and got something like

# fsadm: Filesystem "swap" on device "/dev/mapper/vgubuntu-swap_1" is not supported by this tool.

for

$ lvresize -L +5G --resizefs vgubuntu/swap_1

Swapfile

I have used this answer.

Now I can see:

$ sudo swapon -s

Filename Type Size Used Priority

/swap_2 file 5119996 830464 -2

/dev/dm-2 partition 999420 0 -3

BairDev
  • 159
  • 9