login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
14
Re: 2.6.24-rc2: Network commit causes SLUB performance regression with tbench
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Nick Piggin <nickpiggin@...>
To: Herbert Xu <herbert@...>
Cc: David Miller <davem@...>, <clameter@...>, <netdev@...>, <linux-kernel@...>
Subject:
Re: 2.6.24-rc2: Network commit causes SLUB performance regression with tbench
Date: Tuesday, November 13, 2007 - 8:02 pm
On Wednesday 14 November 2007 22:48, Herbert Xu wrote:
quoted text
> On Wed, Nov 14, 2007 at 03:10:22AM -0800, David Miller wrote: > > So the thing that's being effected here in TCP is > > net/ipv4/tcp.c:select_size(), specifically the else branch: > > Thanks for the pointer. Indeed there is a bug in that area. > I'm not sure whether it's causing the problem at hand but it's > certainly suboptimal. > > [TCP]: Fix size calculation in sk_stream_alloc_pskb
This looks like it fixes the problem! Still interested to know why SLAB didn't see the same thing...
quoted text
> We round up the header size in sk_stream_alloc_pskb so that > TSO packets get zero tail room. Unfortunately this rounding > up is not coordinated with the select_size() function used by > TCP to calculate the second parameter of sk_stream_alloc_pskb. > > As a result, we may allocate more than a page of data in the > non-TSO case when exactly one page is desired. > > In fact, rounding up the head room is detrimental in the non-TSO > case because it makes memory that would otherwise be available to > the payload head room. TSO doesn't need this either, all it wants > is the guarantee that there is no tail room. > > So this patch fixes this by adjusting the skb_reserve call so that > exactly the requested amount (which all callers have calculated in > a precise way) is made available as tail room. > > Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> > > Cheers,
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
2.6.24-rc2 slab vs slob tbench numbers
, Nick Piggin
, (Fri Nov 9, 8:36 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers
, Matt Mackall
, (Mon Nov 12, 4:13 pm)
Re: 2.6.24-rc2 slab vs slob tbench numbers
, Nick Piggin
, (Tue Nov 13, 7:44 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers
, Christoph Lameter
, (Fri Nov 9, 11:15 am)
Re: 2.6.24-rc2 slab vs slob tbench numbers
, Christoph Lameter
, (Fri Nov 9, 1:49 pm)
2.6.24-rc2: Network commit causes SLUB performance regressio...
, Christoph Lameter
, (Fri Nov 9, 7:46 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Fri Nov 9, 9:29 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Christoph Lameter
, (Mon Nov 12, 3:44 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Tue Nov 13, 7:41 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, David Miller
, (Tue Nov 13, 9:58 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Tue Nov 13, 1:36 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, David Miller
, (Wed Nov 14, 2:12 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Tue Nov 13, 2:14 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, David Miller
, (Wed Nov 14, 2:37 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Tue Nov 13, 6:27 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, David Miller
, (Wed Nov 14, 7:10 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Herbert Xu
, (Wed Nov 14, 7:48 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, David Miller
, (Wed Nov 14, 7:46 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Christoph Lameter
, (Wed Nov 14, 9:03 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Herbert Xu
, (Wed Nov 14, 9:11 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Wed Nov 14, 9:47 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Wed Nov 14, 8:21 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, David Miller
, (Wed Nov 14, 8:27 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Tue Nov 13, 8:02 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, David Miller
, (Wed Nov 14, 8:10 am)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Christoph Lameter
, (Wed Nov 14, 2:33 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Tue Nov 13, 7:39 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Tue Nov 13, 6:55 pm)
Re: 2.6.24-rc2: Network commit causes SLUB performance regre...
, Nick Piggin
, (Fri Nov 9, 11:28 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Rafael J. Wysocki
[Bug #11806] iwl3945 fails with microcode error
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Andrew Morton
-mm merge plans for 2.6.23
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Jeff Kirsher
[RESEND NET-NEXT PATCH 08/20] igb: Introduce multiple TX queues with infrastructure
Colocation donated by:
Who's online
There are currently
0 users
and
772 guests
online.
Syndicate