Re: device polling and weird timer interrupt count from vmstat



Artem Kuchin wrote:
Well, problem with top is that on dual 3GHZ box it alsway s
shows 0% load when not loaded with real traffic (web traffic) no matter
if it is polling of int handling.

Great, so your machine doesn't have any significant overhead
for the timer interrupt. That was your question, wasn't it?

And when loaded with real traffic
web server eat a lot more cpu power then traffic handling, so, no
separate measurement of traffic cpu load is possible.

By "traffic cpu load" you mean the handling in the TCP/IP
stack and in the device driver, right? That's always the
same, no matter whether polling is enabled or not.

In fact, with polling enabled you get _less_ interrupts,
so the overhead caused by the actual interrupt handling
is smaller.

Also, when it comes to public web server i can never be secure enough and
crazy load of traffic can come any time from DDOS attack which can bring
down any box. So, for public web server it is a matter of security and
managebility to have server interactive even on high traffic load. So, even from
this poing of view polling can be usefull.

Not really. DDoS attacks against web servers usually work
on userland level, not on kernel level. For example, a
simple way to perform such an attack would be to make many
requests so that your apache runs out of resources.

Polling does not help at all in that case. Polling only
helps when the _kernel_ side is saturated with network
traffic, but that's usually not the case on a web server
where the Apache kicks the bucket much earlier than the
kernel.

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd

"Being really good at C++ is like being really good
at using rocks to sharpen sticks."
-- Thant Tessman
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Where to put code - general programming question.
    ... Options are in the calling form's code in the menu_click sub or in the ... preload a list box from a data file. ... with from each 'handling' form (this can be a lot of work if you need to ... if the user has to load a DB before working ...
    (comp.lang.basic.visual.misc)
  • 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)
  • Re: Measuring tools - top and interrupts
    ... We have fixed this problem in the kernel 2.4.19 which has been installed in few selected computers of the "Middleware grid" ... Also load average has been calculated for each login user. ... > much less work to be done with polling. ...
    (Linux-Kernel)