summaryrefslogtreecommitdiffstats
path: root/schedutils
Commit message (Collapse)AuthorAgeFilesLines
...
* docs: bring the chrt and taskset man pages closer to standard formattingBenno Schulenberg2014-08-202-67/+68
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: make the license of chrt and taskset slightly more explicitBenno Schulenberg2014-08-202-9/+6Star
| | | | | | | This makes it match the license of the man pages. While there, also tweak some other comment lines. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: make the man-page licenses of chrt and taskset match their intentBenno Schulenberg2014-08-202-6/+4Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* build-sys: add BUILD_CHRTKarel Zak2014-05-211-4/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: slice up and standardize the usage text of ioniceBenno Schulenberg2014-05-061-27/+27
| | | | | | | Done for ease of translation and maintenance. Also improve the clarity of some of the descriptions, and of one error message. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* ionice: add a missing error messageBenno Schulenberg2014-05-061-0/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* ionice: add the way to specify the target processes with pgid and uidMasatake YAMATO2014-02-172-22/+74
| | | | | | | | | | | | | ioprio_get and ioprio_set system call accept not only process ID but also process group ID(pgid) and user ID(uid) to specify the target process(es). However, ionice command accepts only process ID. With this patch a user can specify the target processes with pgid(-P option) and uid(-u option). [kzak@redhat.com: - tiny cleanup in usage()] Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: Fix output for case ioclass==0Michael Bunk2014-01-151-1/+1
| | | | output "none" instead of "unknown"
* taskset: fix PERMISSIONS section of taskset man pageRik van Riel2013-12-101-2/+3
| | | | | | | | | A user is always allowed to change the CPU affinity of his or her own processes. CAP_SYS_NICE is only required to change the affinity of another user's process. Signed-off-by: Rik van Riel <riel@redhat.com> Reported-by: Joe Mario <jmario@redhat.com>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-153-3/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: fix several typos and angular brackets in messagesBenno Schulenberg2013-06-071-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* chrt: make command syntax easier to understand in usage()Sami Kerola2013-04-052-5/+10
| | | | | | | | And mention in manual that the default is referring to the internal default of this command, not the Linux system default. Manual page example also tries to be a little more complete how to use the command. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* schedutils: don't apply -a without -pDaniel Stodden2013-03-261-1/+1
| | | | | | | | The unsuspecting user might use taskset -a mask command. Behavior then is to exec with no affinity applied at all. Better handled by ignoring all_tasks if no pid was given. Signed-off-by: Daniel Stodden <daniel.stodden@gmail.com>
* ionice: keep output backwardly compatibleKarel Zak2013-03-041-1/+1
| | | | | | ...bug introduced by 8c219bf463dbbae412767d269bff1cdd4e4bf4a5 Signed-off-by: Karel Zak <kzak@redhat.com>
* translation: unify exec error messagesSami Kerola2013-02-063-3/+2Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: gettextize several overlooked messagesBenno Schulenberg2013-01-253-5/+5
| | | | | | Also improve the clarity of some of them. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: tag two bug messages as "internal error"Benno Schulenberg2013-01-251-2/+1Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: fix typos in messagesYuri Chornoivan2012-09-041-1/+1
|
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-3/+3
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup .gitignore filesKarel Zak2012-06-261-3/+0Star
| | | | | | | - move all binaries to top-level .gitignore - remove unnecessary */.gitignore files Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-17/+6Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert schedutils/ to moduleKarel Zak2012-06-262-23/+33
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* schedutils: cleanup strtoxx_or_err()Karel Zak2012-05-153-10/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* schedutils: verify writing to streams was successfulSami Kerola2012-04-043-1/+6
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: enhance readability of the autotools filesSami Kerola2012-02-281-1/+4
| | | | | | | | Several horizontal lists are turned to vertical, and sorted to alphabetical order. Additionally spaces are converted to tabs where ever possible. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: corrections to FSF license files, and postal addressSami Kerola2012-02-244-14/+12Star
| | | | | | | | | | | | | | The COPYING and Documentation/licenses/COPYING* files are being replaced by files from GNU web site. http://www.gnu.org/licenses/gpl-2.0.txt http://www.gnu.org/licenses/lgpl-2.1.txt Postal addresses to FSF in other files are updated to match with the address in license files. Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* taskset: use appropriate variable type [cppcheck]Sami Kerola2012-02-081-1/+1
| | | | | | [schedutils/taskset.c:182]: (style) Checking if unsigned variable 'ncpus' is less than zero. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* chrt: add comment to keep static analysers happyKarel Zak2012-01-311-0/+1
|
* build-sys: cleanup BUILD_SCHEDUTILSKarel Zak2011-11-031-4/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'chcpu' of ↵Karel Zak2011-08-311-1/+1
|\ | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux * 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux: chcpu: new tool cpuset: add option to allow cpulist_parse() to fail
| * cpuset: add option to allow cpulist_parse() to failHeiko Carstens2011-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a preparation patch for chcpu. If a cpu should be added to a cpu_set where the cpu doesn't fit into the cpu_set this got silently ignored. Since the cpu-list is user space provided it should be checked if cpus are specified that are completely out of range of the system. In order to do that add a parameter which specifies if cpulist_parse() should fail if it parses a cpu-list with "impossible" cpus. The current callers have been converted so they behave like before. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* | ionice: adjust synopsis and wording and formatting on the man pageBenno Schulenberg2011-08-291-27/+29
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-223-7/+7
|/ | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* ionice: slightly improve grammar, spacing and consistency of man pageBenno Schulenberg2011-08-081-37/+35Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* taskset: adjust style of man pageBenno Schulenberg2011-08-081-7/+7
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* chrt: adjust style of man page, alphabetize option -pBenno Schulenberg2011-08-081-28/+32
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* chrt: silently ignore -R if unsupportedKarel Zak2011-08-021-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: fix compiler warnings [-Wsign-compare]Karel Zak2011-08-011-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: use unsigned int for bit-filedsKarel Zak2011-07-291-1/+1
| | | | | Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: make -t more tolerantKarel Zak2011-07-221-5/+11
| | | | | | | | | | | | | | | | | | | | | * replace errx() with warnx() for unknown -c class The right place to check I/O scheduler features is in kernel. We should not try to be more smart than kernel. * make the code ready (robust) for unknown sched.classes * fix -t behavior old version: $ ionice -c 4 -t bash ionice: bad prio class 4 new version: $ ionice -c 4 -t bash Reported-by: Voelker, Bernhard" <bernhard.voelker@siemens-enterprise.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: allow to use names for -c <class>Karel Zak2011-07-222-14/+37
| | | | | | | | for example: $ ionice -c best-effort bash Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: improve command line interpretationKarel Zak2011-07-222-19/+33
| | | | | | | | | | | | | ionice : print the current I/O prio. ionice COMMAND : exec command with default (best-effort) class ionice -p PID [...] : return info about the PID(s) ionice -c CLASS COMMAND : exec command with the class ionice -c CLASS -p PID [...] : modify PID(s) class This should be backwardly compatible and also compatible with nice(1) from coreutils. Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: add strings to use NLSSami Kerola2011-07-211-3/+3
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* taskset: coding style fixesSami Kerola2011-07-211-17/+17
| | | | | | | Reindentation and deletion of few empty lines etc. There is no actual code changes in this patch. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* taskset: include-what-you-use header checkSami Kerola2011-07-211-0/+3
| | | | | | | | | taskset.c should add these lines: #include <sched.h> for sched_getaffinity, etc #include <stddef.h> for size_t #include <string.h> for memset Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: mention long options in ionice.1Sami Kerola2011-07-211-16/+28
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: coding style fixesSami Kerola2011-07-211-5/+4Star
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: fix -V outputSami Kerola2011-07-211-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* ionice: fix -pKarel Zak2011-07-211-2/+6
| | | | | | | | | | | | | | | | | $ ionice 123 none: prio 4 none: prio 4 It calls ioprio_get(0x1, 0) and ioprio_get(0x1, 123), because the code does not check it the "-p" options was specified. The proper command line syntax is: $ ionice -p 123 and the ioprio_get() should be called only once. Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: IOPRIO_PRIO_* macrosKarel Zak2011-07-211-23/+30
| | | | | | | | * make the code more robust * follow kernel conventions for variable names (data = classdata, ioprio = classdata | class) Signed-off-by: Karel Zak <kzak@redhat.com>