-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwapFC or Swap Partition #169
Comments
SwapFC allows for you to dynamically allocate more and more swap as is needed, so in my opinion it should always be enabled. It will after all only be activated when you're running low on free swap |
Enabling both seems to show the SwapFC being prioritised much higher than the sawp partition:
is this intentional? It seems in this case that the swap file (stored on my main disk which may be under heavy IO already) would be always referenced before the swap partition on another disk that is the only IO on that disk. |
You can manually specify the priority of the |
Stopping systemd-swap, running swapoff -a, adding fstab entry with prio as an option and then re-enabling systemd-swap ignores the prio option, setting the partition to -2 and file to 50, and manually changing priority each boot doesnt sound great, maybe an option in systemd-swap to set priority of found swap partitions would be good? |
|
Are you 100% sure that your setting the priority right? https://wiki.archlinux.org/index.php/swap#Priority |
Yes, although I removed the entry from the fstab, changed the swapd_prio to 51, stopped systemd-swap, swapoff -a, started systemd-swap with following log output:
and this output in dmesg:
I'm going to reboot later and see if somehow the old default priority of -2 is being saved somewhere? But I explicitly have |
Seems like the |
Latest master should fix this (or you could patch it yourself, it's only one line) |
That seems to have solved it!
|
If I already have a swap partition on another drive (drive is only used for swap), is there any benefit of also enabling SwapFC on my main drive? Would one be better than the other, or would both be the best option?
The text was updated successfully, but these errors were encountered: