Re: Adding file swap on btrfs

2022-12-23 Thread Chris Murphy
FWIW there are some fixes and enhancements coming in btrfs-progs 6.1, now in koji for Rawhide, including making it easier to get info about hibernation file offset in a swapfile. I haven't messed with the new subcommand, but I personally prefer putting swapfiles in their own subvolume so that

Re: Adding file swap on btrfs

2022-12-19 Thread Barry
> On 19 Dec 2022, at 19:59, Neal Becker wrote: > >  > I've just installed f37 on a new lenovo x1 carbon. > One thing, the installation didn't setup any swap (other than zswap). > That is the preferred way to setup swap. Research has shown that use of swap files on HDD or SSD is far worse

Re: Adding file swap on btrfs

2022-12-19 Thread Samuel Sieb
On 12/19/22 12:19, Jonathan Billings wrote: On Dec 19, 2022, at 15:10, Samuel Sieb wrote: On 12/19/22 11:58, Neal Becker wrote: I've just installed f37 on a new lenovo x1 carbon. One thing, the installation didn't setup any swap (other than zswap). After a bit of reading I found sudo btrfs

Re: Adding file swap on btrfs

2022-12-19 Thread Jonathan Billings
On Dec 19, 2022, at 15:10, Samuel Sieb wrote: > > On 12/19/22 11:58, Neal Becker wrote: >> I've just installed f37 on a new lenovo x1 carbon. >> One thing, the installation didn't setup any swap (other than zswap). >> After a bit of reading I found >> sudo btrfs filesystem mkswapfile -s 32G

Re: Adding file swap on btrfs

2022-12-19 Thread Samuel Sieb
On 12/19/22 12:13, Richard Shaw wrote: On Mon, Dec 19, 2022 at 2:10 PM Samuel Sieb > wrote: On 12/19/22 11:58, Neal Becker wrote: > I've just installed f37 on a new lenovo x1 carbon. > One thing, the installation didn't setup any swap (other than zswap).

Re: Adding file swap on btrfs

2022-12-19 Thread Richard Shaw
On Mon, Dec 19, 2022 at 2:10 PM Samuel Sieb wrote: > On 12/19/22 11:58, Neal Becker wrote: > > I've just installed f37 on a new lenovo x1 carbon. > > One thing, the installation didn't setup any swap (other than zswap). > > > > After a bit of reading I found > > sudo btrfs filesystem mkswapfile

Re: Adding file swap on btrfs

2022-12-19 Thread Jonathan Billings
On Dec 19, 2022, at 14:59, Neal Becker wrote: > I've just installed f37 on a new lenovo x1 carbon. > One thing, the installation didn't setup any swap (other than zswap). > > After a bit of reading I found > sudo btrfs filesystem mkswapfile -s 32G /swapfile > But: > sudo swapon -v /swapfile >

Re: Adding file swap on btrfs

2022-12-19 Thread Samuel Sieb
On 12/19/22 11:58, Neal Becker wrote: I've just installed f37 on a new lenovo x1 carbon. One thing, the installation didn't setup any swap (other than zswap). After a bit of reading I found sudo btrfs filesystem mkswapfile -s 32G /swapfile But:  sudo swapon -v /swapfile swapon: /swapfile:

Re: Adding file swap on btrfs

2022-12-19 Thread Neal Becker
On Mon, Dec 19, 2022 at 2:58 PM Neal Becker wrote: > I've just installed f37 on a new lenovo x1 carbon. > One thing, the installation didn't setup any swap (other than zswap). > > After a bit of reading I found > sudo btrfs filesystem mkswapfile -s 32G /swapfile > But: > sudo swapon -v