Re: RFC: issues concerning the next NAPI interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linas Vepstas
Date: Friday, August 24, 2007 - 9:45 am

On Fri, Aug 24, 2007 at 03:59:16PM +0200, Jan-Bernd Themann wrote:

I saw this too, on a system that is "modern" but not terribly fast, and
only slightly (2-way) smp. (the spidernet)

I experimented wih various solutions, none were terribly exciting.  The
thing that killed all of them was a crazy test case that someone sprung on
me:  They had written a worst-case network ping-pong app: send one
packet, wait for reply, send one packet, etc.  

If I waited (indefinitely) for a second packet to show up, the test case 
completely stalled (since no second packet would ever arrive).  And if I 
introduced a timer to wait for a second packet, then I just increased 
the latency in the response to the first packet, and this was noticed, 
and folks complained.  

In the end, I just let it be, and let the system work as a busy-beaver, 
with the high interrupt rate. Is this a wise thing to do?  I was
thinking that, if the system is under heavy load, then the interrupt
rate would fall, since (for less pathological network loads) more 
packets would queue up before the poll was serviced.  But I did not
actually measure the interrupt rate under heavy load ... 

--linas
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Fri Aug 24, 6:59 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Fri Aug 24, 8:47 am)
Re: RFC: issues concerning the next NAPI interface, Stephen Hemminger, (Fri Aug 24, 8:52 am)
Re: RFC: issues concerning the next NAPI interface, Linas Vepstas, (Fri Aug 24, 9:45 am)
Re: RFC: issues concerning the next NAPI interface, David Stevens, (Fri Aug 24, 9:50 am)
Re: RFC: issues concerning the next NAPI interface, Linas Vepstas, (Fri Aug 24, 9:51 am)
Re: RFC: issues concerning the next NAPI interface, Rick Jones, (Fri Aug 24, 10:07 am)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Fri Aug 24, 10:16 am)
Re: RFC: issues concerning the next NAPI interface, Shirley Ma, (Fri Aug 24, 10:45 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Fri Aug 24, 11:11 am)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Fri Aug 24, 2:32 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Fri Aug 24, 2:37 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Fri Aug 24, 2:43 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Fri Aug 24, 2:44 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Fri Aug 24, 2:47 pm)
Re: RFC: issues concerning the next NAPI interface, Linas Vepstas, (Fri Aug 24, 2:51 pm)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Sun Aug 26, 12:36 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Sun Aug 26, 6:58 pm)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Mon Aug 27, 2:47 am)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Mon Aug 27, 8:51 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Mon Aug 27, 9:02 am)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Mon Aug 27, 10:05 am)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Mon Aug 27, 1:37 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Mon Aug 27, 2:02 pm)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Mon Aug 27, 2:41 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Mon Aug 27, 2:56 pm)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Tue Aug 28, 2:22 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Tue Aug 28, 4:19 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Tue Aug 28, 4:21 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Tue Aug 28, 4:48 am)
Re: RFC: issues concerning the next NAPI interface, Evgeniy Polyakov, (Tue Aug 28, 5:16 am)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Tue Aug 28, 7:55 am)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Tue Aug 28, 1:21 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Tue Aug 28, 1:25 pm)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Tue Aug 28, 1:27 pm)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Wed Aug 29, 12:10 am)
Re: RFC: issues concerning the next NAPI interface, James Chapman, (Wed Aug 29, 1:15 am)
Re: RFC: issues concerning the next NAPI interface, David Miller, (Wed Aug 29, 1:29 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Wed Aug 29, 1:31 am)
Re: RFC: issues concerning the next NAPI interface, Jan-Bernd Themann, (Wed Aug 29, 1:43 am)