Re: swap and hibernation files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



23.08.2019 22:46, Chris Murphy пишет:
> Found this:
> https://github.com/systemd/systemd/issues/11939#issuecomment-471684411
> 
> Is it possible to support hibernation with swapfiles with this new
> interface? My understanding is that's only a feature of uswsusp, near
> as I can tell.
> 

This is directly supported by kernel, see resume_offset= kernel
parameter. The problem on btrfs is to compute physical on-disk location
of swap file because standard interface used by systemd returns virtual
location in btrfs address space.

> Advantage is it can mean the space reservation for hibernation and
> swap files can be made dynamically as needed rather than making a
> large 1:1 RAM to swap partition that maybe isn't needed or desired
> based on the use case and workload. Instead of making these decisions
> in advance at installation time, make them on demand. Plus, people
> sometimes add memory and a previously created hibernation partition
> will now be sized incorrectly.
> 
> Mostly I'm just curious if it's possible as part of already planned work.
> 

This is already supported by systemd if you compute disk location
manually. See PR linked from the issue you mentioned.

Whether systemd should explicitly support btrfs special case is probably
better discussed on systemd list.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux