From owner-freebsd-net@FreeBSD.ORG Wed Mar 17 22:07:37 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF4BC1065672 for ; Wed, 17 Mar 2010 22:07:37 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 697738FC12 for ; Wed, 17 Mar 2010 22:07:37 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ns1Om-00044Y-8E for freebsd-net@freebsd.org; Wed, 17 Mar 2010 23:07:32 +0100 Received: from 93-136-34-137.adsl.net.t-com.hr ([93.136.34.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Mar 2010 23:07:32 +0100 Received: from ivoras by 93-136-34-137.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Mar 2010 23:07:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Wed, 17 Mar 2010 23:07:07 +0100 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-136-34-137.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090612) In-Reply-To: Subject: Re: Choosing CPU for router X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 22:07:37 -0000 Jon Otterholm wrote: > Den 2010-03-17 10.12, skrev "Gilles WAGNER" : >> 2010/3/17 Andrew Snow >>> The Supermicro Atom miniserver is more than enough CPU grunt for this sort >>> of routing/ipfw task. The main reason to go Xeon is if you need ECC RAM, >>> and even then you can get away with just using the cheapest CPU available. > This machine is going to act as access-router serving ~500 FTTH-customers. > About 500Mbit/s and 200kpps. The big issue is Dummynet, around 1000 pipes (2 > pipes/customer). > > I don't think an Atom-based machine can handle this, am I wrong? Yes, don't use an Atom for this. At the very least it will by default come with a Realtek NIC which won't make you particularly happy. 200kpps is not small or trivial load - think about it: 200 kpps per direction on a 2 GHz CPU (to simplify calculations) this means only 10,000 CPU cycles per packet - this must include servicing an interrupt in the incoming path, receiving and parsing the packet, routing it, firewalling it and then processing it by dummynet and scheduling it on output. To put this into perspective, a single context switch can take from ~~1000 CPU cycles to more than 5000 CPU cycles. In short, don't.