login
Header Space

 
 

Re: POSIX timer_settime() dosn't set timer in some cases (lost accuracy)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Cc: <tech-kern@...>
Date: Wednesday, September 1, 2004 - 10:41 pm

In article <200408312344.45657.ianzag@megasignal.com>,
	ianzag@megasignal.com (Ian Zagorskih) writes:
 

Those quotes doesn't answer the key question, but going further:

  Time values that are between two consecutive non-negative integer
  multiples of the resolution of the specified timer shall be rounded up
  to the larger multiple of the resolution. Quantization error shall not
  cause the timer to expire earlier than the rounded time value.

Now, hzto() takes great care to round up, but the nano-second is lost
before getting there in TIMESPEC_TO_TIMEVAL(). Should TS...TV always
round up? It seems, with the present state of affairs, that any number
of timers in the kernel could be firing slightly too early. There's no
harm, ever, in a timer firing nanoseconds late (or later), is there?


Frederick
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: POSIX timer_settime() dosn't set timer in some cases (lo..., Frederick Bruckman, (Wed Sep 1, 10:41 pm)
Re: POSIX timer_settime() dosn't set timer in some cases (lo..., Frederick Bruckman, (Thu Sep 2, 12:46 am)
Re: POSIX timer_settime() dosn't set timer in some cases (lo..., Nathan J. Williams, (Thu Sep 2, 11:25 am)
Re: POSIX timer_settime() dosn't set timer in some cases (lo..., Frederick Bruckman, (Thu Sep 2, 12:37 pm)
Re: POSIX timer_settime() doesn't set timer in some cases (l..., Nathan J. Williams, (Thu Sep 2, 12:28 pm)
speck-geostationary