All of lore.kernel.org
 help / color / mirror / Atom feed
* fstab autodegrag with 5.10 & 5.15 kernels, Debian?
@ 2022-01-27 15:25 piorunz
  2022-01-27 21:14 ` Chris Murphy
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: piorunz @ 2022-01-27 15:25 UTC (permalink / raw)
  To: linux-btrfs

Hi all,

Is it safe & recommended to run autodefrag mount option in fstab?
I am considering two machines here, normal desktop which has Btrfs as
/home, and server with VM and other databases also btrfs /home. Both
Btrfs RAID10 types. Both are heavily fragmented. I never defragmented
them, in fact. I run Debian 11 on server (kernel 5.10) and Debian
Testing (kernel 5.15) on desktop.

Running manual defrag on server machine, like:
sudo btrfs filesystem defrag -v -t4G -r /home
takes ages and can cause 120 second timeout kernel error in dmesg due to
service timeouts. I prefer to autodefrag gradually, overtime, mount
option seems to be good for that.

My current fstab mounting:

noatime,space_cache=v2,compress-force=zstd:3 0 2

Will autodefrag break COW files? Like I copy paste a file and I save
space, but defrag with destroy this space saving?
Also, will autodefrag compress files automatically, as mount option
enforces (compress-force=zstd:3)?

Any suggestions welcome.


--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀⠀⠀

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-01-29  1:38 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 15:25 fstab autodegrag with 5.10 & 5.15 kernels, Debian? piorunz
2022-01-27 21:14 ` Chris Murphy
2022-01-27 22:45 ` Qu Wenruo
2022-01-28 11:55 ` Kai Krakow
2022-01-28 12:14   ` piorunz
2022-01-28 12:42     ` Qu Wenruo
2022-01-29  1:37       ` piorunz
2022-01-28 13:00   ` Qu Wenruo
2022-01-28 15:48     ` Kai Krakow
2022-01-28 16:05   ` Remi Gauvin
2022-01-28 18:01     ` Kai Krakow
2022-01-28 18:09       ` Remi Gauvin
2022-01-28 18:23         ` Kai Krakow
2022-01-28 18:29           ` Remi Gauvin
2022-01-28 18:44             ` Roman Mamedov
2022-01-28 18:33           ` Remi Gauvin
2022-01-28 22:42     ` Forza
2022-01-28 16:25   ` Remi Gauvin
2022-01-28 18:07     ` Kai Krakow
2022-01-28 18:23       ` Remi Gauvin
2022-01-29  1:33 ` piorunz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.