Man page - chrt(1)
Packages contas this manual
- x86_64(8)
- terminal-colors.d(5)
- getty(8)
- blkid(8)
- scols-filter(5)
- lslocks(8)
- chmem(8)
- uclampset(1)
- blkzone(8)
- whereis(1)
- linux32(8)
- chrt(1)
- isosize(8)
- runuser(1)
- rev(1)
- rtcwake(8)
- zramctl(8)
- mkswap(8)
- blockdev(8)
- ipcrm(1)
- adjtime_config(5)
- readprofile(8)
- setterm(1)
- lsns(8)
- fsck(8)
- setpriv(1)
- lsipc(1)
- ipcmk(1)
- setsid(1)
- wdctl(8)
- fsfreeze(8)
- agetty(8)
- mountpoint(1)
- fstrim(8)
- ionice(1)
- choom(1)
- i386(8)
- unshare(1)
- sulogin(8)
- nsenter(1)
- mcookie(1)
- linux64(8)
- flock(1)
- blkdiscard(8)
- ipcs(1)
- partx(8)
- hardlink(1)
- swaplabel(8)
- ldattach(8)
- su(1)
- chcpu(8)
- setarch(8)
- wipefs(8)
- dmesg(1)
- lslogins(1)
- lscpu(1)
- fallocate(1)
- findmnt(8)
- namei(1)
- switch_root(8)
- more(1)
- taskset(1)
- getopt(1)
- rename.ul(1)
- lsmem(1)
- prlimit(1)
- findfs(8)
- lsblk(8)
- mkfs(8)
- pivot_root(8)
apt-get install util-linux
Available languages:
en uk ro sr deManual
| CHRT(1) | User Commands | CHRT(1) |
NAME
chrt - manipulate the real-time attributes of a process
SYNOPSIS
chrt [options] priority command argument ...
chrt [options] -p [priority] PID
DESCRIPTION
chrt sets or retrieves the real-time scheduling attributes of an existing PID, or runs command with the given attributes.
POLICIES
-o, --other
-f, --fifo
-r, --rr
-b, --batch
-i, --idle
-d, --deadline
SCHEDULING OPTIONS
-T, --sched-runtime nanoseconds
-P, --sched-period nanoseconds
-D, --sched-deadline nanoseconds
-R, --reset-on-fork
Each thread has a reset-on-fork scheduling flag. When this flag is set, children created by fork(2) do not inherit privileged scheduling policies. After the reset-on-fork flag has been enabled, it can be reset only if the thread has the CAP_SYS_NICE capability. This flag is disabled in child processes created by fork(2).
More precisely, if the reset-on-fork flag is set, the following rules apply for subsequently created children:
OPTIONS
-a, --all-tasks
-m, --max
-p, --pid
-v, --verbose
-h, --help
-V, --version
EXAMPLES
The default behavior is to run a new command:
chrt priority command [arguments]
You can also retrieve the real-time attributes of an existing task:
chrt -p PID
Or set them:
chrt -r -p priority PID
This, for example, sets real-time scheduling to priority 30 for the process PID with the SCHED_RR (round-robin) class:
chrt -r -p 30 PID
Reset priorities to default for a process:
chrt -o -p 0 PID
See sched(7) for a detailed discussion of the different scheduler classes and how they interact.
PERMISSIONS
A user must possess CAP_SYS_NICE to change the scheduling attributes of a process. Any user can retrieve the scheduling information.
NOTES
Only SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b Process Scheduling. The other scheduling attributes may be ignored on some systems.
Linux' default scheduling policy is SCHED_OTHER.
AUTHORS
Robert Love <rml@tech9.net>, Karel Zak <kzak@redhat.com>
SEE ALSO
nice(1), renice(1), taskset(1), sched(7)
See sched_setscheduler(2) for a description of the Linux scheduling scheme.
REPORTING BUGS
For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.
AVAILABILITY
The chrt command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
| 2025-02-26 | util-linux 2.41 |