nefelim4ag / systemd-swap

Script for creating hybrid swap space from zram swaps, swap files and swap partitions.
GNU General Public License v3.0
550 stars 81 forks source link

Recommendation for Swapfc defaults #196

Open aerialviews007 opened 3 years ago

aerialviews007 commented 3 years ago

Hello,

I ran into an issue on my laptop where starting a KVM vm after using the machine for a while would cause the VM to consume ram faster than the kernel can add chunks to the swap space. My fix was to change the swapfc_min_count to 1 and increase the chunk size to 1024M. I believe I can possibly get away with a smaller chunk size but it has remained very stable. I only have 8 GB of RAM so this may not be necessary for larger ram systems but it should be considered for lower ram devices.