netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* neigh_periodic_timer expires too often
@ 2009-07-30 10:44 Luciano Coelho
  2009-07-30 13:15 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Luciano Coelho @ 2009-07-30 10:44 UTC (permalink / raw)
  To: netdev; +Cc: tero.kristo

Hi,

We were making some measurements and trying to figure out which timers 
in the kernel can be made deferrable so that our device doesn't have to 
wake up too often.

During this investigation, we found out that the neigh_periodic_timer is 
expiring approximately every 8 seconds, even when we don't have a 
network connection established.  After the connection is established, 
the timer starts expiring every 2 seconds and continues to expire at 
this interval after the connection is closed.

We have been converting many of the kernel times to deferrable timers.  
Checking the netdev mailing list archives, I found out that this issue 
has been discussed in December 2007 [1], but the thread seems to have 
died out and the proposed patch has never been applied AFAICS.

Another proposed solution, which has never been applied either, was to 
convert this timer from softirq-based to workqueue-based [2].  Would 
that be any better?

So, my question is, does it make sense to make this timer deferrable or 
use the workqueue instead? Or is there any other better solution to 
avoid unnecessarily frequent wakeups caused by neigh_periodic_timer?

We are using a kernel based on 2.6.28.

[1] http://article.gmane.org/gmane.linux.network/81361
[2] http://article.gmane.org/gmane.linux.network/81140

-- 
Cheers,
Luca.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-05  7:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30 10:44 neigh_periodic_timer expires too often Luciano Coelho
2009-07-30 13:15 ` Eric Dumazet
2009-07-30 14:33   ` Luciano Coelho
2009-07-31 12:22     ` Luciano Coelho
2009-07-31 12:50       ` Eric Dumazet
2009-08-05  7:48         ` Luciano Coelho
2009-08-03  1:35   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).