All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables on multiple CPUs (SMP & Hyperthreading question)
@ 2005-06-02 22:21 Michael Buffer
  2005-06-03  2:15 ` /dev/rob0
  2005-06-04 17:08 ` Mogens Valentin
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Buffer @ 2005-06-02 22:21 UTC (permalink / raw)
  To: netfilter

I'm considering purchasing some firewall machines for my organization, and
I am trying to decide whether a machine with multiple CPUs is worth the
additional expense performance-wise (aside from being able to assign CPUs
to interfaces).  I'd also like to know whether there are any stability
issues with iptables & SMP (and/or hyperthreading with multiple CPUs).
Any input would be appreciated.

Thanks,
Michael


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iptables on multiple CPUs (SMP & Hyperthreading question)
  2005-06-02 22:21 iptables on multiple CPUs (SMP & Hyperthreading question) Michael Buffer
@ 2005-06-03  2:15 ` /dev/rob0
  2005-06-03 12:12   ` Sertys
  2005-06-04 17:08 ` Mogens Valentin
  1 sibling, 1 reply; 5+ messages in thread
From: /dev/rob0 @ 2005-06-03  2:15 UTC (permalink / raw)
  To: netfilter

Michael Buffer wrote:
> I'm considering purchasing some firewall machines for my organization, and
> I am trying to decide whether a machine with multiple CPUs is worth the
> additional expense performance-wise (aside from being able to assign CPUs

??? I cannot believe this is even under consideration. Just how big is 
your organisation?

I run iptables firewalls on very modest machines, with single and dual 
T1 lines, and there is never any CPU load from the packet filtering nor 
the NAT. I don't have any really large sites, but I strongly suspect 
that iptables firewalling of very large sites could easily be handled by 
dumpster-grade equipment.

Of course with a budget like yours you'll want something new, which is 
better (we hope) for the physical reliability of the machine. A fast CPU 
  is useful for a fast boot time to minimise down time in the event of 
problems. Otherwise, a waste.

Listen, I ran my home cable, with multiple simultaneous large downloads 
and 3-4 busy Web browsers on a 386. It never broke a sweat. This of 
course used ISA 10Mbit NIC's. It could have handled many times the load 
without problem.

Why did I decommision it? Electricity. I only had so many outlets, and I 
needed a machine to perform more complex tasks, so the firewall job got 
handed off to another machine, and the 386 was retired. Still here in 
case I need it again.

I need a new computer ATM. How about I build a firewall machine for you, 
and you send me that SMP super machine? ;)
-- 
     mail to this address is discarded unless "/dev/rob0"
     or "not-spam" is in Subject: header


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: iptables on multiple CPUs (SMP & Hyperthreading question)
@ 2005-06-03  4:05 Gary W. Smith
  0 siblings, 0 replies; 5+ messages in thread
From: Gary W. Smith @ 2005-06-03  4:05 UTC (permalink / raw)
  To: /dev/rob0, netfilter

We bought 10 Dell GX150's (1ghz, 256mb) off Ebay for $1500.  We made 4 clusters of firewalls for 4 locations running LinuxHA, drbd, ipsec, pptpd and iptables.  The average load spikes to 10% at night when it's rotating the log files.  Otherwise it's idle.
 
One of the sets is running at my home office and also has MySQL and Apache on it (more of less for development).  The load is still nominal.
 
The cluster at our primary location is for a central mail hub which receives over 200k emails per day on a T3.  The second location is the central office connected via T3 to the network.
 
The catch is, $1500 is the entire environment for 4 different locations for redundant firewalls.
 
So, I'll sweaten the offer.  Give me the new box and I'll send you a cluster (retail $300) LOL.
 
Gary Smith

________________________________

From: netfilter-bounces@lists.netfilter.org on behalf of /dev/rob0
Sent: Thu 6/2/2005 7:15 PM
To: netfilter@lists.netfilter.org
Subject: Re: iptables on multiple CPUs (SMP & Hyperthreading question)



Michael Buffer wrote:
> I'm considering purchasing some firewall machines for my organization, and
> I am trying to decide whether a machine with multiple CPUs is worth the
> additional expense performance-wise (aside from being able to assign CPUs

??? I cannot believe this is even under consideration. Just how big is
your organisation?

I run iptables firewalls on very modest machines, with single and dual
T1 lines, and there is never any CPU load from the packet filtering nor
the NAT. I don't have any really large sites, but I strongly suspect
that iptables firewalling of very large sites could easily be handled by
dumpster-grade equipment.

Of course with a budget like yours you'll want something new, which is
better (we hope) for the physical reliability of the machine. A fast CPU
  is useful for a fast boot time to minimise down time in the event of
problems. Otherwise, a waste.

Listen, I ran my home cable, with multiple simultaneous large downloads
and 3-4 busy Web browsers on a 386. It never broke a sweat. This of
course used ISA 10Mbit NIC's. It could have handled many times the load
without problem.

Why did I decommision it? Electricity. I only had so many outlets, and I
needed a machine to perform more complex tasks, so the firewall job got
handed off to another machine, and the 386 was retired. Still here in
case I need it again.

I need a new computer ATM. How about I build a firewall machine for you,
and you send me that SMP super machine? ;)
--
     mail to this address is discarded unless "/dev/rob0"
     or "not-spam" is in Subject: header




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iptables on multiple CPUs (SMP & Hyperthreading question)
  2005-06-03  2:15 ` /dev/rob0
