Re: http server

From: Menno Duursma (menno_at_desktop.lan)
Date: 06/20/04

  • Next message: Martin Koller: "mount suid inconsistency"
    Date: Sun, 20 Jun 2004 14:57:36 GMT
    
    

    On Sat, 19 Jun 2004 15:00:24 +0200, RosalieM wrote:
    > "Doug Gale" <dgaleSPAMTHISYOUSCUM@mailexcite.com> wrote:
    >> "RosalieM" <NOSPAM@easyconnect.fr> wrote :

    >>>>> - Is there any sort of improvement in putting many ethernet nic on
    >>>>> the pci bus ?

    >> The linux kernel has support for using multiple NIC's together (it's
    >> called trunking or something),

    Indeed, but the driver for it is called "bonding" though:
    file:/usr/src/linux/Documentation/networking/bonding.txt

    >> but the other end of the link has to have the same support enabled and
    >> of course, you have to use multiple network cables...

    With 10Base-T or 100Base-TX Ethernet only 4 out of the 8 wires of an UTP
    cable are actually being used (pin 1, 2, 3, and 6). Thus (for testing) one
    could try using a single cable, with two RJ45 jacks crimped on each end...

    >> > For http server again, where could be the bottelnecks?
    >>
    >> One bottleneck is file I/O with Hard disks... Another bottleneck is
    >> spawning CGI processes .

    http://www.fastcgi.com/

    [ ... ]

    > I supposed to use two machines, one using iptable dnat and many nics to
    > do load balancing to another computer with many nics too, anyway pci
    > wont handle more than 3 100MB nic?

    Well, the standard PCI bus is 32 bits wide, and runs at 33MHz.
    Furthermore, it's a half-duplex shared medium. Theoretically if a NIC were
    to have the bus all to itself maximum throughput (in Mbit/s) would be:

    $ echo $[33*32]
    1056

    However, since in a given machine there will at least be HD-controllers on
    the bus as well, and a since TCP acts full-duplex. One might be _very_
    happy to get half that (over a Gbit connection). (And i wouldn't expect a
    3*100 setup to do any better then 200Mbit/s or so.)

    > This way of doing is not competitive compared to one Gigabit nic each
    > side, even if i have plenty of sockets connecting and sending little
    > amount of data instead one sending a lot of data?

    Gigabit Ethernet carts aren't all that expensive anymore, so why bother?:
    http://www.tigerdirect.com/applications/category/category_slc.asp?CatId=1175

    Some NIC/driver benchmarks:
    http://www.cs.uni.edu/~gray/gig-over-copper/

    > Depends also of kernel and amount of memory reserved for nic, depends of
    > how kernel shedule I/O of the nic...
    >
    > Where can i find documentation about this kinds of problems?

    http://datatag.web.cern.ch/datatag/howto/tcp.html
    http://people.redhat.com/alikins/system_tuning.html

    -- 
    -Menno.
    

  • Next message: Martin Koller: "mount suid inconsistency"

    Relevant Pages

    • Re: http server
      ... you have to use multiple network cables... ... > do load balancing to another computer with many nics too, ... Well, the standard PCI bus is 32 bits wide, and runs at 33MHz. ... happy to get half that (over a Gbit connection). ...
      (comp.os.linux.networking)
    • Re: Problems with LAN
      ... > I have two computers. ... > eth2 is the one I want to use for my LAN. ... Not all NICs are happy with crossover connections. ... regular cables and a switch. ...
      (comp.os.linux.networking)
    • 2940 shortcomings (was Re: Trouble with ADAPTEC SCSI adapter)
      ... "An ideal impedance match with cable terminators implies a cable ... impedance discontinuities interfere with the SCSI bus signals. ... interference can occur only with LONG cables. ... you can run two Disk drives, a CDROM, and a tape drive, i.e., four ...
      (comp.os.linux.hardware)
    • Re: SCSI bus Termination with KZPBA-CB controllers
      ... bus with storage in between. ... setting for termination on those cards enabled? ... cables are removed. ...
      (comp.os.vms)
    • Re: homebrew PCI enclosure advice needed
      ... full sized PCI board connected to a low profile PC. ... aluminum project box and a flexible PCI riser which I plan to extend ... replace the ribbon cables with longer cables is there anything that I ... The PCI bus is a reflected wave bus, ...
      (alt.comp.hardware.pc-homebuilt)