Bug 44371

Summary: can't use realtime I/O priority
Product: IO/Storage Reporter: wbrana
Component: Block LayerAssignee: Jens Axboe (axboe)
Status: RESOLVED INVALID    
Severity: high CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.4.4 Subsystem:
Regression: No Bisected commit-id:

Description wbrana 2012-07-09 17:06:51 UTC
localhost ~ # ulimit -e unlimited
localhost ~ # ulimit -r unlimited

localhost ~ # su - x

x@localhost ~ $ ionice -c1 ls
ionice: ioprio_set failed: Operation not permitted

x@localhost ~ $ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) unlimited
file size               (blocks, -f) unlimited
pending signals                 (-i) 31607
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) 3670016
open files                      (-n) 65536
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) unlimited
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 31607
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
Comment 1 Alan 2012-07-10 15:54:56 UTC
CAP_SYS_ADMIN is required to set rt classes