Re: [PATCH 4/5] select: make select() use schedule_hrtimeout()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, August 29, 2008 - 11:46 am

On Fri, 29 Aug 2008, Alan Cox wrote:

Actually, I disagree.

They are _both_ of the exact same type: the precision depends on how long 
the timeout is.

TCP retransmit timers are a perfect example. If the timeout is long (which 
is quite common if you end up having multiple retransmits), you _really_ 
don't care about how precise it is.

And keepalives are 'yeah whatever' exactly because they are so long, not 
because they are inherently uninteresting per se.

I suspect you could find some kernel-generated timer that doesn't fit that 
pattern, but I can't really think of any.


And yes, I do agree that the heuristic could well involve other 
characteristics of the process in question. And probably characteristics 
of the machine itself (ie some general kind of "power mode" where timers 
are simply not considered critical if you want to be in low-power mode).

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

Messages in current thread:
[PATCH 1/5] select: add a timespec version of the timeout ..., Arjan van de Ven, (Fri Aug 29, 8:06 am)
[PATCH 3/5] select: introduce a schedule_hrtimeout() function, Arjan van de Ven, (Fri Aug 29, 8:07 am)
[PATCH 4/5] select: make select() use schedule_hrtimeout(), Arjan van de Ven, (Fri Aug 29, 8:08 am)
Re: [PATCH 4/5] select: make select() use schedule_hrtimeout(), Arjan van de Ven, (Fri Aug 29, 10:42 am)
Re: [PATCH 4/5] select: make select() use schedule_hrtimeout(), Linus Torvalds, (Fri Aug 29, 11:46 am)