Created
August 28, 2014 04:33
-
-
Save hh/c19fa0c65aaaf60f482f to your computer and use it in GitHub Desktop.
Fix for kswapd0 making system unusable when io and memory usage is high
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On Arch Drop this file into /etc/sysctl.d/ | |
# and run sysctl --system | |
# on other systems put in /etc/sysctl.conf | |
# http://discussions.citrix.com/topic/277290-kswapd0-process-consumes-a-guest-vm/#entry1511105 | |
vm.dirty_background_ratio = 3 | |
# (default was 10, had tried 5)) | |
vm.dirty_expire_centisecs = 500 | |
# (default was 3000, had tried 1000) | |
vm.dirty_ratio = 15 | |
# (default was 40) | |
vm.dirty_writeback_centisecs = 100 | |
# (default was 500){quote} | |
# If the above doesn't work, maybe try this: | |
# https://bbs.archlinux.org/viewtopic.php?id=144702 | |
# echo 3 > /proc/sys/vm/drop_caches | |
# echo 1 > /proc/sys/vm/drop_caches | |
# schedtool -D -n 19 `pidof kswapd0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment