From: jamal <hadi@cyberus.ca>
To: James Chapman <jchapman@katalix.com>
Cc: Bill Fink <billfink@mindspring.com>,
netdev@vger.kernel.org, davem@davemloft.net, jeff@garzik.org,
mandeep.baines@gmail.com, ossthema@de.ibm.com,
Stephen Hemminger <shemminger@osdl.org>,
Rick Jones <rick.jones2@hp.com>
Subject: Re: RFC: possible NAPI improvements to reduce interrupt rates for low traffic rates
Date: Fri, 14 Sep 2007 09:14:30 -0400 [thread overview]
Message-ID: <1189775670.4266.50.camel@localhost> (raw)
In-Reply-To: <46E7EE89.9060006@katalix.com>
On Wed, 2007-12-09 at 14:50 +0100, James Chapman wrote:
> By low traffic, I assume you mean a rate at which the NAPI driver
> doesn't stay in polled mode.
i.e:
"one interupt per packet per napi poll" which cause about 1-2 more IOs
in comparison to the case where you didnt do NAPI.
> The problem is that that rate is getting
> higher all the time, as interface and CPU speeds increase.
indeed;
While i dont want to throw more work at you, with some of the things
that improve the IO cost like PCI express, MSI, and some of the
intelligent things the tg3 does, is this problem still rampant etc? I
think if you can find (seems you have) one "modern" machine (with MSI
and a tg3 etc) that has this problem circa 2007 that will be a good
start.
> This results
> in too many interrupts and NAPI thrashing in/out of polled mode very
> quickly.
indeed.
> Yes please. We need an analysis of what happens to cpu usage, latency,
> pps etc when various factors are changed, e.g. input pps, NAPI busy-idle
> delay etc. The main purpose of my RFC wasn't to push a patch into the
> kernel right now, it was to highlight the issue and to find out if
> others were already working on it. The feedback has been good so far. I
> just need to find some time to do some testing. :)
I love your message. From a blackbox perspective, yes we have some
challenges for NAPI below certain thresholds of traffic.
My claim (in the paper) was the discrepancy between the cost of IO
access vs cost of RAM vs cost of caches vs CPU speeds has gotten too
high.
CPU Vendors have been paying close attention to most but IO. So avoiding
IO when you can is a good thing.
> Jamal, do you have more details? Are people saying NAPI gets too much of
> the CPU pie because they profiled it?
In the old days Manfred Spraul actually did profile.
Most of the other folks were running benchmarks which account for cpu
use in addition to resources like bandwidth and latency. And so while
bandwidth and latency didnt affect them that much, they observed their
benchmarks didnt look good at low rates (even when they looked excellent
at high rates) because of CPU.
> Are they complaining that system
> behavior degrades too much under certain network traffic conditions?
yes - Under low traffic, high speed cpu youd notice a slightly higher
cpu use.
>
> Mouse cursor movement jittery? Real-time apps such as music/video
> players starved of CPU? Is it possible they blame NAPI because they see
> tangible effects on their system, not because measured CPU usage is
> high?
If i recall correctly transactional type benchmarks is where this was
observed. Some IBM and Intel people bring it up every few months and
maybe Rick Jones once in a while.
Rick, care to comment on the benchmarks?
> I say this because my music/video player and mouse cursor behave
> _much_ better with my NAPI changes during general use, despite the
> increase in measured cpu load. Even ftp can make my system's mouse
> cursor jitter...
Like i told you in my other email - i did notice something similar, i
just couldnt put my finger to it and at some points thought i was
imagining it.
cheers,
jamal
next prev parent reply other threads:[~2007-09-14 13:14 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-06 14:16 RFC: possible NAPI improvements to reduce interrupt rates for low traffic rates James Chapman
2007-09-06 14:37 ` Stephen Hemminger
2007-09-06 15:30 ` James Chapman
2007-09-06 15:37 ` Stephen Hemminger
2007-09-06 16:07 ` James Chapman
2007-09-06 23:06 ` jamal
2007-09-07 9:31 ` James Chapman
2007-09-07 13:22 ` jamal
2007-09-10 9:20 ` James Chapman
2007-09-10 12:27 ` jamal
2007-09-12 7:04 ` Bill Fink
2007-09-12 12:12 ` jamal
2007-09-12 13:50 ` James Chapman
2007-09-12 14:02 ` Stephen Hemminger
2007-09-12 16:26 ` James Chapman
2007-09-12 16:47 ` Mandeep Baines
2007-09-13 6:57 ` David Miller
2007-09-14 13:14 ` jamal [this message]
2007-09-07 21:20 ` Jason Lunz
2007-09-10 9:25 ` James Chapman
2007-09-07 3:55 ` Mandeep Singh Baines
2007-09-07 9:38 ` James Chapman
2007-09-08 16:42 ` Mandeep Singh Baines
2007-09-10 9:33 ` James Chapman
2007-09-10 12:12 ` jamal
2007-09-08 16:32 ` Andi Kleen
2007-09-10 9:25 ` James Chapman
2007-09-12 15:12 ` David Miller
2007-09-12 16:39 ` James Chapman
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=1189775670.4266.50.camel@localhost \
--to=hadi@cyberus.ca \
--cc=billfink@mindspring.com \
--cc=davem@davemloft.net \
--cc=jchapman@katalix.com \
--cc=jeff@garzik.org \
--cc=mandeep.baines@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=ossthema@de.ibm.com \
--cc=rick.jones2@hp.com \
--cc=shemminger@osdl.org \
/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).