* [RFC] IPV4 long lasting timer function
@ 2005-08-17 20:59 Thomas Gleixner
2005-08-17 21:24 ` David S. Miller
2005-08-19 3:34 ` Lee Revell
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Gleixner @ 2005-08-17 20:59 UTC (permalink / raw)
To: David S. Miller; +Cc: Ingo Molnar, LKML
Hi,
while tracking down some timer related ugliness I stumbled over the
timer driven function rt_secret_rebuild(), which does a loop over
rt_has_mask (1024 in my case) entries and possibly some subsequent
variable sized loops inside each step.
On a 300MHZ PPC system this accumulated to a worst case total of >5ms. I
could not reproduce it with this magnitude, but applying heavy
networking load is definitely triggering this behaviour.
Shouldn't this be converted to a workqueue, which gets triggered by a
timer instead of blocking the timer softirq and therefor the delivery of
other timer functions that long ?
tglx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] IPV4 long lasting timer function
2005-08-17 20:59 [RFC] IPV4 long lasting timer function Thomas Gleixner
@ 2005-08-17 21:24 ` David S. Miller
2005-08-19 3:34 ` Lee Revell
1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2005-08-17 21:24 UTC (permalink / raw)
To: tglx; +Cc: mingo, linux-kernel
From: Thomas Gleixner <tglx@linutronix.de>
Date: Wed, 17 Aug 2005 22:59:01 +0200
> Shouldn't this be converted to a workqueue, which gets triggered by a
> timer instead of blocking the timer softirq and therefor the delivery of
> other timer functions that long ?
We could, and I'd be happy to apply such a patch if someone
writes it up.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] IPV4 long lasting timer function
2005-08-17 20:59 [RFC] IPV4 long lasting timer function Thomas Gleixner
2005-08-17 21:24 ` David S. Miller
@ 2005-08-19 3:34 ` Lee Revell
1 sibling, 0 replies; 3+ messages in thread
From: Lee Revell @ 2005-08-19 3:34 UTC (permalink / raw)
To: tglx; +Cc: David S. Miller, Ingo Molnar, LKML
On Wed, 2005-08-17 at 22:59 +0200, Thomas Gleixner wrote:
> Hi,
>
> while tracking down some timer related ugliness I stumbled over the
> timer driven function rt_secret_rebuild(), which does a loop over
> rt_has_mask (1024 in my case) entries and possibly some subsequent
> variable sized loops inside each step.
>
> On a 300MHZ PPC system this accumulated to a worst case total of >5ms. I
> could not reproduce it with this magnitude, but applying heavy
> networking load is definitely triggering this behaviour.
>
> Shouldn't this be converted to a workqueue, which gets triggered by a
> timer instead of blocking the timer softirq and therefor the delivery of
> other timer functions that long ?
Wow, blast from the past! This was one of the very first problematic
code paths Ingo and I identified in the early days of the voluntary
preempt patch (using the crude ALSA xrun debug mechanism which was the
best we had before /proc/latency_trace).
IIRC I was able to trivially reproduce it by leaving gtk-gnutella
running overnight with a few active searches/downloads.
Lee
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-19 3:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-17 20:59 [RFC] IPV4 long lasting timer function Thomas Gleixner
2005-08-17 21:24 ` David S. Miller
2005-08-19 3:34 ` Lee Revell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox