Talk:Swap

From ArchWiki
Jump to: navigation, search

gets swap really still actived twice by systemd?

There is a section about systemd trying to activate swap twice, and several ideas how to work around the error message which appears due to the second attmept to swapon. Is it still an issue? I think Lennart fixed this maybe: https://lists.freedesktop.org/archives/systemd-devel/2015-January/027521.html and the following mails... Mearon (talk) 05:45, 22 November 2016 (UTC)

I'm sorry, where is the section? -- Lahwaacz (talk) 07:52, 22 November 2016 (UTC)
Sorry for not providing a Link. It's here: https://wiki.archlinux.org/index.php/Swap#Activation_by_systemd Mearon (talk) 14:21, 22 November 2016 (UTC)
Well, the first part of the section sounds right, but the second might be outdated as you indicate, so I've flagged it. I can't test the behaviour now, let's see if somebody can... -- Lahwaacz (talk) 16:43, 24 November 2016 (UTC)
I've tested it on the lastest Arch install from the April ISO and can confirm that the issue is fixed. Also I think there should be a clarification regarding the fact that systemd only looks at the disk containing the root filesystem. So if you have swap on a separate disk systemd fails to autoload it without an fstab entry. Should I remove the section and add the clarification above. Hashhar (talk)
Thanks, I've removed the outdated part now. The section says "systemd-gpt-auto-generator inspects the root disk", but feel free to make it clearer. Closing this in the meantime. -- Lahwaacz (talk) 18:41, 13 April 2017 (UTC)

systemd-swap

Can we add more documentation on what this is? How it works? What's the difference between Swap File Universal and Swap File Chunked? Do we need to activate both zram and zswap? Do we need both swapfu and swapfc? When would we want a certain configuration? Where is the swap file located? Can we use this to enable hibernation?

—This unsigned comment is by An2quo (talk) 16:41, 11 January 2017‎. Please sign your posts with ~~~~!

That information seriously belongs to https://github.com/Nefelim4ag/systemd-swap -- not here, since they are just details for the script. We already describe the background info in Swap, Zswap, Improving_performance#Zram_or_zswap and Power_management/Suspend_and_hibernate#Hibernation, your questions can be answered by simply reading the script. -- Lahwaacz (talk) 16:59, 11 January 2017 (UTC)