From owner-freebsd-questions@FreeBSD.ORG Fri Oct 20 09:12:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC4F816A403 for ; Fri, 20 Oct 2006 09:12:39 +0000 (UTC) (envelope-from girishvenkatachalam@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC38743D8C for ; Fri, 20 Oct 2006 09:12:19 +0000 (GMT) (envelope-from girishvenkatachalam@gmail.com) Received: by wx-out-0506.google.com with SMTP id t4so895685wxc for ; Fri, 20 Oct 2006 02:12:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:reply-to:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=BYgPs3GR2jJiFGH44Lkaja1p+wue5gdFdgQLQo6W5mOuQlVun6meVF8niGoSxJzqVa2187v4+RPJdg9U0GgoklInGGIIG4TlEE7ZU7tSwdl5QOyVx0/JiqsWXS4yO4P005tvxOiOf2H5YG+fJAYQmseQTEusoUvQXipQArk7BLY= Received: by 10.70.53.7 with SMTP id b7mr378309wxa; Fri, 20 Oct 2006 02:12:18 -0700 (PDT) Received: from lakshmi.susmita.org ( [59.92.61.145]) by mx.google.com with ESMTP id g3sm4347399wra.2006.10.20.02.12.16; Fri, 20 Oct 2006 02:12:18 -0700 (PDT) Received: by lakshmi.susmita.org (Postfix, from userid 1000) id 4D8C323A9E5; Fri, 20 Oct 2006 14:13:58 +0530 (IST) Date: Fri, 20 Oct 2006 14:13:57 +0530 From: Girish Venkatachalam To: freebsd-questions Questions list Message-ID: <20061020084357.GB23594@lakshmi.susmita.org> Mail-Followup-To: freebsd-questions Questions list References: <20061020080526.GA23594@lakshmi.susmita.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i Subject: Re: FreeBSD 6.1 max sockets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: girishvenkatachalam@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2006 09:12:39 -0000 On Fri, Oct 20, 2006 at 04:17:52PM +0800, ke han wrote: > Thanks for the reply. > This app is intended to keep 20,000++ sockets alive at a time. These > sockets are very long lived. > I understand about kqueue. I will eventually write for this. > What I need to understand are the various kernel tunings required to > handle 20,000++ active sockets. I would like to approach the > theoretical max...is it 64k? That is, is the absolute max socket > descriptors 64k? any thing else in the way of this maximum? I only have to say "Sorry, I don't know" for this question. :-) I hope other more experienced folks in this list will help you. I can give you just a thought however. If you have such massive requirements if I were you I would do the socket handling inside the kernel itself. That way you avoid the very expensive user space/kernel space context switch and also go in for some embedded system suited for this sort of thing. Perhaps I am talking rubbish. If so please pardon me. :-) Best of luck! regards, Girish