diff options
author | Marc Benoit <marcb62185@gmail.com> | 2018-04-05 18:03:34 -0400 |
---|---|---|
committer | Marc Benoit <marcb62185@gmail.com> | 2018-04-06 07:46:44 -0400 |
commit | 9b3ecbd64a6328e13981165660d8930e8bb2446a (patch) | |
tree | bab7bd24fb58569ca6d4b8975694f50efafb7aff /net/nlbwmon | |
parent | 50deddd1e30482e75642d12c0d4a0a0d04f1aece (diff) |
net/nlbwmon: run with lower priority
Even on a powerful platform a nlbwmon process'
activities are sometimes affecting throoughput and
latency. This is a backgroud process, that should not
be running with default priority.
Even if it is a little deplayed, that is not a worry in
this case. The routing should be the main priority,
bandwidth stats collection can wait a bit.
Tested on Netgear R7800
Signed-off-by: Marc Benoit <marcb62185@gmail.com>
Diffstat (limited to 'net/nlbwmon')
-rwxr-xr-x | net/nlbwmon/files/nlbwmon.init | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/nlbwmon/files/nlbwmon.init b/net/nlbwmon/files/nlbwmon.init index 3f01d0f58..53167dc65 100755 --- a/net/nlbwmon/files/nlbwmon.init +++ b/net/nlbwmon/files/nlbwmon.init @@ -5,6 +5,7 @@ START=60 USE_PROCD=1 NAME=nlbwmon PROG=/usr/sbin/nlbwmon +NICEPRIO=19 add_subnet() { local network="$1" @@ -80,6 +81,7 @@ start_service() { procd_open_instance procd_set_param stderr 1 procd_set_param command "$PROG" + procd_set_param nice "$NICEPRIO" config_load nlbwmon config_foreach parse_config nlbwmon |