Skip to content

Instantly share code, notes, and snippets.

@ABelliqueux
Last active February 18, 2026 13:55
Show Gist options
  • Select an option

  • Save ABelliqueux/063b54a54e6cfee98051470a22556973 to your computer and use it in GitHub Desktop.

Select an option

Save ABelliqueux/063b54a54e6cfee98051470a22556973 to your computer and use it in GitHub Desktop.
Linux Sysctl VM better settings

Values are for a NVME drive + 20 GB ram :

To put in /etc/sysctl.d/98-vm_usb.conf :

vm.dirty_bytes=419430400
vm.dirty_background_bytes= 209715200
vm.dirty_ratio=2
vm.dirty_background_ratio=1
vm.dirty_writeback_centisecs=250
vm.dirty_expire_centisecs=500
kernel.nmi_watchdog=0
vm.vfs_cache_pressure=75
vm.swappiness=10

then : sudo sysctl -p /etc/sysctl.d/98-vm_usb.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment