Re: [take12 3/3] kevent: Timer notifications.
From: Evgeniy Polyakov
Date: Tue Aug 22 2006 - 14:24:01 EST
On Mon, Aug 21, 2006 at 04:25:49PM +0200, Thomas Gleixner (tglx@xxxxxxxxxxxxx) wrote:
> > Not everymachine has them
> Every machine has hrtimers - not necessarily with high resolution timer
> support, but the core code is there in any case and it is designed to
> provide fine grained timers.
> In case of high resolution time support one would expect that the "fine
> grained" timer event is actually fine grained.
Ok, I should reformulate, that currently not every machine has support
in kernel. Obviously each machine has a clock which runs faster than
And as a side note - kevents were created half a year ago - there were
no hrtimers in kernel in that time, btw, does kernel have high-resolutin
clock engine already in?
> > and getting into account possibility that
> > userspace can be scheduled away, it will be overkill.
> If you think out your argument then everything which is fine grained or
> high responsive should be removed from userspace access for the very
> same reason. Please look at the existing users of the hrtimer subsystem
> - all of them are exposed to userspace.
Getting into account that system call gets more than 100 nsec, and one
should create kevent and then read it (with at least three rescheduling
- after two syscalls and wake up), it is not exactly the best way to
obtain nanoseconds resolution. And even one usec is good one for
userspace, and I can create an interface through kevents, but let's get
it real - if we still can not agree on other issues, should we do it
right now? I would like kevent core's issues are resolved and everyone
become happy with it before adding new kevent users.
If everyone says "yes, replace usual timers with high-resolution ones",
then ok, I will schedule it for the next patchset.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/