From owner-freebsd-hackers Sun Dec 19 7:43:50 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 1A3EC15340 for ; Sun, 19 Dec 1999 07:43:39 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com (dcs@p16-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.145]) by peach.ocn.ne.jp (8.9.1a/OCN) with ESMTP id AAA23141; Mon, 20 Dec 1999 00:43:24 +0900 (JST) Message-ID: <385CEE25.5239137E@newsguy.com> Date: Sun, 19 Dec 1999 23:39:33 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: "Ronald F. Guilmette" Cc: Kevin Day , hackers@FreeBSD.ORG Subject: Re: Practical limit for number of TCP connections? References: <43033.945551665@monkeys.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Ronald F. Guilmette" wrote: > > As I say, my understanding is that FreeBSD still doesn't have real and/or > complete thread support in the kernel. So if you have a multi-threaded > application and one thread blocks (e.g. on I/O) then the whole thing is > blocked. Ouch! That's just not true. FreeBSD has userland threads. This is faster than kernel threads, but has two disadvantages. First, it doesn't make use of SMP. Second, they all compete together as a single process for CPU time. It seems some programmers prefer to use threads to increase their process' CPU time than lowering the process' priority. OTOH, all releases so far of FreeBSD *do* have incomplete thread support. Some very important functions were missing, but it seems this is (mostly?) solved. Also, the way threads dealt with signals and wakeup's resulted in heavy overhead, but this have been changing, and it's probably ok now. Not to dismiss FreeBSD's kernel problems, but that thing about blocking is absurdly untrue. -- Daniel C. Sobral (8-DCS) who is as social as a wampas dcs@newsguy.com dcs@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message