Thread (6 messages) 6 messages, 4 authors, 2012-10-27

Re: Regarding bottlenecks for high speed packet generation

flat view

From: Ben Hutchings <hidden>
Date: 2012-10-26 16:15:45

On Fri, 2012-10-26 at 11:42 +0530, Ajith Adapa wrote:
quoted
quoted
But does NAPI comes into picture in case of transmission of packets ?
Reclaim of TX descriptors occurs via NAPI.
You mean for every packet sent by the NIC card it drops a interrupt to
reclaim the TX buffers used ?
Not necessarily; completions may be batched in some way.
I am not able to understand why does NIC has to interrupt back instead
of freeing the memory in background.

Might be it does add some bottleneck in my case of transmitting traffic bursts.
The network core needs to account and limit how much memory is allocated
to socket buffers.  Completed TX buffers should therefore be freed
promptly, to avoid blocking the sending socket unnecessarily.  It
doesn't strictly matter whether this is triggered by an IRQ from the NIC
or by a timer, but it certainly must not be triggered by the next TX
initiation as this may result in a kind of deadlock.

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help