mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 04:53:01 +02:00
Add vm.conf with sysctl parameters optimized for embedded network devices 512MB-8GB of memory. Focus on fast recovery and determinism. - Panic on OOM - Aggressive dirty page writeback - Increased watermark scale factor for proactive reclaim Includes tuning guide documentation for alternative scenarios. Signed-off-by: Richard Alpe <richard@bit42.se>
805 B
805 B
System Tuning Guide
Memory
Default memory tuning is defined in /etc/sysctl.d/vm.conf, optimized for embedded network devices with 512MB-4GB RAM.
For Systems with 4GB+ Memory
Systems with more memory can afford to be less aggressive with cache reclaim.
# Allow more dirty pages before writeback
vm.dirty_ratio=15
vm.dirty_background_ratio=10
# Less aggressive watermark (memory pressure less critical)
vm.watermark_scale_factor=100
For Systems with Heavy Filesystem Activity
Unusual for network equipment, but may occur on systems with extensive logging or storage features.
# Allow more dirty pages for better write batching
vm.dirty_ratio=20
vm.dirty_background_ratio=10
# Longer dirty page expiration for write coalescing
vm.dirty_expire_centisecs=3000