From: Jeremy Eder <jeder@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: rafael.j.wysocki@intel.com, riel@redhat.com,
youquan.song@intel.com, paulmck@linux.vnet.ibm.com,
daniel.lezcano@linaro.org, arjan@linux.intel.com,
len.brown@intel.com
Subject: Re: RFC: revert request for cpuidle patches e11538d1 and 69a37bea
Date: Fri, 2 Aug 2013 14:19:35 -0400 [thread overview]
Message-ID: <20130802181935.GC31525@jeder.rdu.redhat.com> (raw)
In-Reply-To: <20130729165947.GB31525@jeder.rdu.redhat.com>
On 130729 12:59:47, Jeremy Eder wrote:
> On 130729 23:57:31, Youquan Song wrote:
> > Hi Jeremy,
> >
> > I try reproduce your result and then fix the issue, but I do not reproduce it
> > yet.
> >
> > I run at netperf-2.6.0 at one machine as server: netserver, other
> > machine: netperf -t TCP_RR -H $SERVER_IP -l 60. The target machine is
> > used in both client and server. I do not reproduce the performance drop
> > issue. I also notice the result is not stable, sometime it is high,
> > sometime is low. In sumarry, it is hard to make a definite result.
> >
> > Can you try tell me how to reproduce the issue? how do you get the C0
> > data?
> >
> > What's your config for kernel? Do you enable CONFIG_NO_HZ_FULL=y or
> > only CONFIG_NO_HZ=y?
> >
> >
> > Thanks
> > -Youquan
>
> Hi,
>
> To answer both your and Daniel's question, those results used only
> CONFIG_NO_HZ=y.
>
> These network latency benchmarks are fickle creatures, and need careful
> tuning to become reproducible. Plus there are BIOS implications and tuning
> varies by vendor.
>
> Anyway for the most part it's probably not stable because in order to get
> any sort
> of reproducibility between runs you need to do at least these steps:
>
> - ensure as little is running in userspace as possible
> - determine PCI affinity for the NIC
> - on both machines, isolate the socket connected to the NIC from userspace
> tasks
> - Turn off irqbalance and bind all IRQs for that NIC to a single core on
> the same socket as the NIC
> - run netperf with -TX,Y where X,Y are core numbers that you wish
> netperf/netserver to run on, respectively.
>
> For example, if your NIC is attached to socket 0 and socket 0 cores are
> enumerated 0-7, then:
>
> - set /proc/irq/NNN/smp_affinity_list to, say, 6 for all vectors on that
> NIC.
> - nice -20 netperf -t TCP_RR - $SERVER_IP -l 60 -T4,4 -s 2
>
> That should get you most of the way there. The -s 2 connects and waits 2
> seconds, I found this to help with the first few second's worth of data.
> Or
> you could just toss the first 2 seconds worth, it seems to take that long
> to stabilize. What I mean is, if you're not using -D1,1 option to netperf,
> you might not have seen that netperf tests seem to take a few seconds to
> stabilize even
> when properly tuned.
>
> I got the C0 data by running turbostat in parallel with each benchmark run,
> then grabbing the C-state data for the cores relevant to the test. In my
> case that was cores 4 and 6, where core 4 was where I put netperf/netserver
> and core 6 was where I put the NIC IRQs. Then I parsed that output into a
> format that this could interpret:
>
> https://github.com/bitly/data_hacks/blob/master/data_hacks/histogram.py
>
> I'm building a kernel from Rafael's tree and will try to confirm what Len
> already sent. Thanks everyone for looking into it.
Hi, sorry for the delay. In addition to the results I initially posted,
the below results confirm my initial data, plus what Len sent:
3.11-rc2 w/reverts
TCP_RR trans/s 54454.13
3.11-rc2 w/reverts + c0 lock
TCP_RR trans/s 55088.11
prev parent reply other threads:[~2013-08-02 18:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-26 17:33 Jeremy Eder
2013-07-26 18:13 ` Rik van Riel
2013-07-26 18:27 ` Arjan van de Ven
2013-07-26 18:29 ` Rik van Riel
2013-07-26 21:48 ` Rafael J. Wysocki
2013-07-27 0:36 ` Rafael J. Wysocki
2013-07-27 6:22 ` Len Brown
2013-07-27 12:10 ` Rafael J. Wysocki
2013-07-27 7:11 ` Daniel Lezcano
2013-07-29 11:49 ` Arjan van de Ven
2013-07-29 13:12 ` Arjan van de Ven
2013-07-29 14:14 ` Lorenzo Pieralisi
2013-07-29 14:29 ` Arjan van de Ven
2013-07-29 16:01 ` Lorenzo Pieralisi
2013-07-29 16:04 ` Arjan van de Ven
2013-07-27 6:43 ` Daniel Lezcano
2013-07-30 3:57 ` Youquan Song
2013-07-29 16:59 ` Jeremy Eder
2013-08-02 18:19 ` Jeremy Eder [this message]
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=20130802181935.GC31525@jeder.rdu.redhat.com \
--to=jeder@redhat.com \
--cc=arjan@linux.intel.com \
--cc=daniel.lezcano@linaro.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=rafael.j.wysocki@intel.com \
--cc=riel@redhat.com \
--cc=youquan.song@intel.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
all inboxes | Powered by JetHome®