netdev
[Top] [All Lists]

Re: netif_rx packet dumping

To: Thomas Graf <tgraf@xxxxxxx>
Subject: Re: netif_rx packet dumping
From: Arnaldo Carvalho de Melo <arnaldo.melo@xxxxxxxxx>
Date: Tue, 8 Mar 2005 15:51:58 -0300
Cc: Andi Kleen <ak@xxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, baruch@xxxxxxxxx, shemminger@xxxxxxxx, netdev@xxxxxxxxxxx
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=NrF77u0Od6h6SUT0biLuU/NkOdo887hju75QRJesePewJe+jkJH1Bqv9q9xi4kprJJpPlhFMHMzbuLzS8u6ZuiZ1mzyhejGYGK5eVYD0AM41rZWimdvjXXyj7qu4nFERfBRqh/nrZoOMxmPex3xhFH+sjq67u5Aveam6g3XBiG8=
In-reply-to: <20050308183759.GE31837@xxxxxxxxxxxxxx>
References: <20050303123811.4d934249@xxxxxxxxxxxxxxxxx> <42278122.6000000@xxxxxxxxx> <20050303133659.0d224e61.davem@xxxxxxxxxxxxx> <42278554.2090902@xxxxxxxxx> <20050303135718.2e1a0170.davem@xxxxxxxxxxxxx> <422DC7CE.2040800@xxxxxxxxx> <m1y8cykr7i.fsf@xxxxxx> <20050308100902.24b67b2f.davem@xxxxxxxxxxxxx> <20050308181844.GA37392@xxxxxx> <20050308183759.GE31837@xxxxxxxxxxxxxx>
Reply-to: acme@xxxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
On Tue, 8 Mar 2005 19:37:59 +0100, Thomas Graf <tgraf@xxxxxxx> wrote:

> Speaking of it, I see tcp_sock is marginal over 2**10 on 32 bit archs and
> Stephen's plans to outsource the cc bits brings us closer to the border.
> Would it be worth to try and get it below 2**10? I spotted some places
> for optimizations but not enough to really save the needed amount.

sk_protinfo, sk_slab, sk_zapped are going away when I finish my 
connection_sock-2.6 series.

sk_protinfo isn't needed if all proto families use the sk_alloc + kmalloc, i.e.
specifying the size of the proto specific socket (like tcp_sock) in
"zero_it"  and
passing NULL in the slab parameter, like I did with bluetooth today and will do
with the ham radio, the last ones using sk_protinfo.

sk_slab will be get from only in sk->sk_prot->slab.

sk_zapped was just a debugging member that got reused, and can be turned
into a SOCK_ZAPPED in sk_flags.


-- 
- Arnaldo

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