Re: [PATCH 0/2]: Remote softirq invocation infrastructure.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Friesen
Date: Tuesday, September 23, 2008 - 10:03 am

David Miller wrote:

That patch basically just picks an arbitrary cpu for each flow.  This 
would spread the load out across cpus, but it doesn't allow any input 
from userspace.

We have a current application where there are 16 cores and 16 threads. 
They would really like to be able to pin one thread to each core and 
tell the kernel what packets they're interested in so that the kernel 
can process those packets on that core to gain the maximum caching 
benefit as well as reduce reordering issues.  In our case the hardware 
supports filtering for multiqueues, so we could pass this information 
down to the hardware to avoid software filtering.

Either way, it requires some way for userspace to indicate interest in a 
particular flow.  Has anyone given any thought to what an API like this 
would look like?

I suppose we could automatically look at bound network sockets owned by 
tasks that are affined to single cpus.  This would simplify userspace 
but would reduce flexibility for things like packet sockets with socket 
filters applied.

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

Messages in current thread:
[PATCH 0/2]: Remote softirq invocation infrastructure., David Miller, (Fri Sep 19, 11:48 pm)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Arjan van de Ven, (Sat Sep 20, 8:45 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Arjan van de Ven, (Sat Sep 20, 9:19 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Daniel Walker, (Sat Sep 20, 10:40 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Arjan van de Ven, (Sat Sep 20, 11:09 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Daniel Walker, (Sat Sep 20, 11:52 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., James Courtier-Dutton, (Sun Sep 21, 2:13 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Steffen Klassert, (Sun Sep 21, 2:46 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Ilpo Järvinen, (Mon Sep 22, 3:36 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Steffen Klassert, (Mon Sep 22, 6:54 am)
Re: [PATCH 0/2]: Remote softirq invocation infrastructure., Chris Friesen, (Tue Sep 23, 10:03 am)