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

Future of systemd-swap #173

Open vilgotf opened 3 years ago

vilgotf commented 3 years ago

The project is currently not activly developed, but I'll merge pull requests, see third comment

The recent release of systemd-swap 4.4.0 featured a complete rewrite in python. With this release we are nearing a feature complete state so I decided to lists the remaining to-do:s here:

4.3.x (bash version)

I want to point out that version 5 is a long way of, so if someone is reading this know that pull requests are welcome!

rjzins commented 3 years ago

I just saw that the project seems to be ending. Although systemd/zram-generator should be great for most users, i really like the swapFC functionality you guys have built into this project. Is there any other project you might recommend for dynamic swapfile functionality? Swapspace was the old go-to project, but it was abandoned for sometime. It seems to be alive again. Your roadmap mentions you were going to replace SwapFC with swapspace. Do you think swapspace is better now (after being resurrected)?

vilgotf commented 3 years ago

swapFC seems good on the surface but there are some underlying issues with it.

  1. Its filesize is static (this is the selling point of swapspace)
  2. Swap priorities are hard to handle (Linux only allows setting priority >0 so reducing the priority by one on every new swapfile will eventually lead to negative priority and log spam, see #135)
  3. The current implementation runs a loop, checking swap usage every second which is redundant (although this is a nitpick and it's not like this causes huge cpu usage)

I've not personally used swapspace, just checked the description and the code, but I'd say use that.

vilgotf commented 3 years ago

The main reason for me stopping development on systemd-swap is I just don't see the need for systemd-swap. zram & zswap should be configured with kernel parameters, /etc/tmpfiles.d or zram-generator. The only real interessting thing with systemd-swap has (imo) always been swapFC, but since swapspace seems to do everything swapFC does but better I don't really see a future for it.

I'd have no problem working on an alternative to swapspace / fork / contribute if somebody's use case isn't fulfilled by it (if so comment) but since I personally just use zram (and recommend most ppl to just use that) I've got no motivation to do that right now.

Zeioth commented 2 years ago

I literally use it for swapFC. It make the system really robust. Even if you have a memory leak, the PC won't freeze, and you have time to notice.

oold commented 2 months ago

I have been wondering about whether archiving this repo would be the best course of action. None of us really want to work on it anytime soon and I'd like to prevent people from picking this up and running into issues nobody is going to triage.