From owner-freebsd-arch@FreeBSD.ORG Thu Mar 27 01:17:09 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C94637B438 for ; Thu, 27 Mar 2003 01:17:06 -0800 (PST) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB90A440E7 for ; Thu, 27 Mar 2003 01:05:20 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 18yTJY-0008Up-00; Thu, 27 Mar 2003 15:04:48 +0600 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 18yTJW-0008SZ-00; Thu, 27 Mar 2003 15:04:46 +0600 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.8/8.12.8) with ESMTP id h2R93Hj1009140; Thu, 27 Mar 2003 15:03:17 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.8/8.12.8/Submit) id h2R93Eeo009136; Thu, 27 Mar 2003 15:03:15 +0600 (NS) Date: Thu, 27 Mar 2003 15:03:14 +0600 From: Max Khon To: Terry Lambert Message-ID: <20030327150313.A8897@iclub.nsu.ru> References: <20030327020402.T64602-100000@mail.chesapeake.net> <3E82B795.DDB0C6A4@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3E82B795.DDB0C6A4@mindspring.com>; from tlambert2@mindspring.com on Thu, Mar 27, 2003 at 12:34:29AM -0800 X-Envelope-To: tlambert2@mindspring.com, jroberson@chesapeake.net, arch@freebsd.org X-Spam-Status: No, hits=-33.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: arch@freebsd.org Subject: Re: 1:1 threading. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 09:17:22 -0000 hi, there! On Thu, Mar 27, 2003 at 12:34:29AM -0800, Terry Lambert wrote: > > > After reading your 1:1 threading code, I think you needn't > > > hack current KSE code to build your own 1:1 threading code. > > > Our code allow you to do this, actully, it's my earlier > > > idea to let 1:1 be implemented in our M:N code base, but never > > > had told this to julian or others. > > > > It was actually done outside of KSE on purpose. It keeps the API simpler > > and cleaner. It keeps the implementation cleaner. It keeps it out of the > > majority of the KSE code paths aside from thread_suspend and related > > code. > > > > I wanted something small and stable that built on top of KSE provided > > primitives but did not actually use the KSE apis. This makes it easier > > for KSE to continue growing and changing while the 1:1 code remains > > simple. It also removes some of the cost associated with doing KSE. > > This isn't really a legitimate argument. Seconded. do you have numbers that clearly show that using Julian's approach leads to serious performance penalty? Using KSE APIs is not that difficult as far as I understand, so why we need to introduce more hacks? /fjoe