Re: Measuring tools - top and interrupts



Hi Erik,

We have fixed this problem in the kernel 2.4.19 which has been installed in few selected computers of the "Middleware grid"
Sydney University.

Also load average has been calculated for each login user.

Thanks
Sena Seneviratne
Computer Engineering Lab
Sydney University




At 07:31 PM 6/22/2006 +0200, you wrote:
On Thu, Jun 22, 2006 at 09:58:08AM -0700, Danial Thom wrote:
> --- Erik Mouw <erik@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > 75K packets/s isn't too hard for modern NICs,
> > especially when using
> > NAPI.
>
> Well thats just a ridiculous answer, so why
> bother?
>
> You polling guys just crack me up. There isn't
> much less work to be done with polling. The only
> reason you THINK its less work is because the
> measuring tools don't work properly. You still
> have to process the same number of packets when
> you poll, and you have polls instead of
> interrupts. Since you can control the # of
> interrupts with most cards, there is zero
> advantage to polling, and more negatives.

There certainly is less work to be done with polling. Less IRQs means
less expensive context switches, which means a lower system load. See
Documentation/NAPI_HOWTO.txt for information and a link to the Linux
NAPI paper.

> And 75K pps may not be "much", but its still at
> least 10% of what the system can handle, so it
> should measure around a 10% load. 2.4 measures
> about 12% load. So the only conclusion is that
> load accounting is broken in 2.6.

Network traffic is usually IO bound, not CPU bound. The load figures
top shows tell something about the amount of work the CPU has to do,
not about how busy your PCI bus (or whatever bus the NIC lives on) is.

IIRC the networking layer in 2.6 differs quite a lot from 2.4, so the
load average figures can be quite misleading.


Erik

--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: device polling and weird timer interrupt count from vmstat
    ... if it is polling of int handling. ... web server eat a lot more cpu power then traffic handling, so, no ... separate measurement of traffic cpu load is possible. ... no matter whether polling is enabled or not. ...
    (freebsd-stable)
  • Re: Add subform to a form?
    ... Why not turn the blink ON (ie: load an embedded resource bitmap or such the ... like into a Picturebox control) at the moment you are about to poll. ... blink image will stay on-screen while polling. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Measuring tools - top and interrupts
    ... You polling guys just crack me up. ... which means a lower system load. ... not about how busy your PCI bus is. ... load average figures can be quite misleading. ...
    (Linux-Kernel)
  • Re: routing for 1000 users and 10Mbit internet.
    ... that if you try polling and it ... I would expect numbers like that considering the load it's ... > try to skipt pipe rules for certain IPs, ... If all that machine is doing is routing, you can configure it to be ...
    (freebsd-questions)
  • How to debug a very high workload ?
    ... server started having problems)). ... I then noticed that the 'Kernel' CPU state in top raised to approx. ... box raising the load average around 30 - 35 after which I terminated the ...
    (comp.unix.solaris)