Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2006 10:10:51 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        ke han <ke.han@redstarling.com>
Cc:        freebsd-questions Questions list <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD 6.1 max sockets
Message-ID:  <AA8821CE-46ED-4DB5-BCD2-8116CB48F757@mac.com>
In-Reply-To: <ADA58663-7D29-4D4E-8439-C1521C1DF891@redstarling.com>
References:  <ADA58663-7D29-4D4E-8439-C1521C1DF891@redstarling.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 19, 2006, at 8:24 AM, ke han wrote:
> So my desire is two things:
> 1 - good event handling for knowing which sockets have new data.  I  
> assume kqueue is the way to go here?

kqueue would be a fine choice, otherwise the typical mechanism  
involves using select().

> 2 - I need to know what my limits are on max number of sockets.  If  
> my system is a 64-bit install on a server with 8GB RAM, I need to  
> know how many sockets I can handle.  Also, what options do I have  
> to tune this?  socket buffer size?  Any kernel parameters needed to  
> tune?

See the sysctl kern.ipc.maxsockets.  You can change this and related  
settings by adjusting loader.conf (see /boot/defaults/loader.conf and  
"man tuning" about "LOADER TUNABLES")...

-- 
-Chuck






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AA8821CE-46ED-4DB5-BCD2-8116CB48F757>