redhat-performance / tuned

Tuning Profile Delivery Mechanism for Linux
GNU General Public License v2.0
814 stars 178 forks source link

[RFC] zswap plugin #571

Open TheHillBright opened 10 months ago

TheHillBright commented 10 months ago

zswap is an important feature to improve system performance. It has a few tunable parameters like zpool. Currently, tuned can handle them via sysfs plugin. But, if we think this is a frequently tuning parameter, it's preferable to have it own plugin and potentially setting sensible default in the existing profiles like what's done for vm.

yarda commented 10 months ago

Maybe we could add the 'swap' plugin for higher abstraction of swap related features and for the zswap specific options use the 'zswap_' prefix'.

TheHillBright commented 10 months ago

Interesting. I don't know what're other swap-related features besides zram (yes, tuned should support zram as well). One possibility is to have tuned manage swap mounts, but I wonder if this is bit unrelated to what tuned should do. From high-level point of view, swap has big impact on performance, so tuned should do something about it.