Skip to content

Commit f4d72c1

Browse files
committed
Change default config
1 parent 66c73b2 commit f4d72c1

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

include/swap-default.conf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ swap_mode=auto
3434
################################################################################
3535

3636
zswap_compressor=zstd # Compression algo: zstd, lz4, lzo
37-
zswap_max_pool_percent=45 # Max RAM for compressed pool
37+
zswap_max_pool_percent=50 # Max RAM for compressed pool
3838
zswap_zpool=zsmalloc # Allocator
3939
zswap_shrinker_enabled=1 # Proactively move cold pages to disk
40-
zswap_accept_threshold=90 # Restart accepting pages when pool drops to X%
40+
zswap_accept_threshold=85 # Restart accepting pages when pool drops to X%
4141

4242
################################################################################
4343
# Zram Settings (used in zram modes)
@@ -64,20 +64,20 @@ zram_writeback_threshold=50 # Trigger when zram is X% full
6464
# Progressive Scaling: Start small, grow as needed
6565
swapfc_enabled=1 # Enable swap files
6666
swapfc_path=/swapfc/swapfile # Directory and filename prefix
67-
swapfc_chunk_size=512M # Base size
67+
swapfc_chunk_size=1G # Base size
6868
swapfc_max_chunk_size=64G # Max single file size ( Theoretically be up to 16 TB or more )
6969
swapfc_max_count=32 # Max number of files ( Kernel limit is 32 )
70-
swapfc_scaling_step=4 # Double size every X files
71-
# Doubles every 4 files e.g. 512M -> 512M -> 512M -> 512M -> 1024M -> 1024M...
70+
swapfc_scaling_step=3 # Double size every X files
71+
# Doubles every 3 files e.g. 1G -> 1G -> 1G -> 2G -> 2G -> 2G -> 4G...
7272

7373
# Triggers
74-
swapfc_free_ram_perc=35 # Create swap when free RAM < X%
75-
swapfc_free_swap_perc=25 # Create more when free swap < X%
76-
swapfc_remove_free_swap_perc=55 # Remove files when free swap > X%
74+
swapfc_free_ram_perc=20 # Create swap when free RAM < X%
75+
swapfc_free_swap_perc=40 # Create more when free swap < X%
76+
swapfc_remove_free_swap_perc=70 # Remove files when free swap > X%
7777

7878
# MGLRU Anti-Thrashing (Kernel 6.1+)
7979
# Protect working set for X ms. 0 to disable.
80-
mglru_min_ttl_ms=1000
80+
mglru_min_ttl_ms=5000
8181

8282
# Sparse Files
8383
# Create files that only use disk space when actually written to.

0 commit comments

Comments
 (0)