Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Comment on Expanding Encrypted Swap and Adding ZRAM to Fix Memory Pressure Stalls by Matti Bendewald

Дата публикации: 11-05-2026 09:43:48

If you have physical swap space zswap is superior to zram in almost any case. There are only few special cases where zram+regular swap is adviseable.
The kernels swappiness is a parameter used to indicate to the kernel how expensive swapping is compared to filepage eviction. So the kernel will not swap and instead throw out files that are cached. That includes the code for running programs. So this will not necessarily improve performance; there is also no correct answer to the question which value for the swappiness is correct.
However: 60 is the value the kernel team determined for average usecases on hard drives, as swapping works with smaller data chunks and thus file eviction is much "cheaper". The values for swapping on SSDs should be higher overall, like close to 100. For zswap or zram which you use, the swapping takes place inside your RAM and is therefore much faster than any SSD, so swapping is cheaper by a factor of 10 (depends on the situation) and therefore the recommended values (of kernel developers, arch maintainers, fedora devs and pop-OS maintainers) are in the range of 133 to 200, mostly somewhere around 180.
TLDR: 15 might be not the optimal setting.
However, if your zram device is too small and swapping takes place mostly in the physical swap, you waste a ton of RAM for the zram part and only use regular slow swap in the end (LRU inversion). Then you shouldn't use a high swappiness value - but you shouldn't combine zram+swap in the first place, so....

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Faster Zswap With Patches To Batch The Writeback I/O06.4609-10-2026
2Meta Developing Compressed RAM "CRAM" For Linux: Better Than ZRAM & Zswap07.4306-10-2026
3Linux's ZRAM Reworked For Greater Memory Savings, Better Performance06.7805-10-2026
4New Patches For Linux's Zswap Show Major Improvements07.1907-10-2026
5MM Change Slated For Linux 7.4 Yields +22904539.81% In One Metric, More Modest Wins In Others014.626-09-2026
6Каждые 5 минут транзакции в PostgreSQL замирают на 3-7 секунд. ...07.130-09-2026
7Каждые 5 минут транзакции в PostgreSQL замирают на 3-7 секунд. ...09.7930-09-2026
8Intel Delivers A Significant Memory Hotplugging Performance Optimization For Linux04.5227-09-2026
9Купили двухсокетный сервер на 128 ядер, а база данных стала ...09.4901-10-2026
10Купили двухсокетный сервер на 128 ядер, а база данных стала ...09.4930-09-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 5.62. Источник: www.guyrutenberg.com.