Re: Multiport NICs - VLAN and Polling Support?

From: Danial Thom (danial_thom_at_yahoo.com)
Date: 10/14/05

  • Next message: Kurt Jaeger: "Re: Multiport NICs - VLAN and Polling Support?"
    Date: Fri, 14 Oct 2005 09:11:00 -0700 (PDT)
    To: Drew Linsalata <drew@gothambus.com>
    
    

    --- Drew Linsalata <drew@gothambus.com> wrote:

    > Danial Thom writes:
    >
    > > Intel makes a 4 port em card, so what is so
    > hard
    > > about finding it, as every major distributor
    > > carries it?
    >
    > Intel makes lots of cards, with lots of
    > different chipset variants. It's
    > not a stretch to ask the community about
    > experiences with particular cards
    > that work correctly with the em driver.
    >
    > >
    > > Why anyone would be so clueless as to use
    > polling
    > > with an em card is beyond the scope of this
    > > discussion, but I have to admit it has great
    > > entertainment value!
    >
    > Great. There's one in every crowd.
    >
    > I guess I can humor you, though. em is listed
    > as a driver that supports
    > polling, which is widely regarded as a good
    > thing from a performance
    > standpoint. It happens to be one of only two
    > drivers under 4.11 that
    > support BOTH polling and hardware VLAN (at
    > least according to the polling
    > and vlan man pages). Tell me, oh mighty
    > terminal jockey, why is polling
    > with an em card classified as an endeavor for
    > the clueless?

    Because intel parts have programmable hold-offs
    (interrupt throttling rate) that allow you to
    tell the card exactly how frequently (or
    infrequently) to generate interrupts. So its
    assinine to use a kludge like polling, which adds
    tens of thousands of cpu cycles in overhead to
    your system when you can do it with zero overhead
    using the hardware mechanisms.

    polling is almost never a performance advantage
    for ethernet, as virtually all modern controllers
    have some sort of interrupt moderation built-in.
    The only reason that anyone has ever thought that
    polling was a performance advantage is that is
    screws up the accounting so things "appear" to be
    faster. The only thing it really does is make a
    trade off between livelock and dumping buckets of
    packets. I hate to break it to you, but adding
    thousands of "clock ticks" to your system is not
    a performance enhancement. The fact that FreeBSD
    doesn't properly account for the overhead in its
    measurements shouldn't be surprising, as most
    OS's don't.

    Set your receive rings to 512 and you can set
    interrupt throttling to 1/50th of your max
    packets/second (or even 1/100th for a router).
    I've used a setting of 6000 at a 600K pps rate
    with very little noticable latency to end users.

    DT

                    
    __________________________________
    Yahoo! Music Unlimited
    Access over 1 million songs. Try it free.
    http://music.yahoo.com/unlimited/
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Kurt Jaeger: "Re: Multiport NICs - VLAN and Polling Support?"

    Relevant Pages

    • Re: fxp0: device timeout | SCB already complete (me too)
      ... In my case, both the SCSI and NIC are integrated on the motherboard, so I ... Also, as I mentioned, I tried a de0 (PCI card, not onboard, and it ... > The boxes work just fine with the xl0 driver. ... This happens both with or without POLLING ...
      (freebsd-net)
    • Re: fxp0: device timeout | SCB already complete (me too)
      ... Is the de0 driver also a problem? ... #>>card revisions. ... #>>rest for the Intel nics. ... This happens both with or without POLLING ...
      (freebsd-net)
    • Re: Idiots and insane persons. (long)
      ... the voting card is compulsory. ... For some reason, when I arrive at the polling station, I give my card to ... machine to accept a vote. ...
      (alt.sysadmin.recovery)
    • Re: [SLE] Developing a Real Time Data System
      ... > occure at the same time. ... Polling or interrupts is usually way too ... then a card doing 20Ks/s is very fast. ...
      (SuSE)
    • RE: MemoryMapped file CE 6.0
      ... performance advantage with using a memory mapped file vs just a file on, ... the root of the device (not on a storage card)? ... Making I/O or any other data transfer with Windows CE API function is on CE6 ...
      (microsoft.public.windowsce.platbuilder)