Skip to content

Commit

Permalink
SUSE config: use Btrfs LZO compression for ResourceDisk
Browse files Browse the repository at this point in the history
Btrfs provides support for transparent compression, which can be
requested at mount time via the compress=type[:level] mount option.

As demonstrated in [1], transparent LZO compression provides a good
trade-off between compression ratio and performance, while also being
supported by legacy SUSE kernels. zstd could be considered for
modern SLE15-SP1+ / openSUSE Leap 15.1+ kernels.

Amongst other benefits, moving from ext4 to Btrfs allows for ephemeral
ResourceDisk data to be periodically and incrementally backed-up to
regular Page Blob backed disks using btrfs send/recv.

1. Btrfs compression benchmarks
   mainline kernel commit: 5c1aab1dd5445ed8bdcdbb575abc1b0d7ee5b2e7

Signed-off-by: David Disseldorp <ddiss@suse.de>
  • Loading branch information
ddiss committed Oct 28, 2020
1 parent 73b71e7 commit 1bf7a1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/suse/waagent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ResourceDisk.Format=y

# File system on the resource disk
# Typically ext3 or ext4. FreeBSD images should use 'ufs2' here.
ResourceDisk.Filesystem=ext4
ResourceDisk.Filesystem=btrfs

# Mount point for the resource disk
ResourceDisk.MountPoint=/mnt/resource
Expand All @@ -55,7 +55,7 @@ ResourceDisk.EnableSwap=n
ResourceDisk.SwapSizeMB=0

# Comma-separated list of mount options. See mount(8) for valid options.
ResourceDisk.MountOptions=None
ResourceDisk.MountOptions=compress=lzo

# Respond to load balancer probes if requested by Microsoft Azure.
LBProbeResponder=y
Expand Down

0 comments on commit 1bf7a1a

Please sign in to comment.