F5F Stay Refreshed Software Operating Systems Need assistance with setting the right compression for your Btrfs filesystem on Ubuntu 23.10.

Need assistance with setting the right compression for your Btrfs filesystem on Ubuntu 23.10.

Need assistance with setting the right compression for your Btrfs filesystem on Ubuntu 23.10.

J
jammintan418
Member
192
11-01-2023, 11:34 PM
#1
Here are your questions rephrased for clarity:

1. How can I determine the current compression setting of my Btrfs filesystem on an Ubuntu 23.10 machine?
2. What method should I use to change its compression level and apply it system-wide, such as setting it to level 4?
3. How do I modify or insert a line into the fstab file for this purpose?
4. Why is my Zstd compression level showing at a high value? How can I increase it if needed?
5. Can I adjust the Zstd compression algorithm to level 5 in a GUI tool like XArchiver? If so, how would I do that? When I run `man compsize` in the terminal, I see output like "compsize - calculate..." and want to know what compression algorithm is active.
J
jammintan418
11-01-2023, 11:34 PM #1

Here are your questions rephrased for clarity:

1. How can I determine the current compression setting of my Btrfs filesystem on an Ubuntu 23.10 machine?
2. What method should I use to change its compression level and apply it system-wide, such as setting it to level 4?
3. How do I modify or insert a line into the fstab file for this purpose?
4. Why is my Zstd compression level showing at a high value? How can I increase it if needed?
5. Can I adjust the Zstd compression algorithm to level 5 in a GUI tool like XArchiver? If so, how would I do that? When I run `man compsize` in the terminal, I see output like "compsize - calculate..." and want to know what compression algorithm is active.

P
pocio77
Posting Freak
783
11-23-2023, 12:03 PM
#2
What kind of information are you trying to keep? Many large files like videos are already compressed, so adding system-level compression won’t save much space. Also, higher compression can slow down access because it requires more processing power.
P
pocio77
11-23-2023, 12:03 PM #2

What kind of information are you trying to keep? Many large files like videos are already compressed, so adding system-level compression won’t save much space. Also, higher compression can slow down access because it requires more processing power.

D
Dude76258
Member
112
11-24-2023, 05:56 AM
#3
most files, apps, pictures, and a few games are kept in external NAS storage. Compressed videos are all saved there, though I’m not entirely sure if the line you mentioned indicates compression is active. Would you like to confirm that interpretation? For your rig, set the compression to Zstd at level 4 in the fstab file. Here’s how: add a line like `compress=zstd level 4` and ensure it matches your system requirements.
D
Dude76258
11-24-2023, 05:56 AM #3

most files, apps, pictures, and a few games are kept in external NAS storage. Compressed videos are all saved there, though I’m not entirely sure if the line you mentioned indicates compression is active. Would you like to confirm that interpretation? For your rig, set the compression to Zstd at level 4 in the fstab file. Here’s how: add a line like `compress=zstd level 4` and ensure it matches your system requirements.

V
Viitin7
Member
214
11-30-2023, 05:50 PM
#4
Btrfs offers three compression methods: ZLIB, LZO and ZSTD. LZO compresses faster but lacks levels and is less effective than ZLIB or ZSTD. ZSTD needs btrfs 4.14 or newer and supports levels starting with version 5.1. To determine compatibility, check if you're using a recent version (5.1+) for ZSTD. Refer to the documentation for details: https://btrfs.readthedocs.io/en/latest/Compression.html. Adjust settings by setting "compress=zstd:4" and ensure your mount options match the recommended configuration.
V
Viitin7
11-30-2023, 05:50 PM #4

Btrfs offers three compression methods: ZLIB, LZO and ZSTD. LZO compresses faster but lacks levels and is less effective than ZLIB or ZSTD. ZSTD needs btrfs 4.14 or newer and supports levels starting with version 5.1. To determine compatibility, check if you're using a recent version (5.1+) for ZSTD. Refer to the documentation for details: https://btrfs.readthedocs.io/en/latest/Compression.html. Adjust settings by setting "compress=zstd:4" and ensure your mount options match the recommended configuration.

X
XxNachoGamesxX
Junior Member
28
12-20-2023, 07:26 AM
#5
You can find the Btrfs version by running a command like `btrfs version`.
Alternatively, check the system settings or use a tool that lists file system details.
X
XxNachoGamesxX
12-20-2023, 07:26 AM #5

You can find the Btrfs version by running a command like `btrfs version`.
Alternatively, check the system settings or use a tool that lists file system details.

S
sebasdoce
Member
245
12-22-2023, 02:50 AM
#6
Google indicates Ubuntu 23.10 runs kernel version 6.5 currently, meaning btrfs 6.5 is installed. Prior to kernel 2.6.32, btrfs maintained its own distinct versioning, but now it aligns with the kernel's version number directly.
S
sebasdoce
12-22-2023, 02:50 AM #6

Google indicates Ubuntu 23.10 runs kernel version 6.5 currently, meaning btrfs 6.5 is installed. Prior to kernel 2.6.32, btrfs maintained its own distinct versioning, but now it aligns with the kernel's version number directly.

C
cutiekitty1457
Junior Member
44
12-22-2023, 04:21 AM
#7
Check your kernel version with uname-r
C
cutiekitty1457
12-22-2023, 04:21 AM #7

Check your kernel version with uname-r

P
purplepplEater
Junior Member
32
12-23-2023, 06:36 PM
#8
Check the fstab entries for the new compression setting. Verify boot logs to confirm it’s running. Use a tool like `btrfs status` or `dmesg` to validate the configuration.
P
purplepplEater
12-23-2023, 06:36 PM #8

Check the fstab entries for the new compression setting. Verify boot logs to confirm it’s running. Use a tool like `btrfs status` or `dmesg` to validate the configuration.