summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-03-30 10:01:09 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-04-20 09:39:06 +0200
commit36cf5b220e8b5f191342d13ed2d069d2bbca77d5 (patch)
tree5d249a5cbfdce77212e1006887781088718a3fe0 /bin
parentb2e24c55ef8dd7d0b45ea43eb7615a836f06aaf6 (diff)
downloadptxdist-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-xbin/ptxdist11
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
;;