Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 24 Sep 2002 03:16:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 24 Sep 2002 03:16:57 -0400 Received: from mx2.elte.hu ([157.181.151.9]:33701 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Tue, 24 Sep 2002 03:16:54 -0400 Date: Tue, 24 Sep 2002 09:30:40 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Thunder from the hill Cc: Bill Davidsen , Larry McVoy , Peter Waechtler , , Ingo Molnar Subject: Re: [ANNOUNCE] Native POSIX Thread Library 0.1 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1491 Lines: 31 On Tue, 24 Sep 2002, Thunder from the hill wrote: > > 90% of the programs that matter behave exactly like Larry has described. > > IO is the main source of blocking. Go and profile a busy webserver or > > mailserver or database server yourself if you dont believe it. > > Well, I guess Java Web Server behaves the same? yes. The most common case is that it either blocks on the external network connection (IO), or on some internal database connection (IO as well). The JVMs themselves be better well-threaded internally, with not much contention on any internal lock. The case of internal synchronization is really that the 1:1 model makes a 'bad parallelism' more visible: when there's contention. It's quite rare that heavy synchronization and heavy lock contention cannot be avoided, and it mostly involves simulation projects which often do this because they simulate real world IO :-) (but, all this thread is becoming pretty theoretical - current fact is that the 1:1 library is currently more than 4 times faster than the only M:N library that we were able to run the test on using the same kernel, on M:N's 'home turf'. So anyone who thinks the M:N library should perform faster is welcome to improve it and send in results.) Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/