summaryrefslogtreecommitdiffstats
path: root/schedutils
Commit message (Collapse)AuthorAgeFilesLines
...
* chrt: add support for SCHED_RESET_ON_FORKAdrian Knoth2010-02-021-0/+11
| | | | | | | | | | | | | | | | From 9262c9832134f8a33ac2ea2854dc6d20acc712d1 Mon Sep 17 00:00:00 2001 From: Adrian Knoth <adi@drcomp.erfurt.thur.de> Date: Tue, 2 Feb 2010 16:57:23 +0100 Subject: [PATCH] Add support for SCHED_RESET_ON_FORK to chrt SCHED_RESET_ON_FORK has been added in 2.6.31. If a thread has this flag set, chrt reports "unknown" policy, which is confusing. The patch adds support for this new flag. It will (can) only be applied to SCHED_FIFO or SCHED_RR, so there's no need to catch the other scheduling policies. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
* po: fix msgid bugsKarel Zak2009-12-101-1/+1
| | | | | Reported-by: Petr Pisar <petr.pisar@atlas.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: add a note about none class and CFQKarel Zak2009-11-181-5/+10
| | | | | Reported-by: Corrado Zoccolo <czoccolo@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: use c.hKarel Zak2009-10-161-4/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice.1: formattingPeter Breitenlohner2009-08-171-13/+17
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* build-sys: rename to _execdirKarel Zak2009-07-041-3/+3
| | | | | | | | | | | | The variable name "usrlibexecdir" is very confusing (because we have /usr/libexec). The "exec" prefix is required for user-defined directories, see http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install This patch renames all usr*execdir variables to usr*_execdir. Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: Allow setting the none classJakob Unterwurzacher2009-05-272-3/+6
| | | | | | | | | | Allow users to set the "none" class on processes. Using the none class has the distict advantage that the io priority is inherited from the cpu nice level. Update the man page to reflect the change. Signed-off-by: Jakob Unterwurzacher <jakobunt@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: don't assume SCHED_BATCH and SCHED_IDLE existAurelien Jarno2009-05-072-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | SCHED_FIFO, SCHED_OTHER, SCHED_RR are part of POSIX 1003.1b Process Scheduling, so it is correct to assume they always exists. SCHED_BATCH and SCHED_IDLE are Linux specific, we should not assume they exists. Defining SCHED_BATCH and SCHED_IDLE to random values (ie the ones found on Linux systems) is not an option as they may *collide* with the one of other systems. For example on GNU/kFreeBSD we have: #define SCHED_RR 3 and on Linux we have: #define SCHED_BATCH 3 [kzak@redhat.com: - add "Linux specific" notes to chrt.1 - add a note about BATCH and PR conflict to this commit message] Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: change Jens Axboe's emailKarel Zak2009-04-232-2/+2
| | | | | | | | Based on util-linux-2.14.2-schedutils_fix_email.patch from SUSE src.rpm package. Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: add a comment about non POSIX 1003.1b attributes in chrt.1Aurelien Jarno2009-04-231-0/+8
| | | | | | | Mention that only SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b Process Scheduling in chrt.1. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* chrt: output buglet when reporting scheduling classKarel Zak2009-02-031-0/+1
| | | | | | | | | | | | | | % chrt -i 0 ./a.out & [1] 60479 % chrt -p 60479 pid 60479's current scheduling policy: SCHED_IDLE SCHED_RR pid 60479's current scheduling priority: 0 We have a spurious and incorrect SCHED_RR in there... Address-Red-Hat-Bugzilla: #483706 Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: fix typo in manpageKarel Zak2009-02-021-2/+2
| | | | | Reported-by: Jakob Unterwurzacher <jakobunt@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: a little cleanup of "none" descriptionKarel Zak2009-01-221-10/+8Star
| | | | | | | | We practically have three io scheduling classes. The "none" is de facto "best-effort" class for processes that has not asked for io priority. Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: Extend the man page to explain the "none" class and cpu-nice inheritanceJakob Unterwurzacher2009-01-161-4/+12
| | | | | | | Extend the ionice man page to explain the "none" class and how the cpu-nice => io-priority inheritance works. Signed-off-by: Jakob Unterwurzacher <jakobunt@gmail.com>
* chrt: add NLS support, clean error messages and return codesKarel Zak2008-09-231-105/+69Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: support CFS SCHED_IDLE priority and document itMartin Steigerwald2008-09-232-3/+33
| | | | | Signed-off-by: Martin Steigerwald <ms@teamix.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: add strtol() checks, cleanup usage text and man pageKarel Zak2008-09-062-21/+45
| | | | | | | | | | | | | | | | | | | * cleanup usage() output * check strtol(); don't ignore wrong command line options The original ionice design was a little broken, because it was possible to specify a PID and also a COMMAND: ionice -c2 -p 123 /bin/foo but the command /bin/foo was executed without requested scheduling class. That's stupid behaviour. Now you have to use "-p PID" **or** COMMAND, but not both. Nothing is ignored and all options are checked. Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: let -p handle multiple PIDsStephan Maka2008-09-052-30/+57
| | | | | | | | | | Makes ionice -p usable like renice, this time backwards compatible [kzak@redhat.com: - fix coding style - add ioprio_setpid()] Signed-off-by: Stephan Maka <stephan@spaceboyz.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: cleanup error messages, add NLS supportKarel Zak2008-08-141-25/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: cleanup man pageKarel Zak2008-08-141-24/+17Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: add -t optionLubomir Kundrak2008-06-162-4/+15
| | | | | | | | | | | | | | | | | | | | | | | This patch allows "tolerant" behavior, i.e. proceeding even if priority could not be set. This might be of use in case something (selinux, old kernel, etc.) does not allow the requested scheduling priority to be set. This could be to some extend done as follows: ionice -c3 command || command but the downside is that one could not really tell if what failed was setting priority or command itself, which could result in duplicate command run. This patch solves the situation, so that user can do ionice -t -c3 command Addresses-Red-Hat-Bugzilla: #443842 Signed-off-by: Lubomir Kundrak <lkundrak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: update man page to reflect IDLE class change in 2.6.25Karel Zak2008-04-281-2/+3
| | | | | | | | The idle class is safe for non-root users since 2.6.25. http://lwn.net/Articles/266256/ Addresses-Red-Hat-Bugzilla: #443823 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: ignore a bunch of generated files, mostly binariesJames Youngman2008-04-141-0/+3
| | | | | Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use dist_man_MANS instead of man_MANSStepan Kasal2007-12-171-3/+3
| | | | Signed-off-by: Stepan Kasal <skasal@redhat.com>
* ionice: add a note about permissions to ionice.1Karel Zak2007-09-201-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove hardcoded _GNU_SOURCEKarel Zak2007-09-202-4/+0Star
| | | | | | We have AC_GNU_SOURCE, so we needn't any extra hardcoded _GNU_SOURCE. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: unify method for checking system calls and fallback handlingMike Frysinger2007-09-202-34/+9Star
| | | | | | Co-Author: Stepan Kasal <skasal@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Stepan Kasal <skasal@redhat.com>
* ionice: clean up error handlingMatthias Koenig2007-08-271-7/+12
| | | | | | | | | Print error in case execvp fails and use exit macros. Based on patch by Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* taskset: check for existence of sched_getaffinityMike Frysinger2007-08-271-2/+7
| | | | | | | Some architectures do no reliably provide sched_getaffinity, so make sure the define exists before we try using it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* man-pages: cleanup of chrt.1 and taskset.1LaMont Jones2007-08-152-12/+28
| | | | | Signed-off-by: LaMont Jones <lamont@mmjgroup.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: cleanup usage for idle classMatthias Koenig2007-07-251-4/+9
| | | | | | | | The idle class has no class data. It will print a warning if a prio argument is given for it, since this will be ignored. Output for idle class will not contain prio data. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* schedutils: fix chrt docs and pid=0 usageMatthias Koenig2007-07-162-7/+9
| | | | | | | Fix some documentation bugs for chrt. Make it work with PID 0, which means current process. Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* ionice: prefer SYS_ioprio_{set,get} from glibc to hardcoded versionKarel Zak2007-07-161-26/+33
| | | | | | | It's better to use glibc SYS_ioprio_{set,get} definitions rather than an incomplete (not all archs) and hardcoded version from ionice.c. Signed-off-by: Karel Zak <kzak@redhat.com>
* man pages: add "AVAILABILITY" sectionKarel Zak2007-07-033-4/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: fix ionice build on sparcDavid Miller2007-07-021-0/+3
| | | | | | Provide the proper syscall numbers for this architecture. Signed-off-by: David S. Miller <davem@davemloft.net>
* taskset: independent of hardcoded NR_CPUS max.Cliff Wickman2007-06-191-33/+168
| | | | | | | | | | | | | | | | | | | | This patch makes the taskset command independent of the system's maximum number of cpus (CONFIG_NR_CPUS). The maximum for CONFIG_NR_CPUS is a moving target. With this patch the size of the systems's cpumask_t is gotten from sched_getaffinity(2). This patch uses variable length bitmasks borrowed from Paul Jackson's variable size bitmask routines (hence I kept his copyright notice). This replaces the use of the glibc CPU_SETSIZE, CPU_SET, CPU_ZERO and CPU_ISSET macros which depend on a hardcoded size for cpu_set_t. (also fixes one little nit: the -V option is "-v" in the built-in help, so changed the built-in help) Signed-off-by: Cliff Wickman <cpw@sgi.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* schedutils: define SCHED_BATCH when compile with old glibcKarel Zak2007-04-112-2/+11
| | | | | | | | This is temporary workaround and it will be removed in 2.14 when minimal number of people will use old systems where is not defined SCHED_BATCH in (bits/)sched.h. Signed-off-by: Karel Zak <kzak@redhat.com>
* schedutils: add support for SCHED_BATCHKarel Zak2007-01-162-6/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* schedutils: remove extra hyptens from man pagesKarel Zak2007-01-162-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove generated autotools stuff from gitKarel Zak2007-01-031-552/+0Star
| | | | | | | The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre6 tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.13-pre4 tarball.Karel Zak2006-12-071-0/+2
|
* Imported from util-linux-2.13-pre3 tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.13-pre2 tarball.Karel Zak2006-12-074-104/+45Star
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-078-0/+1606