From owner-freebsd-arch@FreeBSD.ORG Thu Mar 27 15:49:05 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 3E8A237B401 for ; Thu, 27 Mar 2003 15:49:05 -0800 (PST) Received: from magic.adaptec.com (magic-mail.adaptec.com [208.236.45.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ACCD43FBD for ; Thu, 27 Mar 2003 15:49:04 -0800 (PST) (envelope-from scott_long@btc.adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6/8.11.6) with ESMTP id h2RNm6l00449; Thu, 27 Mar 2003 15:48:06 -0800 Received: from btc.btc.adaptec.com (btc.btc.adaptec.com [10.100.0.52]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id PAA25978; Thu, 27 Mar 2003 15:48:57 -0800 (PST) Received: from btc.adaptec.com (hollin [10.100.253.56]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id QAA09390; Thu, 27 Mar 2003 16:48:54 -0700 (MST) Message-ID: <3E838D57.4050305@btc.adaptec.com> Date: Thu, 27 Mar 2003 16:46:31 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021216 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-31.9 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA 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 23:49:06 -0000 Daniel Eischen wrote: > On Thu, 27 Mar 2003, Andrew Gallatin wrote: > > > >Daniel Eischen writes: > > > On Thu, 27 Mar 2003, Jeff Roberson wrote: > > > > > > > On Thu, 27 Mar 2003, Daniel Eischen wrote: > > > > > > > > Which means they are likely to change. I do not want to develop on > > > > unstable APIs and unstable kernel code. kern_thr.c is 254 > lines. I think > > > > we can handle a little duplication. I'm not sure why the > objection is so > > > > strong. > > > > > > I don't see kse_create() changing since it takes a > > > mailbox pointer as an argument and you can theoretically > > > hang anything off the [versioned] mailbox. > > > >According to the 5-stable roadmap at > > http://www.freebsd.org/doc/en/articles/5-roadmap/major-issues.html > > > > KSE kernel and userland components must be functionality complete > > by June 2003 in order to be included in the RELENG_5 branch. For > > security and stability reasons, if KSE cannot be finished in time > > then, by default, all KSE-specific syscalls should be modified to > > return ENOSYS and all other KSE-specific interfaces disabled. > > > This sounds like an argument to use the KSE syscalls :-) > If libthr is based on KSE and it works, then you've accomplished > the above. > The 5-stable roadmap document was written before, and without any knowledge of, Jeff's work. The purpose of the above paragraph was to define a deadline for the threading work to be done. With the advent of libthr, there is no longer pressure for the KSE kernel and userland components to be complete for RELENG_5, so the quoted paragraph can be relaxed a little bit. I'm not sure if I would feel comfortable shipping a release with the KSE syscalls turned on but no libkse to interact with them, but that can be discussed further. The bigger picture is that libthr is at the point now that I wanted libkse to be at in 3 months. Some may be grumpy and feel that libthr has subverted libkse, however I'd like to remind everyone that Jon and Jeff were under no contractual obligation to work on libkse. Their work does, however, solve the pressing need for a working threading library for 5-STABLE. If someone wants to pick up the torch for libkse and finish it by the June deadline, I would be thrilled. Otherwise, I'm happy with libthr for 5-STABLE, and I encourage people to finish libkse and M:N for 6.0. As for the arguments of libthr creating new syscalls, I'll point out that KSE and libkse have not yet run any real-world applications, and therefore are hard to even consider as 'alpha' quality. It's foolish to assume that the KSE interfaces will not change as KSE matures. If libthr is tied to the current interface, it creates a maintenance nightmare as the interface changes, especially for the RELENG_5 branch. I realize that it also creates baggage once libkse is the default, but that can be solved by deprecating the libthr interfaces for 6.x and removing them for 7.x. It's a small price to pay for such a huge benefit. Scott