From: Jason Wang <jasowang@redhat.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Yuchung Cheng <ycheng@google.com>,
Neal Cardwell <ncardwell@google.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH v2 net-next] pkt_sched: fq: Fair Queue packet scheduler
Date: Thu, 05 Sep 2013 11:34:01 +0800 [thread overview]
Message-ID: <5227FBA9.8030604@redhat.com> (raw)
In-Reply-To: <1378294029.7360.92.camel@edumazet-glaptop>
On 09/04/2013 07:27 PM, Eric Dumazet wrote:
> On Wed, 2013-09-04 at 03:30 -0700, Eric Dumazet wrote:
>> > On Wed, 2013-09-04 at 14:30 +0800, Jason Wang wrote:
>> >
>>>> > > > And tcpdump would certainly help ;)
>>> > >
>>> > > See attachment.
>>> > >
>> >
>> > Nothing obvious on tcpdump (only that lot of frames are missing)
>> >
>> > 1) Are you capturing part of the payload only (like tcpdump -s 128)
>> >
>> > 2) What is the setup.
>> >
>> > 3) tc -s -d qdisc
> If you use FQ in the guest, then it could be that high resolution timers
> have high latency ?
Not sure, but it should not affect so much. And I'm using kvm-clock in
guest whose overhead should be very small.
>
> So FQ arms short timers, but effective duration could be much longer.
>
> Here I get a smooth latency of up to ~3 us
>
> lpq83:~# ./netperf -H lpq84 ; ./tc -s -d qd ; dmesg | tail -n1
> MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to lpq84.prod.google.com () port 0 AF_INET
> Recv Send Send
> Socket Socket Message Elapsed
> Size Size Size Time Throughput
> bytes bytes bytes secs. 10^6bits/sec
>
> 87380 16384 16384 10.00 9410.82
> qdisc fq 8005: dev eth0 root refcnt 32 limit 10000p flow_limit 100p buckets 1024 quantum 3028 initial_quantum 15140
> Sent 50545633991 bytes 33385894 pkt (dropped 0, overlimits 0 requeues 19)
> rate 9258Mbit 764335pps backlog 0b 0p requeues 19
> 117 flow, 115 inactive, 0 throttled
> 0 gc, 0 highprio, 0 retrans, 96861 throttled, 0 flows_plimit
> [ 572.551664] latency = 3035 ns
>
>
> What do you get with this debugging patch ?
I'm getting about 13us-19us, one run like:
netperf -H 192.168.100.5; tc -s -d qd; dmesg | tail -n1
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
192.168.100.5 () port 0 AF_INET : demo
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 4542.09
qdisc fq 8001: dev eth0 root refcnt 2 [Unknown qdisc, optlen=64]
Sent 53652327205 bytes 35580150 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
[ 201.320565] latency = 14905 ns
One interesting thing is if I switch from kvm-clock to acpi_pm which has
much more overhead, the latency increase to about 50ns, and the
throughput drops very quickly.
netperf -H 192.168.100.5; tc -s -d qd; dmesg | tail -n1
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
192.168.100.5 () port 0 AF_INET : demo
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 2262.46
qdisc fq 8001: dev eth0 root refcnt 2 [Unknown qdisc, optlen=64]
Sent 56611533075 bytes 37550429 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
[ 474.121689] latency = 51841 ns
next prev parent reply other threads:[~2013-09-05 3:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 22:49 [PATCH v2 net-next] pkt_sched: fq: Fair Queue packet scheduler Eric Dumazet
2013-08-30 1:47 ` David Miller
2013-08-30 2:30 ` [PATCH iproute2] " Eric Dumazet
2013-09-03 15:49 ` Stephen Hemminger
2013-09-04 5:26 ` [PATCH v2 net-next] " Jason Wang
2013-09-04 5:59 ` Eric Dumazet
2013-09-04 6:30 ` Jason Wang
2013-09-04 10:30 ` Eric Dumazet
2013-09-04 11:27 ` Eric Dumazet
2013-09-04 11:59 ` Daniel Borkmann
2013-09-05 3:39 ` Jason Wang
2013-09-05 0:50 ` Eric Dumazet
2013-09-05 1:23 ` Eric Dumazet
2013-09-05 3:43 ` Jason Wang
2013-09-05 3:34 ` Jason Wang [this message]
2013-09-05 3:07 ` Jason Wang
2013-09-05 3:41 ` Eric Dumazet
2013-09-05 5:16 ` Jason Wang
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=5227FBA9.8030604@redhat.com \
--to=jasowang@redhat.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=mst@redhat.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=ycheng@google.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).