lkml.org 
[lkml]   [2011]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [patchlet] sched: fix rt throttle runtime borrowing
    From
    On Mon, Mar 7, 2011 at 10:27 PM, Mike Galbraith <efault@gmx.de> wrote:
    > sched: fix rt throttle runtime borrowing
    >
    > If allowed to borrow up to rt_period, the throttle has no effect on an out
    > of control RT task, allowing it to consume 100% CPU indefinitely, blocking
    > system critical SCHED_NORMAL threads indefinitely.
    >
    > To make the throttle a more effective safety mechanism, disable borrowing
    > by default. while providing an opt-in switch for those who know the risks.
    > Also fix the throttle such that it never silently bumps rt_runtime to the
    > point that it disables itself (rt_runtime >= rt_period).
    >
    > Convert balance_runtime() and do_balance_runtime() to void since their
    > return values are never used.
    >
    > Signed-off-by: Mike Galbraith <efault@gmx.de>
    >
    > ---
    > Index: linux-2.6/include/linux/sched.h
    > ===================================================================
    > --- linux-2.6.orig/include/linux/sched.h
    > +++ linux-2.6/include/linux/sched.h
    > @@ -1941,6 +1941,7 @@ static inline unsigned int get_sysctl_ti
    >  #endif
    >  extern unsigned int sysctl_sched_rt_period;
    >  extern int sysctl_sched_rt_runtime;
    > +extern int sysctl_sched_rt_borrow_runtime;

    It should be under CONFIG_SMP.

    Thanks,
    Yong


    --
    Only stand for myself
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2011-03-08 09:25    [W:0.022 / U:271.544 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site