K
K
kale2016-11-17 22:13:25
linux
kale, 2016-11-17 22:13:25

Why are several swap spaces being used at the same time, and not sequentially, according to priority?

Two swap spaces are allocated, the first /dev/sda6 on hdd is a separate partition, connected via fstab, priority is set to -1. The second one is created in RAM via systemd as a device /dev/zram0 with priority 32767. The swapon output shows that the kernel sees both swaps. As far as I understand, the system should first use swap with a higher priority (/dev/zram0), and only then with a lower one (/dev/sda6).
But judging by the information from swapon, the system under load uses both swaps at the same time , approximately 50/50. When the load is removed, swap both are also released approximately proportionally. Why?
a9e357c32a824402bd99b814001bebd6.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question