[lkml]   [2004]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch] RCU for low latency [1/2]

    Dipankar Sarma wrote:

    >Provide a rq_has_rt_task() interface to detect runqueues with
    >real time priority tasks. Useful for RCU optimizations.

    Can you make rq_has_rt_task the slow path? Adding things like this
    can actually be noticable on microbenchmarks (eg. pipe based ctx
    switching). Its probably cache artifacts that I see, but it wouldn't
    hurt to keep the scheduler as tight as possible.

    I think this should cover it.

    int rq_has_rt_task(int cpu)
    runqueue_t *rq = cpu_rq(cpu);
    return (sched_find_first_bit(rq->active) < MAX_RT_PRIO);

    Any good?

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:59    [W:0.020 / U:8.476 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site