mirror of https://github.com/mkerrisk/man-pages
Since Linux 2.6.25, CAP_SYS_ADMIN is longer required to set
a low priority (IOPRIO_CLASS_IDLE).
This commit is contained in:
parent
4aeb366b72
commit
d22faa3469
|
@ -22,7 +22,7 @@
|
|||
.\" with various additions by Michael Kerrisk <mtk.manpages@gmail.com>
|
||||
.\"
|
||||
.\"
|
||||
.TH IOPRIO_SET 2 2007-06-01 "Linux" "Linux Programmer's Manual"
|
||||
.TH IOPRIO_SET 2 2008-07-09 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
ioprio_get, ioprio_set \- get/set I/O scheduling class and priority
|
||||
.SH SYNOPSIS
|
||||
|
@ -269,8 +269,7 @@ Priority levels range from 0 (highest) to 7 (lowest).
|
|||
This is the idle scheduling class.
|
||||
Processes running at this level only get I/O
|
||||
time when no-one else needs the disk.
|
||||
The idle class has no class
|
||||
data.
|
||||
The idle class has no class data.
|
||||
Attention is required when assigning this priority class to a process,
|
||||
since it may become starved if higher priority processes are
|
||||
constantly accessing the disk.
|
||||
|
@ -293,11 +292,14 @@ capability can change the priority of any process.
|
|||
.B "What is the desired priority"
|
||||
Attempts to set very high priorities
|
||||
.RB ( IOPRIO_CLASS_RT )
|
||||
or very low ones
|
||||
.RB ( IOPRIO_CLASS_IDLE )
|
||||
require the
|
||||
.B CAP_SYS_ADMIN
|
||||
capability.
|
||||
Kernel versions up to 2.6.24 also required
|
||||
.B CAP_SYS_ADMIN
|
||||
to set a very low priority
|
||||
.RB ( IOPRIO_CLASS_IDLE ),
|
||||
but since Linux 2.6.25, this is no longer required.
|
||||
.PP
|
||||
A call to
|
||||
.BR ioprio_set ()
|
||||
|
|
Loading…
Reference in New Issue