Additional zram + swap tuning
This commit is contained in:
@@ -1,19 +1,9 @@
|
||||
# Compressed swap in RAM, sized the way Fedora has shipped it since F34: all of
|
||||
# memory, capped at 8G. Fedora weighed the worry that incompressible pages would
|
||||
# tie up RAM against five years of desktops reporting no trouble from it, which
|
||||
# is more field evidence than we could gather on our own.
|
||||
#
|
||||
# The cap is what bounds the downside. A browser-heavy desktop can drive zstd
|
||||
# down near 1.1:1, where the device backs far less than it advertises, and 8G
|
||||
# keeps that bounded on any machine large enough to notice. The disk swapfile
|
||||
# sits behind it at pri=0 for everything past that.
|
||||
#
|
||||
# Fedora spells this zram-fraction = 1.0 with max-zram-size = 8192; both keys
|
||||
# are deprecated in favour of zram-size, which computes the same numbers.
|
||||
# Compressed swap in RAM. zstd averages around 3:1, so even a full device
|
||||
# occupies roughly a third of RAM. Any smaller cap spills reclaim to the disk
|
||||
# swapfile, which on encrypted installs pages back through LUKS.
|
||||
[zram0]
|
||||
zram-size = min(ram, 8192)
|
||||
zram-size = ram
|
||||
compression-algorithm = zstd
|
||||
|
||||
# Above the pri=0 that omarchy-hibernation-setup gives the disk swapfile, so
|
||||
# zram absorbs everything until it's full.
|
||||
# Above the pri=0 that omarchy-hibernation-setup gives the disk swapfile.
|
||||
swap-priority = 100
|
||||
|
||||
Reference in New Issue
Block a user