From: Nivedita Singhvi <niv@us.ibm.com>
To: "David S. Miller" <davem@redhat.com>
Cc: anton@samba.org, haveblue@us.ibm.com, hdierks@us.ibm.com,
scott.feldman@intel.com, dwg@au1.ibm.com,
linux-kernel@vger.kernel.org, milliner@us.ibm.com,
ricardoz@us.ibm.com, twichell@us.ibm.com, netdev@oss.sgi.com
Subject: Re: e1000 performance hack for ppc64 (Power4)
Date: Fri, 13 Jun 2003 22:16:22 -0700 [thread overview]
Message-ID: <3EEAAFA6.9080609@us.ibm.com> (raw)
In-Reply-To: <20030613.154634.74748085.davem@redhat.com>
David S. Miller wrote:
> From: Anton Blanchard <anton@samba.org>
> Date: Sat, 14 Jun 2003 08:38:41 +1000
>
> This is only worth it if most packets will have the same sized header.
> Networking guys: is this a valid assumption?
>
> Not really... one retransmit and the TCP header size grows
> due to the SACK options.
Yep, but it really doesn't have too many options (sic pun ;))..
i.e. The max the options can add are 40 bytes, speaking
strictly TCP, not IP. This really should fit into one extra
cacheline for most architectures, at most, right?
[The TCP options have to end and the data start on a 32
bit boundary. For established connections, we're
principally talking SACK options and v. likely timestamp.
(Ignoring those egregious benchmark guys who turn everything
useful off ;)). SYNs wont have data in any case.
So its going to grow by (SACK = 8*n + 2)+ (TS = 10) bytes,
with n = number of sack options, with a max of n = 3
if timestamps are enabled. Adding that to the standard
length of 20 bytes, the total len of a TCP header is thus
very likely one of:
20 + [ 0 | 20 |32 | 36] bytes
= 20 | 40 | 52 | 56 bytes.
If cachelines were 64 bytes, we wouldnt be wasting a
whole lot of space if we aligned data start or some
other scheme as was suggested. Even given the larger
cachelines, it might be worth it, or is this totally
not an option (cough,sic ;))?
> I find it truly bletcherous what you're trying to do here.
yep
thanks,
Nivedita
next prev parent reply other threads:[~2003-06-14 5:16 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF0078342A.E131D4B1-ON85256D44.0051F7C0@pok.ibm.com>
2003-06-13 16:21 ` e1000 performance hack for ppc64 (Power4) Dave Hansen
2003-06-13 22:38 ` Anton Blanchard
2003-06-13 22:46 ` David S. Miller
2003-06-13 23:18 ` Anton Blanchard
2003-06-14 1:52 ` Lincoln Dale
2003-06-14 5:41 ` David S. Miller
2003-06-14 5:52 ` Lincoln Dale
2003-06-14 6:08 ` David S. Miller
2003-06-14 6:14 ` David S. Miller
2003-06-14 6:27 ` William Lee Irwin III
2003-06-14 17:08 ` Greg KH
2003-06-15 3:01 ` David S. Miller
2003-06-14 5:16 ` Nivedita Singhvi [this message]
2003-06-14 5:36 ` David S. Miller
2003-06-13 17:03 Herman Dierks
-- strict thread matches above, loose matches on Subject: below --
2003-06-13 23:52 Feldman, Scott
2003-06-13 23:52 ` David S. Miller
2003-06-14 0:55 ` Anton Blanchard
2003-06-14 1:34 ` David S. Miller
2003-06-14 0:03 ` Anton Blanchard
2003-06-15 14:32 Herman Dierks
2003-06-15 14:40 Herman Dierks
2003-06-15 14:44 ` David S. Miller
2003-06-16 16:17 ` Nivedita Singhvi
2003-06-16 18:21 Feldman, Scott
2003-06-16 18:30 ` Dave Hansen
2003-06-16 18:56 Feldman, Scott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EEAAFA6.9080609@us.ibm.com \
--to=niv@us.ibm.com \
--cc=anton@samba.org \
--cc=davem@redhat.com \
--cc=dwg@au1.ibm.com \
--cc=haveblue@us.ibm.com \
--cc=hdierks@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=milliner@us.ibm.com \
--cc=netdev@oss.sgi.com \
--cc=ricardoz@us.ibm.com \
--cc=scott.feldman@intel.com \
--cc=twichell@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).