@ 2005-06-03 12:12   ` Sertys
  0 siblings, 0 replies; 5+ messages in thread
From: Sertys @ 2005-06-03 12:12 UTC (permalink / raw)
  To: Netfilter list

On Thu, 02 Jun 2005 21:15:23 -0500, /dev/rob0 <rob0@gmx.co.uk> wrote:

> Michael Buffer wrote:
>> I'm considering purchasing some firewall machines for my organization,  
>> and
>> I am trying to decide whether a machine with multiple CPUs is worth the
>> additional expense performance-wise (aside from being able to assign  
>> CPUs
>
> ??? I cannot believe this is even under consideration. Just how big is  
> your organisation?
>
> I run iptables firewalls on very modest machines, with single and dual  
> T1 lines, and there is never any CPU load from the packet filtering nor  
> the NAT. I don't have any really large sites, but I strongly suspect  
> that iptables firewalling of very large sites could easily be handled by  
> dumpster-grade equipment.
>
> Of course with a budget like yours you'll want something new, which is  
> better (we hope) for the physical reliability of the machine. A fast CPU  
>   is useful for a fast boot time to minimise down time in the event of  
> problems. Otherwise, a waste.
>
> Listen, I ran my home cable, with multiple simultaneous large downloads  
> and 3-4 busy Web browsers on a 386. It never broke a sweat. This of  
> course used ISA 10Mbit NIC's. It could have handled many times the load  
> without problem.
>
> Why did I decommision it? Electricity. I only had so many outlets, and I  
> needed a machine to perform more complex tasks, so the firewall job got  
> handed off to another machine, and the 386 was retired. Still here in  
> case I need it again.
>
> I need a new computer ATM. How about I build a firewall machine for you,  
> and you send me that SMP super machine? ;)

This of course seems to me like a stupendous statement. OK? If your  
firewall is hit by 3000 packets per minute - that's not a great load  
issue. But imagine you have 30000 clients you need to NAT and route.  
That's awful lotta power and you don't have to underestimate the chance of  
you CPU not handling them. I've seen such situations in many ISP's.Their  
routers(x86) just can't handle the traffic. And the dude one step before  
in the thread asked you the right question anyway : Just how big is your  
organisation? Measure your traffic! If it is less than 200-300 mbit/s you  
should not be worrying. If it's more and you have some intense  
services(IDS's , slow-rule traversal,because of many rules,multiple  
servers on each machine), that's when you shall invest your $$$ in BIGGER  
machines. Indeed linux handles SMP almost perfectly, same for HT, but both  
of them is not a good idea(2x2 Xeons for example), because of the  
inconvinience of the posix threading model and the lack of specialized  
support for this type of process queuing.

-- 
www.supportivo.org

I can't stop myself checking for pigs in the outlets. Everybody thinks i'm  
a punk, cause of the hairstyle(220V).
end


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iptables on multiple CPUs (SMP & Hyperthreading question)
  2005-06-02 22:21 iptables on multiple CPUs (SMP & Hyperthreading question) Michael Buffer
  2005-06-03  2:15 ` /dev/rob0
@ 2005-06-04 17:08 ` Mogens Valentin
  1 sibling, 0 replies; 5+ messages in thread
From: Mogens Valentin @ 2005-06-04 17:08 UTC (permalink / raw)
  To: netfilter

Michael Buffer wrote:
> I'm considering purchasing some firewall machines for my organization, and
> I am trying to decide whether a machine with multiple CPUs is worth the
> additional expense performance-wise (aside from being able to assign CPUs
> to interfaces).  I'd also like to know whether there are any stability
> issues with iptables & SMP (and/or hyperthreading with multiple CPUs).
> Any input would be appreciated.

To second the other very good remarks...
I've had a Celeron 430 with 128MB ram or so handling 8 interfaces (quad 
Dlink cards) as a firewall/router, while also running the facility's 
internal bind and dhcpd, plus acting as a FreeSwan IPsec concentrator 
for three external departments.
On a 2Gbit connection, load was mostly idle. I even had it running seti 
(priority -19) for a while, just to see how it handled the load.

This was for an educational facility with some 200 students and 30+ 
staff on the central setup, and maybe 40 students +8 teachers at the 
external depts.
Quite a lot of those students didn't know how to activate themselves, so 
there was -a lot- of browsing, chatting, and downloading taking place.

The only times I would've liked more raw power was for my homeoffice ssh 
connections

But I can fully agree to other remarks on setting up clustered solutions 
with failover.


-- 
Kind regards,
Mogens Valentin


The dual core chips are dubbed the "brains" of a computer.
Although Intel has recently changed that description by
describing its dual core processors as having a heart as well.
   -- fun on theinquirer.net



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-04 17:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-02 22:21 iptables on multiple CPUs (SMP & Hyperthreading question) Michael Buffer
2005-06-03  2:15 ` /dev/rob0
2005-06-03 12:12   ` Sertys
2005-06-04 17:08 ` Mogens Valentin
  -- strict thread matches above, loose matches on Subject: below --
2005-06-03  4:05 Gary W. Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.