Skip to content

Instantly share code, notes, and snippets.

@assafmo
Last active February 11, 2018 13:32
Show Gist options
  • Save assafmo/7b2f02d87925f5b377ec360d473b61de to your computer and use it in GitHub Desktop.
Save assafmo/7b2f02d87925f5b377ec360d473b61de to your computer and use it in GitHub Desktop.
Tune ext4 for performance

Adjust ext4 for performance

Mount options

errors=remount-ro,noatime,nouser_xattr,barrier=0

Journal

Check if exists

sudo tune2fs -l /dev/sdXY | fgrep has_journal

Turn Off/On

Unmount filesystem (If root filesystem then mount read-only) and then:
tune2fs -O ^has_journal /dev/sdXY

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