Re: Using multiple NICs



Robert Heller wrote:
"TH" <noaddress@xxxxxxxxxxxx>,
In a message on Tue, 2 May 2006 13:01:23 -0500, wrote :

"> I have this application that transfers huge amounts of data. The data source "> is an NFS share. What I would like to do is mount the NFS share so that the "> reads are from one NIC and move the data out through a different NIC.

It is doubtful that you can do *specificly* this.

"> "> Has anyone tried that before? What do you configure something like that?

What you really want to do is called 'bonding', where you bond two (or
more) NICs into a single logical NIC. Linux does support this. You
need to be sure your EtherNet switch supports it as well. Oh, it really
only makes sense if both machines (server AND client) are doing this.

You will get the same bandwidth effect as you want, since if you really
pull/push data at a rate high enough, the kernel will load share across
the two (or more) NICs, although you won't have any one NIC *dedicated*
to reads or writes (just like on a SMP system you won't have any one
processor dedicated to any specific processing).

Actually, given that modern Ethernet NICs and switches are generally full duplex devices, I would wager that bonding two NICs will offer better bandwidth than the OP's original proposal. After all, a 100 Mbit NIC (as an example, it applies equally to Gigabit NICs) can simultaneously read and write at 100 Mbit/sec (theoretically). With his proposal he would still have a 100 Mbit/sec read channel and a 100 Mbit write channel. With your suggestion for bonding two NICs he'd have 2 x 100 Mbit for reading and 2 x 100 Mbit for writing. I don't see that the dedicated-read-NIC and dedicated-write-NIC would offer any benefit whatsoever (assuming he's connecting both NICs to the same network).

A side note for the OP: if you're using Gigabit Ethernet, beware of the fact that a single GigE channel can theoretically consume almost all of the bandwidth on an ordinary 32-bit, 33MHz PCI bus. You'll need PCI-X or PCI Express (and/or multiple PCI busses) to get the benefit of multiple GigE NICs. You don't say what you're currently using so this may or may not be a consideration for you.
.



Relevant Pages

  • Re: Server verliert LAN Verbindung
    ... dass du den virtuellen NICs auf dem ... > GSX einiges zumutest, wenn du sowohl LAN als auch iSCSI darüber schickst. ... > High-Performance-Verbindungen gedacht (sind die nicht sogar auf 10 MBit ... iSCSI SAN kopieren dauert unter 2 Sekunden aus der VM raus. ...
    (microsoft.public.de.german.windows.server.networking)
  • Re: Bottleneck
    ... Thanks to all for the replies. ... The NICs are only one link in the chain, and both are 100 Mbit, so ...
    (comp.os.linux.networking)
  • Re: Bottleneck
    ... > The NICs are only one link in the chain, and both are 100 Mbit, so ... I've done some download tests and seem to get near the ... access you can have a brand new "starter PC" with a processor orders ...
    (comp.os.linux.networking)
  • Re: Using multiple NICs
    ... more) NICs into a single logical NIC. ... still have a 100 Mbit/sec read channel and a 100 Mbit write channel. ... PCI Express to get the benefit of multiple ...
    (comp.os.linux.misc)
  • netdev= kernel boot commands and the Intel e1000 nic
    ... through use of the netdev kernel boot switch. ... We have a system with onboard NICS and a PCI Intel e1000 Fiber NIC ... In compliance with applicable rules and regulations, Instinet ...
    (Linux-Kernel)