M
M
Maxim Sokhryakov2020-02-04 20:50:31
linux
Maxim Sokhryakov, 2020-02-04 20:50:31

Why is the swap partition being used?

Initially faced with the problem that the laptop does not go into hibernation.
After opening the lid, there was a message:

Freezing of task failed after 20.006 seconds (... wq_busy=0)

After searching the Internet, I decided that this is a problem with the size of the swap partition. Through Gparted, I reduced the current working partition by 20 GB, and reformatted the free space into a linux-swap partition. (My current RAM size is 16 GB.).
In short, I used the material at the link: but
, nevertheless, it didn’t help much, because there were problems with USB-C and blue tooth going to sleep.
Scored for a while, but not for long.
And this resulted in another problem:

Any copying of files causes a temporary freeze of the computer, and the release of all contents from RAM to the swap file. The problem was observed not only when copying files, but also when closing a relatively heavy program.
After throwing away all their RAM, it remained empty until the requested data was loaded from swap back into RAM.

I cured this by removing the UUID of my swap partition in the /etc/fstab file , replacing it, as before, with the value '/swapfile'
UUID=998201ff-df34-470c-a7a8-f72f9178833c /               ext4    errors=remount-ro 0       1
UUID=1ba29f83-974b-417b-a2a1-ad789dab74ad none            swap    sw              0       0

вернул обратно к виду: 

UUID=998201ff-df34-470c-a7a8-f72f9178833c /               ext4    errors=remount-ro 0       1
/swapfile none            swap    sw              0       0


The essence of the question: what could be the problem of such behavior?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2020-02-04
@maximsohryakov

Through Gparted, I reduced the current working partition by 20 GB, and reformatted the free space into a linux-swap partition.

Fuck yourself.
The essence of the question: what could be the problem of such behavior?

Tweak vm.swappiness which specifies when to use the swap partition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question