From: george anzinger <george@mvista.com>
To: mbs <mbs@mc.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Son of crunch time: the list v1.2.
Date: Tue, 22 Oct 2002 12:24:59 -0700 [thread overview]
Message-ID: <3DB5A60B.12FFDBA6@mvista.com> (raw)
In-Reply-To: 200210221232.IAA03454@mc.com
mbs wrote:
>
> On Tuesday 22 October 2002 02:45, george anzinger wrote:
> > > > > 9) High resolution timers (George Anzinger, etc.)
> > > > > http://high-res-timers.sourceforge.net/
> > > >
> > > > no comment, I've heard arguments that high-res timers would be useful,
> > > > but haven't read the patch myself so won't comment...
> > >
> > > I vaguely remember Linus had some objections that it plays with the clock
> > > tick and potentially penalizes everybody... Hmmm...
> > >
> > > A quick google comes up with this:
> > >
> > > http://www.cs.helsinki.fi/linux/linux-kernel/2002-28/0360.html
> >
> > Hm, I had not seen this. He is right, but the patch
> > provides an out :) The standard says a timer can overrun.
> > If a timer is repeating so fast as to bogdown the system,
> > the code lumps enough of them to unload the system into the
> > overrun count and doesn't take the interrupts.
> > -g
>
> (I haven't done my homework and looked in your patch)
>
> you did notice the bit in posix about repeating timers and how you dont
> reinsert a repeating timer until the signal handler has completed, right?
What the standard says is that only one signal is to be
queued for a given timer. Subsequent expires of the same
timer then just bump the overrun count. This is what the
patch does, but still this could overload the timer list and
interrupt code, so in addition to the standard required
overrun stuff, the code checks the next expire time and
fudges a time at least X microseconds from now, where the
time is a multiple (Y) of the repeat time + the current
expire time. Y is then added to the overrun count to
account for the missing expires.
>
> that one bit me and we actually had to reimplement portions of our signals
> mechanism to accomodate it.
Yes, the signal code needs to check for that pending timer.
And NOW (i.e. 2.5) it can be in either the shared list or
the local list or both :(. This is in the patch.
>
> that behavior ensures that a POSIX timer can't entirely dominate the system
> (although it certainly can put a hurt on as can any number of other ill
> advised programming blunders)
I would be open to requiring a capability to run the repeat
time below a fixed value if this would make folks happier.
It would send the right message to the user, too, i.e. small
repeat counts can be hazardous to your system.
>
> it however doesn't do anything for kernel things using the timer
> infrastructure....
The interesting thing is that we don't currently have an in
kernel call such as delay, etc. You just use add_timer().
AND none of the possible interfaces I have seen or
considered even hint at needing repeating timers.
--
George Anzinger george@mvista.com
High-res-timers:
http://sourceforge.net/projects/high-res-timers/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
next prev parent reply other threads:[~2002-10-22 20:14 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-19 4:24 Linux v2.5.44 - and offline for a week Linus Torvalds
2002-10-19 12:41 ` Nicholas Wourms
2002-10-19 14:05 ` Russell King
2002-10-19 16:40 ` Nicolas Pitre
2002-10-20 1:58 ` Rik van Riel
2002-10-20 12:59 ` Roman Zippel
2002-10-21 3:51 ` 2.6: Shortlist of Missing Features Rusty Russell
2002-10-21 2:44 ` Rob Landley
2002-10-21 7:43 ` David S. Miller
2002-10-21 7:59 ` YOSHIFUJI Hideaki / 吉藤英明
[not found] ` <200210202207.21397.landley@trommello.org>
2002-10-21 8:14 ` YOSHIFUJI Hideaki / 吉藤英明
2002-10-21 11:22 ` [STATUS 2.5] October 21, 2002 Guillaume Boissiere
2002-10-21 20:22 ` Rob Landley
2002-10-22 19:47 ` Andreas Dilger
2002-10-22 19:57 ` Dave Jones
2002-10-22 20:18 ` Andreas Dilger
2002-10-23 1:44 ` Dave Jones
2002-10-22 20:33 ` Alan Cox
2002-10-21 20:36 ` Son of crunch time: the list v1.2 Rob Landley
2002-10-22 1:54 ` Davide Libenzi
2002-10-22 2:02 ` Jeff Garzik
2002-10-21 21:42 ` Rob Landley
2002-10-22 2:53 ` Jeff Garzik
2002-10-22 2:58 ` Arnaldo Carvalho de Melo
2002-10-22 17:32 ` Nicholas Wourms
2002-10-22 17:40 ` Christoph Hellwig
2002-10-22 17:48 ` Nicholas Wourms
2002-10-22 18:25 ` Alan Cox
2002-10-23 15:36 ` Rob Landley
2002-10-22 3:20 ` Robert Love
[not found] ` <200210211900.42772.landley@trommello.org>
2002-10-22 5:04 ` Robert Love
2002-10-22 9:40 ` Jeff Garzik
2002-10-22 6:53 ` george anzinger
2002-10-22 6:45 ` george anzinger
[not found] ` <200210221232.IAA03454@mc.com>
2002-10-22 19:24 ` george anzinger [this message]
2002-10-22 10:15 ` Matt D. Robinson
2002-10-22 2:13 ` Martin J. Bligh
2002-10-22 3:01 ` Karim Yaghmour
2002-10-22 8:14 ` Eric W. Biederman
2002-10-22 12:54 ` Christoph Hellwig
2002-10-23 10:28 ` Vamsi Krishna S .
2002-10-23 16:03 ` Rob Landley
2002-10-24 7:23 ` Vamsi Krishna S .
2002-10-22 2:26 ` 2.6: Shortlist of Missing Features Rusty Russell
2002-10-22 5:21 ` David S. Miller
2002-10-21 4:04 ` David S. Miller
2002-10-21 12:39 ` Alan Cox
2002-10-21 4:07 ` Matt D. Robinson
2002-10-21 4:20 ` Skip Ford
2002-10-21 12:38 ` Alan Cox
2002-10-21 13:26 ` Roman Zippel
2002-10-22 3:42 ` Rusty Russell
2002-10-22 3:28 ` Bride of crunch time: list 1.3-ish (was Re: 2.6: Shortlist of Missing Features) Rob Landley
2002-10-20 22:49 ` Linux v2.5.44 - and offline for a week Rob Landley
2002-10-21 10:15 ` Olaf Dietsche
2002-10-21 13:11 ` Dave Jones
2002-10-21 17:55 ` Nicholas Wourms
-- strict thread matches above, loose matches on Subject: below --
2002-10-22 17:49 Son of crunch time: the list v1.2 Nicholas Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DB5A60B.12FFDBA6@mvista.com \
--to=george@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbs@mc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.