RE: [PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime()

2013-05-23 Thread Peter Boonstoppel
r Zijlstra Cc: Peter Boonstoppel; Ingo Molnar; linux-kernel@vger.kernel.org; Paul Walmsley Subject: Re: [PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime() On Wed, 2013-05-22 at 10:16 +0200, Peter Zijlstra wrote: > I thought we already had a knob for that; RT_RUN

Re: [PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime()

2013-05-22 Thread Mike Galbraith
On Wed, 2013-05-22 at 10:16 +0200, Peter Zijlstra wrote: > I thought we already had a knob for that; RT_RUNTIME_SHARE. And as Mike > said, we might consider flipping the default on that. sched,rt: disable rt_runtime borrowing by default Make the default RT_RUNTIME_SHARE setting reflect the most

Re: [PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime()

2013-05-22 Thread Peter Zijlstra
On Tue, May 21, 2013 at 02:30:09PM -0700, Peter Boonstoppel wrote: > RT throttling aims to prevent starvation of non-SCHED_FIFO threads > when a rogue RT thread is hogging the CPU. It does so by piggybacking > on the rt_bandwidth system and allocating at most rt_runtime per > rt_period to SCHED_FIF

Re: [PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime()

2013-05-22 Thread Michael Wang
Hi, Peter On 05/22/2013 05:30 AM, Peter Boonstoppel wrote: > RT throttling aims to prevent starvation of non-SCHED_FIFO threads > when a rogue RT thread is hogging the CPU. It does so by piggybacking > on the rt_bandwidth system and allocating at most rt_runtime per > rt_period to SCHED_FIFO tasks

Re: [PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime()

2013-05-21 Thread Mike Galbraith
On Tue, 2013-05-21 at 14:30 -0700, Peter Boonstoppel wrote: > RT throttling aims to prevent starvation of non-SCHED_FIFO threads > when a rogue RT thread is hogging the CPU. It does so by piggybacking > on the rt_bandwidth system and allocating at most rt_runtime per > rt_period to SCHED_FIFO task

[PATCH RFC] sched/rt: preserve global runtime/period ratio in do_balance_runtime()

2013-05-21 Thread Peter Boonstoppel
RT throttling aims to prevent starvation of non-SCHED_FIFO threads when a rogue RT thread is hogging the CPU. It does so by piggybacking on the rt_bandwidth system and allocating at most rt_runtime per rt_period to SCHED_FIFO tasks (e.g. 950ms out of every second, allowing 'regular' tasks to run fo