diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-01-23 11:03:05 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-01-23 11:03:05 -0800 |
commit | f321298c551e4333fcf2819eabf7ce67ea443e20 (patch) | |
tree | 49e79f111fb9a232b0300eab438b30a20e04d8e4 /sys/man | |
parent | 5e20e8f963482a2008ed70cc8fa5973078248aed (diff) |
upas/runq: support parallel queue processing, drop -a
When running a mail queue, it's useful to run it with limited
parallelism. This helps mailing lists process messages in a
reasonable time.
At the same time, we can remove the load balancing from runq,
since the kinds of systems that this matters on no longer
exist, and running multiple queues at once can be better
done through xargs.
Diffstat (limited to 'sys/man')
-rw-r--r-- | sys/man/8/qer | 45 |
1 files changed, 8 insertions, 37 deletions
diff --git a/sys/man/8/qer b/sys/man/8/qer index 7a2636537..675286bc4 100644 --- a/sys/man/8/qer +++ b/sys/man/8/qer @@ -15,7 +15,7 @@ qer, runq \- queue management for spooled files .br .B runq [ -.B -adsER +.B -dER ] [ .B -f @@ -26,10 +26,6 @@ qer, runq \- queue management for spooled files .I subdir ] [ -.B -l -.I load -] -[ .B -t .I time ] @@ -39,7 +35,7 @@ qer, runq \- queue management for spooled files ] [ .B -n -.I nprocs +.I njobs ] .I root cmd .SH DESCRIPTION @@ -84,10 +80,7 @@ starts with 'F', the second 'G', etc. .I Runq processes the files queued by .IR qer . -Without the -.B -a -option, -.I runq +.I Runq processes all requests in the directory .IR root / subdir , where @@ -96,9 +89,6 @@ is the argument to .B -q if present, else the contents of .BR /dev/user . -With the -.B -a -it processes all requests. Each request is processed by executing the command .I cmd with the contents of the control file as its arguments, @@ -172,31 +162,12 @@ be drained incrementally. It is most useful in combination with the .I -q flag. .P -The -.BR -s , -.BR -n , -and -.B -l -flags are only meaningful with the -.B -a -flag. They control amount of parallelism that -is used when sweeping all of the queues. The argument following the +The argument following the .B -n -flag specifies the number of queues that are swept -in parallel; the default is 50. The argument following the -.B -l -flag specifies the total number of queues that are being swept. -By default, there is no limit. The number of active sweeps -is cumulative over all active executions of -.IR runq . -The -.B -s -flag forces each queue directory to be processed by exactly -one instance of -.IR runq . -This is useful on systems that connect to slow -external systems and prevents all the queue sweeps from -piling up trying to process a few slow systems. +flag specifies the number of queued jobs that are processed +in parallel from the queue; the default is 1. +This is useful for a large queue to be processed with a bounded +amount of parallelism. .PP .I Runq is often called from |