Skip to contentSkip to conversation

IPV4 long lasting timer function

RFC Thomas Gleixner 3 participants 3 messages Aug 17, 2005 – Aug 19, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

From: Thomas Gleixner <[email protected]>
Date: Wed, 17 Aug 2005 22:59:01 +0200

Quoted 3 lines

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.

#2 lore raw
In reply to Thomas Gleixner
Quoted 7 lines · Thomas Gleixner

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.

Quoted 7 lines

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