RE: device polling takes more CPU hits??

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

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

    From: James [mailto:haesu@towardex.com]
    > Hi Don,
    > root@r2.bos# sysctl kern.clockrate
    > kern.clockrate: { hz = 4000, tick = 250, tickadj = 1, profhz
    > = 1024, stathz = 128 }

    That's a pretty high HZ, here's what i have:
    kern.clockrate: { hz = 2500, tick = 400, tickadj = 1, profhz = 1024, stathz
    = 128 }

    I have the same box spec as you, only with em (bge doesn't
    support polling, but it has its own interrupt coalescer that works...
    you can tune that in the if_bge.h I think, there's some comments).
    I'm doing ~800Kpps with polling. My polling params are below.

    >
    > root@r2.bos# sysctl kern.polling
    > kern.polling.burst: 150
    > kern.polling.each_burst: 5
    > kern.polling.burst_max: 150
    > kern.polling.idle_poll: 1
    > kern.polling.poll_in_trap: 1
    > kern.polling.user_frac: 50
    > kern.polling.reg_frac: 20
    > kern.polling.short_ticks: 4909
    > kern.polling.lost_polls: 11464
    > kern.polling.pending_polls: 0
    > kern.polling.residual_burst: 0
    > kern.polling.handlers: 1
    > kern.polling.enable: 1
    > kern.polling.phase: 0
    > kern.polling.suspect: 10249
    > kern.polling.stalled: 3
    >
    > root@r2.bos# sysctl machdep.cpu_idle_hlt
    > machdep.cpu_idle_hlt: 1
    >

    kern.polling.burst: 1000
    kern.polling.each_burst: 80
    kern.polling.burst_max: 1000
    kern.polling.idle_poll: 1
    kern.polling.poll_in_trap: 0
    kern.polling.user_frac: 5
    kern.polling.reg_frac: 120
    kern.polling.short_ticks: 29
    kern.polling.lost_polls: 55004
    kern.polling.pending_polls: 0
    kern.polling.residual_burst: 0
    kern.polling.handlers: 4
    kern.polling.enable: 1
    kern.polling.phase: 0
    kern.polling.suspect: 50690
    kern.polling.stalled: 25
    _______________________________________________
    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: James: "Re: device polling takes more CPU hits??"

    Relevant Pages

    • device polling question
      ... There is kind of interrupt storm with ... device polling turned on, and `sysctl kern.polling` shows some interesting ...
      (freebsd-questions)
    • Re: Seeking help understanding my "emX: watchdog timeout" messages
      ... within a reasonable time, it can the symptom of a variety of problems. ... You list a bunch of settings for polling, is this interface in POLLING ... sysctl dev.em.2.stats=1 ...
      (freebsd-net)
    • Re: kernel.polling and load average
      ... > and sysctl kern.polling.enable=1 kicks ... > load average to stable 1.00 ... > which man polling says it supports. ... for polling is available in the kern.polling.handlers sysctl. ...
      (freebsd-current)