We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a39c644 + 0c96bfb commit 69bbe17Copy full SHA for 69bbe17
kvmagent/zstack-kvmagent
@@ -37,6 +37,15 @@ if [ $# -eq 0 ]; then
37
exit 1
38
fi
39
40
+apply_resource_settings() {
41
+ ulimit -Hn 16384
42
+ ulimit -Sn 16384
43
+
44
+ # try to avoid 'hung_task_timeout_secs' issue
45
+ sysctl -w vm.dirty_ratio=10
46
+ sysctl -w vm.dirty_background_ratio=5
47
+}
48
49
rm_ebtables_dangling_lock() {
50
lockfile='/var/lib/ebtables/lock'
51
test -e $lockfile || return
@@ -47,8 +56,7 @@ rm_ebtables_dangling_lock() {
56
if [ "$@" = "status" ]; then
57
check_status
58
else
- ulimit -Hn 16384
- ulimit -Sn 16384
59
+ apply_resource_settings
52
60
rm_ebtables_dangling_lock
53
61
54
62
. /var/lib/zstack/virtualenv/kvm/bin/activate && python -c "from kvmagent import kdaemon; kdaemon.main()" $@
0 commit comments