diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-30 10:01:09 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-04-20 09:39:06 +0200 |
commit | 36cf5b220e8b5f191342d13ed2d069d2bbca77d5 (patch) | |
tree | 5d249a5cbfdce77212e1006887781088718a3fe0 /bin | |
parent | b2e24c55ef8dd7d0b45ea43eb7615a836f06aaf6 (diff) | |
download | ptxdist-36cf5b220e8b5f191342d13ed2d069d2bbca77d5.tar.gz ptxdist-36cf5b220e8b5f191342d13ed2d069d2bbca77d5.tar.xz |
[ptxdist] add option to modify scheduling priority (nice)
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 674ed1d3a..e8a33db9b 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -836,6 +836,9 @@ Options: --load-average=<n>, -l<n> try to limit load to <n> + --nice=<n>, -n<n> run with reduced scheduling priority (i.e. nice) + (default = 10) + -k keep going. Continue as much as possible after an error. @@ -1299,6 +1302,14 @@ parse_first() --load-average=*) PTXDIST_LOADMFLAGS_INTERN="-l${arg#*=}" ;; + -n*) + PTX_NICE="${arg#*n}" + PTX_NICE="${PTX_NICE:-10}" + ;; + --nice=*) + PTX_NICE="${arg#*=}" + PTX_NICE="${PTX_NICE:-10}" + ;; -q|--quiet) PTXDIST_QUIET=1 ;; |