netdev
[Top] [All Lists]

Re: New net features for added performance

To: Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx>
Subject: Re: New net features for added performance
From: Jes Sorensen <jes@xxxxxxxxxxxxx>
Date: 01 Mar 2001 22:06:16 +0100
Cc: netdev@xxxxxxxxxxx, Linux Knernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>
In-reply-to: Jeff Garzik's message of "Sat, 24 Feb 2001 18:25:16 -0500"
References: <3A9842DC.B42ECD7A@mandrakesoft.com>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.4
>>>>> "Jeff" == Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx> writes:

Jeff> 1) Rx Skb recycling.  It would be nice to have skbs returned to
Jeff> the driver after the net core is done with them, rather than
Jeff> have netif_rx free the skb.  Many drivers pre-allocate a number
Jeff> of maximum-sized skbs into which the net card DMA's data.  If
Jeff> netif_rx returned the SKB instead of freeing it, the driver
Jeff> could simply flip the DescriptorOwned bit for that buffer,
Jeff> giving it immediately back to the net card.

Jeff> Advantages: A de-allocation immediately followed by a
Jeff> reallocation is eliminated, less L1 cache pollution during
Jeff> interrupt handling.  Potentially less DMA traffic between card
Jeff> and host.

Jeff> Disadvantages?

I already tried this with the AceNIC GigE driver some time ago, and
after Ingo came up with a per-CPU slab patch the gain was gone. I am
not sure the complexity is worth it.

Jes

<Prev in Thread] Current Thread [Next in Thread>