RE: device polling takes more CPU hits??

From: Don Bowman (don_at_sandvine.com)
Date: 07/26/04

  • Next message: Don Bowman: "RE: device polling takes more CPU hits??"
    To: 'James' <haesu@towardex.com>, Don Bowman <don@sandvine.com>
    Date: Mon, 26 Jul 2004 16:27:20 -0400
    
    

    From: James [mailto:haesu@towardex.com]

    >
    > I have two boxes behind em0 that I can use to generate
    > 250kpps to another vlan
    > within em0 card as a test, so that bge0 is not involved in
    > the stress test.
    > Even when doing so, CPU load climbs higher with device
    > polling turned on.
    > Opened up systat, etc to check the interrupts, and em0 is
    > generating 0
    > interrupts with device polling on (as obvious), but general
    > interrupt load
    > climbs rock high.. so I don't know what's causing it to
    > climb. Cleared the
    > firewall rules as well as a test... no difference :(
    >
    > Oh also, just FYI, each vlan interface has link0 set, since
    > em(4) supports
    > hardware 802.1q tag/detagging.
    >

    The CPU time during the 'polling' is charged to interrupt,
    even though it occurs during softclock. That's why you
    see 0 interrupts, but high CPU usage in interrupt.
    Did u try lowering the 'register' access?

    --don
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Don Bowman: "RE: device polling takes more CPU hits??"

    Relevant Pages

    • Re: more interrupts with polling(4) on em(4)
      ... I've noticed 33K interrupts/sec on an emgigabit interface on ... This many interrupts seemed a bit too high, ... I've just done "ifconfig em1 polling", ... (without polling on em0) ...
      (freebsd-net)
    • RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
      ... >> Well, if polling does no good for fxp, due to ... >> hardware doing controlled interrupts, ... >drop packets instead of going into livelock. ...
      (freebsd-questions)
    • Re: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
      ... Polling For 100 mbps Connections? ... the hardware doing controlled interrupts, then why does the fxp driver even let you set it as an option? ... They haven't, freebsd accounting doesn't work ... regarding the fxp driver and hardware. ...
      (freebsd-questions)
    • Re: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
      ... Polling For 100 mbps Connections? ... the hardware doing controlled interrupts, then why does the fxp driver even let you set it as an option? ... They haven't, freebsd accounting doesn't work ... regarding the fxp driver and hardware. ...
      (freebsd-questions)
    • RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
      ... Polling For 100 mbps Connections? ... The disadvantage is that it will drop packets when you have momentary bursts that would harmlessly put the machine into livelock. ... You can process # interrupts X ring_size packets; ... it is you who are throwing around the numbers - or were in your prior post - regarding the fxp driver and hardware. ...
      (freebsd-questions)