I believe im also seeing this behavior
CachyOS (up to date)
Steam multilib package
Steam client: 1775525170
Defragmented my steam library about a month ago after belatedly enabling zstd compression on a game drive. (70-75% compression)
Recently checking the compsize had about an 80-85% ratio, after rerunning defragment it returns to an expected size.
Don't have the numbers for those so I did a small test to verify my sanity with a brand new install
❯ sudo compsize /run/media/Steamy/SteamLibrary/steamapps/common/Slime*Rancher # Before
Processed 591 files, 4888 regular extents (4888 refs), 56 inline.
Type Perc Disk Usage Uncompressed Referenced
TOTAL 75% 901M 1.1G 1.1G
none 100% 735M 735M 734M
zstd 36% 166M 455M 455M
❯ sudo btrfs filesystem defragment -r -v -czstd -L 1 /run/media/Steamy/SteamLibrary/steamapps/common/Slime*Rancher
❯ sudo compsize /run/media/Steamy/SteamLibrary/steamapps/common/Slime*Rancher # After
Processed 591 files, 8618 regular extents (8618 refs), 56 inline.
Type Perc Disk Usage Uncompressed Referenced
TOTAL 56% 673M 1.1G 1.1G
none 100% 223M 223M 223M
zstd 46% 449M 965M 965M
Nothing extracted yet.
Your system information
Please describe your issue in as much detail as possible:
When using
compress=zstd(BTRFS default, at least on Fedora 43), games are not properly compressed. I believe this is due to Steam's use offallocatefor game installs. If we check something like Baldur's Gate 3 withcompsize, the game will initially be almost entirely uncompressed (looks like only some post-install files are picked up). After runningbtrfs defragment -r -v -czstdon the folder, compression kicks in for 14GB of savings:Steps for reproducing this issue:
compress=zstd(any compression level)sudo compsizeon game directoryTo verify:
btrfs defragment -r -v -czstd -L [compression level for mount] path/to/game