From 61e36af743cd0bffcac2c0759ac13d2493caec93 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Tue, 7 Feb 2023 12:54:49 -0500 Subject: [report] Allow users to constrain sos process priority Adds a new `--low-priority` option to report, which will attempt to constrain the process priority for the report generation. We do this by attempting to set ourselves to an 'idle' IO class, as well as setting our niceness to 19 to avoid contending for CPU time. This is also exposed via `sos collect`, however users should note that this will not be effective until the sos-4.5.1 release. Closes: #3127 Signed-off-by: Jake Hunsaker --- man/en/sos-report.1 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'man/en') diff --git a/man/en/sos-report.1 b/man/en/sos-report.1 index 4facd556..c4859b8f 100644 --- a/man/en/sos-report.1 +++ b/man/en/sos-report.1 @@ -33,6 +33,7 @@ sos report \- Collect and package diagnostic and support data [--skip-commands commands]\fR [--skip-files files]\fR [--allow-system-changes]\fR + [--low-priority]\fR [-z|--compression-type method]\fR [--encrypt]\fR [--encrypt-key KEY]\fR @@ -230,6 +231,11 @@ for example \fB/etc/sos/*\fR. .B \--allow-system-changes Run commands even if they can change the system (e.g. load kernel modules). .TP +.B \--low-priority +Set sos to execute as a low priority process so that is does not interfere with +other processes running on the system. Specific distributions may set their own +constraints, but by default this involves setting process niceness to 19 and, if +available, setting an idle IO class via ionice. .B \-z, \--compression-type METHOD Override the default compression type specified by the active policy. .TP -- cgit