public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* A possible way to reduce free space fragmentation?
@ 2025-01-31 19:01 Artem S. Tashkinov
  2025-02-01 15:38 ` Andreas Dilger
  0 siblings, 1 reply; 4+ messages in thread
From: Artem S. Tashkinov @ 2025-01-31 19:01 UTC (permalink / raw)
  To: linux-ext4

Hello,

ext4 has no free space defragmentation and at most you can use e4defrag
to defragment individual files. I now have a 24GB ext4 filesystem that
has only 7GB of space occupied however it has small files scattered all
over it and now bigger files occupy more than one extent and I cannot
reduce fragmentation to zero. One way to approach that would be to
shrink the volume and then defragment it but that will involve a ton of
disk writes and unnecessary tear and wear. Is it possible to modify the
e4degrag utility to move small defragmented files, so that they were
placed consecutively instead of being randomly spread all over the disk?

Regards,
Artem

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

end of thread, other threads:[~2025-02-02 20:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-31 19:01 A possible way to reduce free space fragmentation? Artem S. Tashkinov
2025-02-01 15:38 ` Andreas Dilger
2025-02-01 15:48   ` Artem S. Tashkinov
2025-02-02 20:15     ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox