From cb8f5e01f639cb6e8715b33bb725210cb0493887 Mon Sep 17 00:00:00 2001 From: Oleksandr Natalenko Date: Tue, 17 May 2016 16:45:44 +0300 Subject: glusterfsd/main: Add ability to set oom_score_adj Give the administrator a possibility to set oom_score_adj for glusterfs process. Applies to Linux only. Change-Id: Iff13c2f4cb28457871c6ebeff6130bce4a8bf543 BUG: 1336818 Signed-off-by: Oleksandr Natalenko Reviewed-on: http://review.gluster.org/14399 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- xlators/mount/fuse/utils/mount.glusterfs.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators/mount/fuse/utils') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 0fc0cf4a4e3..6c4cdfed062 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -230,6 +230,10 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --congestion-threshold=$cong_threshold"); fi + if [ -n "$oom_score_adj" ]; then + cmd_line=$(echo "$cmd_line --oom-score-adj=$oom_score_adj"); + fi + if [ -n "$fuse_mountopts" ]; then cmd_line=$(echo "$cmd_line --fuse-mountopts=$fuse_mountopts"); fi @@ -444,6 +448,9 @@ with_options() "congestion-threshold") cong_threshold=$value ;; + "oom-score-adj") + oom_score_adj=$value + ;; "xlator-option") xlator_option=$value ;; -- cgit