From: jamal <hadi@cyberus.ca>
To: Mandeep Singh Baines <mandeep.baines@gmail.com>
Cc: James Chapman <jchapman@katalix.com>,
Daniele Venzano <venza@brownhat.org>,
davem@davemloft.net, rick.jones2@hp.com, msb@google.com,
netdev@vger.kernel.org, grundler@google.com,
robert.olsson@its.uu.se, jeff@garzik.org, nhorman@tuxdriver.com
Subject: Re: [PATCH] [sis900] convert to NAPI, WAS Re: pktgen terminating condition
Date: Thu, 06 Sep 2007 09:22:05 -0400 [thread overview]
Message-ID: <1189084926.4229.19.camel@localhost> (raw)
In-Reply-To: <20070906050629.GA4262@ludhiana>
On Wed, 2007-05-09 at 22:06 -0700, Mandeep Singh Baines wrote:
> jamal (hadi@cyberus.ca) wrote:
> > If you read the paper: There are no issues with high throughput - NAPI
> > kicks in.
> > The challenge to be overcome is at low traffic, if you have a real fast
> > processor your cpu-cycles-used/bits-processed ratio is high....
>
> I'm not sure cpu-cycles-used/bits-processed is the correct metric to use.
> An alternative would be to look at cpu-cycles-used/unit-time (i.e.
> CPU utilization or load) for a given bit-rate or packet-rate.
I wasnt explicit but we are saying the same thing. The paper is more
specific: if you make the packet count used constant - this translates
to a unit of time given low traffic rate. If you fix the time,
cpu-cycles are easier to extrapolate from.
> This would make an interesting graph.
If you are to plot a cpu-util vs packet rate, on most modern hardware you will
see a spike before you hit the MLFRR and then utilization will go down and slowly
start going up.
> At low packet-rate, CPU utilization is low so doing extra work per packet
> is probably OK.
Thats the arguement weve used in the past ;-> Unfortunately, with the
relative cost of IO going up you cant keep making that arguement (at
least thats the position presented in the paper).
Your mileage may vary. If you are running a machine dishing out bulk
transfers probably not a big deal. If you are doing database
transactions, you loose in benchmarks etc.
> Utilizing 2% of CPU vesus 1% is negligible. But at higher
> rate, when there is more CPU utilization, using 40% of CPU versus 60% is
> significant. I think the absolute different in CPU utilization is more
> important than the relative difference. iow, 2% versus 1%, even though
> a 2x difference in cpu-cycles/packet, is negligible compared to 40%
> versus 60%.
Refer to above.
> Using a timer might also behave better in a tick-less (CONFIG_NO_HZ)
> configuration.
good point.
cheers,
jamal
prev parent reply other threads:[~2007-09-06 13:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-01 10:47 pktgen terminating condition Daniele Venzano
2007-09-04 3:20 ` [PATCH] [sis900] convert to NAPI, WAS " Mandeep Singh Baines
2007-09-04 13:03 ` jamal
2007-09-04 17:21 ` Mandeep Baines
2007-09-04 16:56 ` Daniele Venzano
2007-09-04 17:24 ` Mandeep Baines
2007-09-05 7:44 ` Mandeep Singh Baines
2007-09-05 12:03 ` James Chapman
2007-09-05 12:33 ` jamal
2007-09-05 13:55 ` James Chapman
2007-09-05 14:21 ` jamal
2007-09-06 5:06 ` Mandeep Singh Baines
2007-09-06 13:22 ` jamal [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=1189084926.4229.19.camel@localhost \
--to=hadi@cyberus.ca \
--cc=davem@davemloft.net \
--cc=grundler@google.com \
--cc=jchapman@katalix.com \
--cc=jeff@garzik.org \
--cc=mandeep.baines@gmail.com \
--cc=msb@google.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=rick.jones2@hp.com \
--cc=robert.olsson@its.uu.se \
--cc=venza@brownhat.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).