From owner-freebsd-arch Wed Sep 11 0:35:48 2002 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 1C96837B438; Wed, 11 Sep 2002 00:35:38 -0700 (PDT) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59D4A43E3B; Wed, 11 Sep 2002 00:35:33 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 17p225-000672-00; Wed, 11 Sep 2002 14:35:29 +0700 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 17p225-00066p-00; Wed, 11 Sep 2002 14:35:29 +0700 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.5/8.12.5) with ESMTP id g8B7ZSod006681; Wed, 11 Sep 2002 14:35:28 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.5/8.12.5/Submit) id g8B7ZSBS006676; Wed, 11 Sep 2002 14:35:28 +0700 (NSS) Date: Wed, 11 Sep 2002 14:35:27 +0700 From: Max Khon To: Jon Mini Cc: arch@freebsd.org Subject: Re: Commiting KSE pthreads prototype into -CURRENT. Message-ID: <20020911143527.A4707@iclub.nsu.ru> References: <20020911034340.GI3866@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020911034340.GI3866@elvis.mu.org>; from mini@freebsd.org on Tue, Sep 10, 2002 at 08:43:40PM -0700 X-Envelope-To: mini@freebsd.org, arch@freebsd.org Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi, there! On Tue, Sep 10, 2002 at 08:43:40PM -0700, Jon Mini wrote: > My work in the KSE p4 branch has reached the point where I have a > functional pthreads library (a modified version of libc_r) that > uses KSE for scheduling. An bug in the npx code is causing problems, > but once that is resolved I want to commit these changes. > A version of the diffs against -CURRENT is available at: > > http://www.freebsd.org/~mini/kse.diff > > These diffs modify libc_r rather than just show adding a new library, > because that is easier to understand what changes are really happeneing. > > I would like to do the following: > > - Commit the kernel changes, minus the NPX modifications. > - Commit the changes to libc (modification of the *context() > functions). > - Repo-copy the current libc_r to another directory, commit > the modifications to work with KSE there, and attach it to the > build. > > This brings us to a system where we can use both KSE threading or > the old libc_r user threading in the same system, and libc_r is > still the default. However, without the NPX changes, floating point > operations will have race conditions in threaded apps that will cause > inconsistent numerical results. > > - Once the NPX problems are resolved, commit those changes as well. > > Looking forward, once KSE has stabalized, we can switch the -pthread > option to point to the KSE library rather than the old libc_r. Sometime > after that, we can deprecate libc_r and eventually disconnect it from > the build. This is some time down the road, however. > Right now, we need to ship an experimental version of KSE with 5.0-RELEASE, > and I think this is the best way to do it. > > Comments? Objections? how will new pthreads library be named? -lpthread? if so we can drop -pthread option completely later. /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message