From: "John A. Sullivan III" <jsullivan@opensourcedevel.com>
To: David Laight <David.Laight@ACULAB.COM>
Cc: netdev@vger.kernel.org, Rick Jones <rick.jones2@hp.com>,
Dave Taht <dave.taht@gmail.com>,
Eric Dumazet <eric.dumazet@gmail.com>
Subject: Re: Latency difference between fifo and pfifo_fast
Date: Wed, 07 Dec 2011 19:05:45 -0500 (EST) [thread overview]
Message-ID: <b6a68bd3-eec7-47f3-bc46-2781b08d8815@jasiiieee> (raw)
In-Reply-To: <AE90C24D6B3A694183C094C60CF0A2F6D8AF07@saturn3.aculab.com>
----- Original Message -----
> From: "David Laight" <David.Laight@ACULAB.COM>
> To: "Dave Taht" <dave.taht@gmail.com>, "Eric Dumazet" <eric.dumazet@gmail.com>
> Cc: "John A. Sullivan III" <jsullivan@opensourcedevel.com>, netdev@vger.kernel.org, "Rick Jones" <rick.jones2@hp.com>
> Sent: Wednesday, December 7, 2011 9:08:24 AM
> Subject: RE: Latency difference between fifo and pfifo_fast
>
>
> ...
> > If he's hovering at close to line rate (wow), and yet experiencing
> > serious delays on short traffic, perhaps what I describe
> > below may apply.
> ...
> > 1) TCP grabs all the bandwidth it can. If you have no packet loss,
> > it will eat more bandwidth, as rapidly as it can ramp up.
> > Until it eventually has packet loss.
>
> The 'ramp up' may be part of the problem!
> At a guess iSCSI is using the TCP connection to carry
> many, separate, commands and responses. As such Nagle
> will cause serious grief and is likely to be disabled.
>
> TCP 'slow start' will apply whenever there is no unacked
> data - which might be after any slight lull in the traffic.
> IIRC (from looking at traces) Linux TCP will only send 4 data
> packets following 'slow start' until it has received an ack.
> Linux (at least some versions) will also delay sending an
> ack until the next clock tick - rather than the traditional
> scheme of always acking every other packet.
>
> So if there are no responses, the requests can be delayed.
> This will increase latency.
>
> My suspicions (as I've said before) is that slow start
> is broken for very low latency local networks.
> Might be worth disabling it - but that is a massive system-wide
> switch.
>
> Very high packet rates can cause packet loss, but buying better
> network infrastructure should mitigate that. In any case, 'slow
> start' doesn't limit packet rate.
>
> David
>
>
>
<grin> Sorry to have kicked up a storm! We really don't have a problem - just trying to optimize our environment. We have been told by our SAN vendor that, because of the 4KB limit on block size in Linux file systems, iSCSI connections for Linux file services are latency bound and not bandwidth bound. I'm not sure if I believe that based upon our traces where tag queueing seems to coalesce SCSI commands into larger blocks and we are able to achieve network saturation. I was just wondering, since it is all the same traffic and hence no need to separate into bands, if I should change the qdisc on those connections from pfifo_fast (which I assume needs to look at the TOS bits, sort into bands, and poll the separate bands) to fifo which I assume simply dumps packets on the wire. Thanks - J
ohn
next prev parent reply other threads:[~2011-12-07 23:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8f05fdb0-6e4c-4adf-b8d1-bd67a0dc114f@jasiiieee>
2011-12-06 4:10 ` Latency difference between fifo and pfifo_fast John A. Sullivan III
2011-12-06 6:02 ` Eric Dumazet
2011-12-06 6:29 ` Eric Dumazet
2011-12-06 8:39 ` John A. Sullivan III
2011-12-06 8:51 ` Eric Dumazet
2011-12-06 18:20 ` Rick Jones
2011-12-06 18:39 ` Dave Taht
2011-12-06 19:44 ` John A. Sullivan III
2011-12-07 13:04 ` Eric Dumazet
2011-12-07 13:27 ` Dave Taht
2011-12-07 14:08 ` David Laight
2011-12-08 0:05 ` John A. Sullivan III [this message]
2011-12-07 23:27 ` Stephen Hemminger
2011-12-08 0:34 ` John A. Sullivan III
2011-12-07 23:49 ` Stephen Hemminger
2011-12-08 3:20 ` John A. Sullivan III
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=b6a68bd3-eec7-47f3-bc46-2781b08d8815@jasiiieee \
--to=jsullivan@opensourcedevel.com \
--cc=David.Laight@ACULAB.COM \
--cc=dave.taht@gmail.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rick.jones2@hp.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