Re: dummynet, em driver, device polling issues :-((

From: Dave+Seddon (dave-dated-1128986539.c8b6a2_at_seddon.ca)
Date: 10/06/05

  • Next message: Yuriy N. Shkandybin: "pf synproxy broken"
    To: ferdinand.goldmann@jku.at
    Date: Thu, 06 Oct 2005 09:22:17 +1000
    
    

    Greetings,

    The default values are based on 100 MB/s fxp driver. Luigi did heaps of
    work a few years ago on this, and arrived at these values after lots of
    testing (i think). (I also remember reading some interesting stuff where he
    had fxp and a 3com card and was testing to see how many frames he could push
    out of each differnet card - fxp won!). Given we're now running 1000MB/s em
    cards, it might be safe to say you can increase the defaults by 10. You
    have to edit the source to change some of the defaults:

    /usr/src/sys/kern/kern_poll.c
    #define MIN_POLL_BURST_MAX 100
    #define MAX_POLL_BURST_MAX 10000

    I tried doing this, but encountered the problems with the throughput somehow
    related to the em cards and gave up. Maybe you're results will be better.

    Regards,
    Dave Seddon

     

    Ferdinand Goldmann writes:

    > Kevin Day wrote:
    >
    >> In one case, we had a system acting as a router. It was a Dell PowerEdge
    >> 2650, with two dual "server" adapters. each were on separate PCI busses.
    >> 3 were "lan" links, and one was a "wan" link. The lan links were
    >> receiving about 300mbps each, all going out the "wan" link at near
    >> 900mbps at peak. We were never able to get above 944mbps, but I never
    >> cared enough to figure out where the bottleneck was there.
    >
    > 944mbps is a very good value, anyway. What we see in our setup are
    > throuput rates around 300mbps or below. When testing with tcpspray,
    > throughput hardly exceeded 13MB/s.
    >
    > Are you running vlans on your interface? Our em0-card connects several
    > sites together, which are all sitting on separate vlan interfaces for
    > which the em0 acts as parent interface.
    >
    >> This was with PCI-X, and a pretty stripped config on the server side.
    >
    > Maybe this makes a difference, too. We only have a quite old xSeries 330
    > with PCI and a 1.2GHz CPU.
    >
    >>
    >> Nothing fancy on polling, i think we set HZ to 10000
    >
    > Ten-thousand? Or is this a typo, and did you mean thousand?
    >
    > This is weird. :-( Please, is there any good documentation on tuning
    > device polling? The man page does not give any useful pointers about
    > values to use for Gbit cards. I have already read things about people
    > using 2000, 4000HZ ... Gaaah!
    >
    > I tried with 1000 and 2000 so far, without good results. It seems like
    > everybody makes wild assumptions on what values to use for polling.
    >
    >> , turned on idle_poll, and set user_frac to 10 because we had some cpu
    >> hungry tasks that were not a high priority.
    >
    > I think I red somewhere about problems with idle_poll. How high is your
    > burst_max value? Are you seeing a lot of ierrs?
    >
    > *sigh* :-( confusing.
    >
    > --
    > >> Ferdinand Goldmann //// | |
    > >> EMail: Ferdinand.Goldmann@zid.uni-linz.ac.at |--00 | UNIX |
    > >> Tel. : +43/732/2468/9398 Fax. : +43/732/2468/9397 C ^ | |
    > >> EMail: Ferdinand.Goldmann@zid.uni-linz.ac.at \ ~/ ~~~|~~~~~~~~
    > >> PGP D4CF 8AA4 4B2A 7B88 65CA 5EDC 0A9B FA9A 13EA B993| |-----3
    > _______________________________________________
    > 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"
     

    _______________________________________________
    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: Yuriy N. Shkandybin: "pf synproxy broken"

    Relevant Pages

    • Re: Multiple Network Interfaces under 11.0
      ... interface cards ... older Interphase cards and HP interfaces? ... I am trying to configure EISA 100BaseT. ... Verify eisa_config displays!HWPCOE1,!HWPCO51 OR!HWPCO10 ...
      (comp.sys.hp.hpux)
    • bonding driver issues: slave interface not coming up
      ... gigabit cards in XOR mode. ... duplex/speed forced on both switch and card: ... attempting to down and up the interface in /etc/rc.d/init.d/network: ...
      (Linux-Kernel)
    • RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
      ... Polling For 100 mbps Connections? ... >>from the network into the ethernet receiver. ... not in the ethernet driver code. ... >NetGear cards using the dc driver or DLink cards using the rl driver. ...
      (freebsd-questions)
    • Re: 5.5-stable network interface rl0 stops working
      ... Or on PCI cards? ... Unfortunately I can't check this because we use ipfw to generate ... But when the interface stops working ... What does ifconfig say after the interface stops working? ...
      (freebsd-stable)
    • Re: random numbers in fortran
      ... Q1) Is the interface body and the type of function correct? ... minloc, like its cousin, maxloc. ... integer, dimension:: cards ... end subroutine shuffle ...
      (comp.lang.fortran)