From owner-freebsd-arch@FreeBSD.ORG Wed Aug 20 09:16:53 2008 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 127B410656D9; Wed, 20 Aug 2008 09:16:53 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 8B84D8FC1A; Wed, 20 Aug 2008 09:16:52 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id DFBB21CCC6; Wed, 20 Aug 2008 11:16:51 +0200 (CEST) Date: Wed, 20 Aug 2008 11:16:51 +0200 From: Ed Schouten To: FreeBSD Current , FreeBSD Arch Message-ID: <20080820091651.GV99951@hoeg.nl> References: <20080818093441.GO99951@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DdPkZxlGw/CxoNTG" Content-Disposition: inline In-Reply-To: <20080818093441.GO99951@hoeg.nl> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: HEADS DOWN: MPSAFE TTY layer integrated X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2008 09:16:53 -0000 --DdPkZxlGw/CxoNTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everyone, I'm pleased to announce that the MPSAFE TTY layer has just been integrated to our source tree. Below is the commit message: ----- Forwarded message from Ed Schouten ----- > Date: Wed, 20 Aug 2008 08:31:58 +0000 (UTC) > From: Ed Schouten > To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org > Subject: cvs commit: src ObsoleteFiles.inc UPDATING src/bin/sh miscbltin.c > src/etc login.conf src/etc/defaults devfs.rules > src/lib/libc/stdlib Makefile.inc Symbol.map grantpt.3 ptsname.3 > ptsname.c src/lib/libc/sys Makefile.inc Symbol.map getrlimit.2 ... >=20 > ed 2008-08-20 08:31:58 UTC >=20 > FreeBSD src repository >=20 > >=20 > Log: > SVN rev 181905 on 2008-08-20 08:31:58Z by ed > =20 > Integrate the new MPSAFE TTY layer to the FreeBSD operating system. > =20 > The last half year I've been working on a replacement TTY layer for the > FreeBSD kernel. The new TTY layer was designed to improve the following: > =20 > - Improved driver model: > =20 > The old TTY layer has a driver model that is not abstract enough to > make it friendly to use. A good example is the output path, where the > device drivers directly access the output buffers. This means that an > in-kernel PPP implementation must always convert network buffers into > TTY buffers. > =20 > If a PPP implementation would be built on top of the new TTY layer > (still needs a hooks layer, though), it would allow the PPP > implementation to directly hand the data to the TTY driver. > =20 > - Improved hotplugging: > =20 > With the old TTY layer, it isn't entirely safe to destroy TTY's from > the system. This implementation has a two-step destructing design, > where the driver first abandons the TTY. After all threads have left > the TTY, the TTY layer calls a routine in the driver, which can be > used to free resources (unit numbers, etc). > =20 > The pts(4) driver also implements this feature, which means > posix_openpt() will now return PTY's that are created on the fly. > =20 > - Improved performance: > =20 > One of the major improvements is the per-TTY mutex, which is expected > to improve scalability when compared to the old Giant locking. > Another change is the unbuffered copying to userspace, which is both > used on TTY device nodes and PTY masters. > =20 > Upgrading should be quite straightforward. Unlike previous versions, > existing kernel configuration files do not need to be changed, except > when they reference device drivers that are listed in UPDATING. > =20 > Obtained from: //depot/projects/mpsafetty/... > Approved by: philip (ex-mentor) > Discussed: on the lists, at BSDCan, at the DevSummit > Sponsored by: Snow B.V., the Netherlands > dcons(4) fixed by: kan > =20 > >=20 ----- End forwarded message ----- Some people asked me if I could tag the tree before importing the MPSAFE TTY bits, to make sure people can easily stick to older source revisions when they want to do comparisons with the old TTY implementation, which may be useful when porting drivers, isolating bugs, etc. After discussing with people on IRC, I've decided not to create the tag. If you want to switch to pre-MPSAFE TTY, please check out revision r181904. Well, that's all I've got to say for now, I guess. Be sure to update your systems and give my code some extensive testing. Thanks! --=20 Ed Schouten WWW: http://80386.nl/ --DdPkZxlGw/CxoNTG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkir4QMACgkQ52SDGA2eCwU/qQCfenSchz3I/K6t1/L9K0KiyZvs m/8An0mEL8Miv/mjov7TUJo+0pKMoVuo =CdIc -----END PGP SIGNATURE----- --DdPkZxlGw/CxoNTG--