Dual processor and dual NIC ??

This is a discussion on Dual processor and dual NIC ?? within the Linux General forums, part of the Linux Forums category; Hi, I've recently rebuilt our college proxy (Squid) server and moved it from an old version of Red Hat ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-27-2003
Nick
 
Posts: n/a
Default Dual processor and dual NIC ??

Hi, I've recently rebuilt our college proxy (Squid) server and moved it
from an old version of Red Hat to version 8.x of SuSE and moved it on to
a dual processor Compaq server with dual NIC's.

Is it possible to get SuSE to utilise both processors? If so, how?

Also, can SuSE do load balancing between the network cards, or can I
configure Squid to listen for requests on one card, and reply on the
other? I'm at my limit here with my Linux knowledge, so any pointers
would be appreciated.

Thanks,

Nick
--
Nick at noslow.org.uk
Reply With Quote
  #2 (permalink)  
Old 07-27-2003
John-Paul Stewart
 
Posts: n/a
Default Re: Dual processor and dual NIC ??

Nick wrote:
>
> Hi, I've recently rebuilt our college proxy (Squid) server and moved it
> from an old version of Red Hat to version 8.x of SuSE and moved it on to
> a dual processor Compaq server with dual NIC's.
>
> Is it possible to get SuSE to utilise both processors? If so, how?


Yes. Install an SMP kernel. I'm surprised SuSE didn't install one by
default if it detected an SMP machine. 'cat /proc/cpuinfo' will show
two CPUs when an SMP-enabled kernel is installed on an dual CPU machine.

> Also, can SuSE do load balancing between the network cards, or can I
> configure Squid to listen for requests on one card, and reply on the
> other? I'm at my limit here with my Linux knowledge, so any pointers
> would be appreciated.


What you can do with two network cards depends upon what is at the other
end of the network cable.

You can use the "bonding" module in the kernel to treat them both as a
single pipe. This requires suitable hardware on the other end: another
Linux machine or a high-end Cisco switch configured for this purpose,
for example.

Accepting requests on one card and replying on the other doesn't make
much sense, IMHO. Any current network card and any reasonably good
switch should support full duplex operation: each card can transmit and
receive simultaneously already. You'd see little benefit (and plenty of
hassle) by trying to configure one card as send-only and one as receive
only.
Reply With Quote
  #3 (permalink)  
Old 07-27-2003
Peter T. Breuer
 
Posts: n/a
Default Re: Dual processor and dual NIC ??

Nick <Nick@dev.null> wrote:
> Is it possible to get SuSE to utilise both processors? If so, how?


Use an SMP kernel.

> Also, can SuSE do load balancing between the network cards, or can I


Load some sort of ethernet bonding driver.

Peter
Reply With Quote
  #4 (permalink)  
Old 07-28-2003
Doug Holtz
 
Posts: n/a
Default Re: Dual processor and dual NIC ??


"Nick" <Nick@dev.null> wrote in message
news:WQfrgGAHkEJ$EwPe@noslow.org.uk...
> Hi, I've recently rebuilt our college proxy (Squid) server and moved it
> from an old version of Red Hat to version 8.x of SuSE and moved it on to
> a dual processor Compaq server with dual NIC's.
>
> Is it possible to get SuSE to utilise both processors? If so, how?
>
> Also, can SuSE do load balancing between the network cards, or can I
> configure Squid to listen for requests on one card, and reply on the
> other? I'm at my limit here with my Linux knowledge, so any pointers
> would be appreciated.
>
> Thanks,
>
> Nick
> --
> Nick at noslow.org.uk


Nick;

Beware of old servers. I have a dual processor DEC that Red hat 7.3 won't
see both processors. The BIOS doesn't get supported, so the smp function
doesn't even get seen by the O/S.

The NIC's should be fine.

Try 6.2 with the 2.2 kernel if you really want smp for the older server.

Doug


Reply With Quote
  #5 (permalink)  
Old 07-28-2003
Wolfgang Fischer
 
Posts: n/a
Default Re: Dual processor and dual NIC ??

On Sun, 27 Jul 2003 22:49:59 +0100, Nick wrote:

> Hi, I've recently rebuilt our college proxy (Squid) server and moved it
> from an old version of Red Hat to version 8.x of SuSE and moved it on to
> a dual processor Compaq server with dual NIC's.
>
> Is it possible to get SuSE to utilise both processors? If so, how?

Enable SMP in the kernel.
>
> Also, can SuSE do load balancing between the network cards, or can I
> configure Squid to listen for requests on one card, and reply on the
> other? I'm at my limit here with my Linux knowledge, so any pointers
> would be appreciated.


Load balancing with both nics makes only sence if the other end supports
it. As this is generally difficult to set up, I'd consider two other
options:
1. use one nic for the connection to the Internet and the other for the
connection to your clients
2. split your network into two subnets. One nic can be connected to each
subnet.
>
> Thanks,
>
> Nick

Reply With Quote
  #6 (permalink)  
Old 07-28-2003
Michael Heiming
 
Posts: n/a
Default Re: Dual processor and dual NIC ??

Peter T. Breuer <ptb@oboe.it.uc3m.es> wrote:
> Nick <Nick@dev.null> wrote:
> > Is it possible to get SuSE to utilise both processors? If so, how?


> Use an SMP kernel.


> > Also, can SuSE do load balancing between the network cards, or can I


> Load some sort of ethernet bonding driver.


Yep and read, /usr/src/linux-*/Documentation/networking/bonding.txt
from the kernel source for the full story how to configure bonding.
Works like a charm.
;)

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
Reply With Quote
  #7 (permalink)  
Old 07-29-2003
Steffen Kluge
 
Posts: n/a
Default Re: Dual processor and dual NIC ??

According to Nick <Nick@dev.null>:
>Is it possible to get SuSE to utilise both processors? If so, how?


I haven't used SuSE myself, but I'm sure it can do it with an SMP
kernel.

>Also, can SuSE do load balancing between the network cards,


Possibly, see other replies. Otherwise, check out the Linux
virtual server project.

>or can I configure Squid to listen for requests on one card,
>and reply on the other?


That's easy. Both interfaces have different IP addresses, and you
can tell squid to bind to just one of them, and then have your
browsers send their proxy requests to that one.

Outbound connections to web servers will be made by squid using
the other interface simply by virtue of routing. Make the default
gateway device the other interface.

Cheers
Steffen.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:31 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0