aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2009-11-25 18:22:21 +0000
committerSteven Rostedt <[email protected]>2009-11-25 19:14:15 +0000
commit7ac074340480018681a0d72b324d4487543bdc0e (patch)
treec61f98cd477568d162d5fe408383f257f187508c /fs/proc/array.c
parenttracing, function tracer: Clean up strstrip() usage (diff)
downloadkernel-7ac074340480018681a0d72b324d4487543bdc0e.tar.gz
kernel-7ac074340480018681a0d72b324d4487543bdc0e.zip
ring-buffer-benchmark: Add parameters to set produce/consumer priorities
Running the ring-buffer-benchmark's threads at the lowest priority may work well for keeping it in the background, but it is not appropriate for the benchmarks. This patch adds 4 parameters to the module: consumer_fifo consumer_nice producer_fifo producer_nice By default the consumer and producer still run at nice +19. If the *_fifo options are set, they will override the *_nice values. modprobe ring_buffer_benchmark consumer_nice=0 producer_fifo=10 The above will set the consumer thread to a nice value of 0, and the producer thread to a RT SCHED_FIFO priority of 10. Note, this patch also fixes a bug where calling set_user_nice on the consumer thread would oops the kernel when the parameter "disable_reader" is set. Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions