Re: [RFC PATCH 00/11] sched: CFS low-latency features

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mathieu Desnoyers
Date: Friday, August 27, 2010 - 8:18 am

* Paul E. McKenney (paulmck@linux.vnet.ibm.com) wrote:

Let's focus on the userspace thread execution, right between the samping of the
current time and the call to sleep:

  Thread A
  current_time = read current time();
  sleep(period_end - current_time);

If the thread is preempted between these two operations, then we end up sleeping
for longer than what is needed. This kind of imprecision will add up over time,
so that after e.g. one day, instead of having the expected number of timer
executions, we'll have less than that. This kind of accumulated drift is an
unwanted side-effect of using delays in lieue of real periodic timers.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Thu Aug 26, 11:09 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Thu Aug 26, 11:57 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Thomas Gleixner, (Thu Aug 26, 2:25 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Thomas Gleixner, (Thu Aug 26, 3:22 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Thu Aug 26, 4:09 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Paul E. McKenney, (Thu Aug 26, 4:18 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Thu Aug 26, 4:28 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Thu Aug 26, 4:36 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Paul E. McKenney, (Thu Aug 26, 4:38 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Thu Aug 26, 4:49 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Thu Aug 26, 4:53 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Paul E. McKenney, (Thu Aug 26, 5:09 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 12:37 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 12:38 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 12:42 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mike Galbraith, (Fri Aug 27, 1:19 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Thomas Gleixner, (Fri Aug 27, 1:43 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Indan Zupancic, (Fri Aug 27, 3:47 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 3:58 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 8:18 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Thomas Gleixner, (Fri Aug 27, 8:20 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 8:21 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 8:23 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 8:30 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 8:41 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 8:41 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 8:43 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 8:50 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 9:09 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 10:27 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 11:32 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 11:38 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Peter Zijlstra, (Fri Aug 27, 12:23 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Fri Aug 27, 12:57 pm)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mike Galbraith, (Sat Aug 28, 12:33 am)
Re: [RFC PATCH 00/11] sched: CFS low-latency features, Mathieu Desnoyers, (Tue Aug 31, 8:02 am)