Re: [PATCH [RT] 08/14] add a loop counter based timeout mechanism

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Saturday, February 23, 2008 - 5:31 am

> *) compute the context-switch pair time average for the system.  This is 

This is not a uniform time. Consider the difference between
context switch on the same hyperthread, context switch between cores
on a die, context switch between sockets, context switch between
distant numa nodes. You could have several orders of magnitude
between all those.


That would assume that the hold times are very uniform. But what happens
when you e.g. have a workload where 50% of the lock aquisitions are short 
and 30% are long? 

I'm a little sceptical of such "too clever" algorithms.

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH [RT] 00/14] RFC - adaptive real-time locks, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 03/14] x86: FIFO ticket spinlocks, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 06/14] optimize rt lock wakeup, Gregory Haskins, (Thu Feb 21, 8:26 am)
[PATCH [RT] 07/14] adaptive real-time lock support, Gregory Haskins, (Thu Feb 21, 8:27 am)
[PATCH [RT] 09/14] adaptive mutexes, Gregory Haskins, (Thu Feb 21, 8:27 am)
[PATCH [RT] 10/14] adjust pi_lock usage in wakeup, Gregory Haskins, (Thu Feb 21, 8:27 am)
[PATCH [RT] 12/14] remove the extra call to try_to_take_lock, Gregory Haskins, (Thu Feb 21, 8:27 am)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Gregory Haskins, (Thu Feb 21, 9:05 am)
Re: [PATCH [RT] 10/14] adjust pi_lock usage in wakeup, Steven Rostedt, (Thu Feb 21, 9:48 am)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Peter W. Morreale, (Thu Feb 21, 10:04 am)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Sven-Thorsten Dietrich, (Thu Feb 21, 10:06 am)
Re: [PATCH [RT] 10/14] adjust pi_lock usage in wakeup, Peter W. Morreale, (Thu Feb 21, 10:09 am)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Ingo Molnar, (Thu Feb 21, 2:24 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Bill Huey (hui), (Thu Feb 21, 2:33 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Gregory Haskins, (Thu Feb 21, 2:40 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Peter W. Morreale, (Thu Feb 21, 3:12 pm)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Peter W. Morreale, (Thu Feb 21, 3:42 pm)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Gregory Haskins, (Fri Feb 22, 6:29 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Steven Rostedt, (Fri Feb 22, 6:35 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Ingo Molnar, (Fri Feb 22, 6:35 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Peter Zijlstra, (Fri Feb 22, 6:40 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Steven Rostedt, (Fri Feb 22, 6:43 am)
Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep, Steven Rostedt, (Fri Feb 22, 6:46 am)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Paul E. McKenney, (Fri Feb 22, 12:08 pm)
Re: [PATCH [RT] 07/14] adaptive real-time lock support, Pavel Machek, (Fri Feb 22, 12:14 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Paul E. McKenney, (Fri Feb 22, 12:43 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Sven-Thorsten Dietrich, (Fri Feb 22, 12:55 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Peter W. Morreale, (Fri Feb 22, 1:15 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Peter W. Morreale, (Fri Feb 22, 1:36 pm)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Sven-Thorsten Dietrich, (Sat Feb 23, 12:36 am)
Re: [PATCH [RT] 00/14] RFC - adaptive real-time locks, Andrew Morton, (Sat Feb 23, 1:03 am)
Re: [PATCH [RT] 08/14] add a loop counter based timeout me ..., Andi Kleen, (Sat Feb 23, 5:31 am)