From: Danial Thom <danial_thom@yahoo.com>
To: Robert Hancock <hancockr@shaw.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Dropping Packets in 2.6.17
Date: Fri, 23 Jun 2006 12:48:39 -0700 (PDT) [thread overview]
Message-ID: <20060623194839.88713.qmail@web33308.mail.mud.yahoo.com> (raw)
In-Reply-To: <449B4038.3040101@shaw.ca>
--- Robert Hancock <hancockr@shaw.ca> wrote:
> Danial Thom wrote:
> >>
> >> I didn't use ITR, I used NAPI.
> >>
> >
> > If thats the case then your "system" would
> have
> > the same problem that I'm encountering, since
> > polling results in buckets of packets being
> > dropped with heavy userland activity.
>
> This is to some extent by design. If you
> processed all packets purely in
> interrupt context, at some point you can start
> receiving so many packets
> that you never leave interrupt context to
> perform any other useful work,
> no matter if your adapter can avoid generating
> an interrupt for every
> packet. Packet floods can completely hang the
> machine. Pushing the work
> into a softirq and disabling NIC interrupts in
> the interim allows the
> machine to continue performing other useful
> work.
You guys keep talking about generating an int for
every packet, and like no controller designed
after 1998 does it, so why are you still talking
about it?
Yes, this is the "design" thats flawed. Apps like
MySQL and compilers always try to use all of the
cpu, and if it results in the system *thinking*
that its being flooded then its not working
properly. A network stream that is using less
that 20% of the cpu should *never* drop any
packets.
> If you want to give more priority to processing
> network packets at the
> expense of user processes then you likely need
> to increase the priority
> of the ksoftirqd thread(s). These compete for
> CPU time like any other
> processes.
I've tried this and it doesn't do much in terms
of alleviate the problem. It makes a marginal
difference.
I think much of the problem is that the network
guys are spending so much time on frivilous
things like polling that they have no interest in
getting the hardware to work the way its supposed
to. Ironically, if the harware worked properly
there would be no reason to have polling.
Detecting a livelock condition is easy. There's
no reason to drop packets randomly. Additionally
a workload tunable would deflect the argument
against allowing near-livelock conditions.
Dropping packets should be a last resort; not the
norm.
DT
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next prev parent reply other threads:[~2006-06-23 19:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.zPWsMAz4l0d9j5Voaw6Pdkcf//M@ifi.uio.no>
[not found] ` <fa.Ze3oSnDYEMz3/ITqeLQ2m0GF5wk@ifi.uio.no>
2006-06-23 1:13 ` Robert Hancock
2006-06-23 7:31 ` Brian F. G. Bidulock
2006-06-23 19:48 ` Danial Thom [this message]
2006-06-22 11:31 Danial Thom
2006-06-22 11:55 ` Arjan van de Ven
2006-06-22 12:47 ` Danial Thom
2006-06-22 13:27 ` Pádraig Brady
2006-06-22 14:01 ` Miquel van Smoorenburg
2006-06-22 14:15 ` Pádraig Brady
2006-06-22 15:03 ` Danial Thom
2006-06-22 15:26 ` Pádraig Brady
2006-06-22 17:10 ` Danial Thom
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=20060623194839.88713.qmail@web33308.mail.mud.yahoo.com \
--to=danial_thom@yahoo.com \
--cc=hancockr@shaw.ca \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®