public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* mount compress=zstd leaves files uncompressed, that used to compress well with before
@ 2025-03-19 17:07 Dimitrios Apostolou
  2025-03-24 14:14 ` Dimitrios Apostolou
  0 siblings, 1 reply; 19+ messages in thread
From: Dimitrios Apostolou @ 2025-03-19 17:07 UTC (permalink / raw)
  To: linux-btrfs

Hello list,

has something changed lately in how btrfs discovers if a file is
compressible?

I am moving a database (pgdump|pgrestore) from and to a compressed
(compress=zstd:3) filesystem.  And while on the old host (kernel 5.15) all
the database files were highly compressed with almost 8:1 ratio, while
doing pg_restore on the new host (kernel 6.11 with newly created btrfs
filesystem) I notice (using compsize) that most files are being written
uncompressed.

I have to issue a defragment -czstd command to fix the situation, and I'm
contemplating whether I should change the mount option to compress-force.

Thanks in advance,
Dimitris

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

end of thread, other threads:[~2025-04-08 13:18 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 17:07 mount compress=zstd leaves files uncompressed, that used to compress well with before Dimitrios Apostolou
2025-03-24 14:14 ` Dimitrios Apostolou
2025-03-24 18:18   ` Gerhard Wiesinger
2025-03-24 19:11     ` Dimitrios Apostolou
2025-03-24 19:32       ` Gerhard Wiesinger
2025-03-24 20:29         ` Dimitrios Apostolou
2025-03-26 15:19         ` Dimitrios Apostolou
2025-03-26 12:15     ` Dimitrios Apostolou
2025-03-26 23:23       ` Qu Wenruo
2025-03-27 13:40         ` Dimitrios Apostolou
2025-03-27 20:21           ` Qu Wenruo
2025-03-28 13:41             ` Dimitrios Apostolou
2025-04-02 14:30               ` Dimitrios Apostolou
2025-04-02 21:00               ` Qu Wenruo
2025-04-04  1:23                 ` Dimitrios Apostolou
2025-04-04  4:03                   ` Qu Wenruo
2025-04-04 17:17                     ` Dimitrios Apostolou
2025-04-04 21:41                       ` Qu Wenruo
2025-04-08 13:18                         ` Dimitrios Apostolou

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