From: Anton Blanchard <anton@samba.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@oss.sgi.com
Subject: Re: some TSO analysis
Date: Thu, 11 Nov 2004 19:36:47 +1100 [thread overview]
Message-ID: <20041111083647.GA20769@krispykreme.ozlabs.ibm.com> (raw)
In-Reply-To: <E1CS9Fm-0004hC-00@gondolin.me.apana.org.au>
> > data: 1634 frags: 1408 4096 4096 4096 2108 4
> >
> > Is there a reason why the remaining 1408 bytes cant be stuffed into
> > skb->data? Or is that an issue with MTU sized buffers?
>
> The reason is that the skb has to accomodate other things like
> headers and skb_shared_info. It seems to have added up to a
> quite considerable value in your case.
>
> Perhaps sendmsg should check whether the data can fit in the space
> available in skb->data, and if not just go for a fragment right away.
Originally I thought we could save ourselves a fragment. However
thinking about it more we will always have at least the headers in
skb->data. If so there isnt much to gain by spilling into the fragment
straight away. Or am I wrong?
> This is understandable. You really need to have a rcv window that's
> much bigger than 64K to have any chance of filling up the TSO packet
> with tcp_tso_win_divisor set to 8.
That makes sense.
> BTW, how did you measure the gains?
The TSO gains? On older 2.6 the TSO gain was easy to see on a web
benchmark. On recent kernels it isnt, but we havent tested a divisor
of 4 or 2 yet.
Im interested if the divisor of 8 was based on some testing, or if we
can tune the default a bit. It would be nice for TSO to kick in on
normal workloads (like web serving).
Anton
next prev parent reply other threads:[~2004-11-11 8:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 5:06 some TSO analysis Anton Blanchard
2004-11-11 7:20 ` Herbert Xu
2004-11-11 8:36 ` Anton Blanchard [this message]
2004-11-11 18:26 ` David S. Miller
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=20041111083647.GA20769@krispykreme.ozlabs.ibm.com \
--to=anton@samba.org \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.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).