lkml.org 
[lkml]   [2009]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] x86: Reduce the default HZ value
    Peter Zijlstra wrote:
    >
    > The problem with scheduling a hrtimer along with tasks is that at high
    > context switch rates the timer will never fire but you do pay the
    > overhead of programming the hardware each time, something that can be
    > about as expensive as the whole context switch itself.
    >
    > Although, I guess we could amortize that by not re-programming the timer
    > when the existing timer is within a reasonable period (say 1ms) of the
    > requested on.
    >

    That seems like a reasonable optimization since we're talking about
    multi-kHz context switch rates, here.

    -hpa



    \
     
     \ /
      Last update: 2009-05-07 23:09    [W:2.811 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site