From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 31 19:47:04 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 98B74A3A for ; Wed, 31 Jul 2013 19:47:04 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2D7E424B5 for ; Wed, 31 Jul 2013 19:47:04 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id p61so969718wes.25 for ; Wed, 31 Jul 2013 12:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yjkqPXpcA6Yz8ZHuIzPpuBYDI2xpJHVxBR39yfPLLzk=; b=Dpm0Zqc3nAaUt7zajLafwqczyCdlCUTk6xojcM9H4XfAj2sGbHzGI7JHxjrq0YiASu sUkU0kUNuBRykBxrBOzrbEdgfxqF/yUr9HvAiZwqUPJG/+/sluAu5EsLnA3vWOlFHSTl 9MO1xL5Vp+jAjFC77KswlpqzgnxEdZJyC4YgUx4sOFmHIWh03vWotNdHAkZd19bvrPED 3R0qaVa7VMsfKOcObDlGNwBmmTlQumWgo5P/wNOozkgSlp55lTcXFoXUyjjEfuePFi9T KsB01Vgfk5LNvoXVsW1Te4h2mYGA2MZC5KMIt81WNf+firXvSqTmJpDDxYrPIZHwcXR+ kB9A== MIME-Version: 1.0 X-Received: by 10.180.11.146 with SMTP id q18mr5368172wib.50.1375300022225; Wed, 31 Jul 2013 12:47:02 -0700 (PDT) Received: by 10.216.82.70 with HTTP; Wed, 31 Jul 2013 12:47:02 -0700 (PDT) In-Reply-To: <34C668004A0D654205D0516B@Mail-PC.tdx.co.uk> References: <34C668004A0D654205D0516B@Mail-PC.tdx.co.uk> Date: Wed, 31 Jul 2013 23:47:02 +0400 Message-ID: Subject: Re: Stacking lots of IP's on a single box - any 'gotchas'? From: Sergey Kandaurov To: Karl Pielorz Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 19:47:04 -0000 On 31 July 2013 13:37, Karl Pielorz wrote: > > Hi, > > We've got a number of boxes we'd like to consolidate - this could mean > upward of 1,500 IP's on a single box (9.1 amd64). > > Last time we did anything like this we hit at issue at around 900 (ntpd > 'binds' by default to all available IP's - I think we had a workaround for > that). > This is because select() has a limit on FD_SETSIZE (1024). If it tries to select > 1024 fds, bad things could happen. Newer ntpd (not in base) has a feature to bind only to the specific interface; this was used to run ntpd on boxes with > 1200 IPs on 1 i/face. > But is there any hard limit we're likely to encounter putting so many IP's > on a single machine? - Are there any limits that would likely need tuning to > support that many IP's? > Unlikely, besides those unrelated things like ntpd+select() et.al. -- wbr, pluknet