From owner-freebsd-arch@FreeBSD.ORG Thu Nov 11 03:16:07 2004 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 3292016A4CE; Thu, 11 Nov 2004 03:16:07 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B812243D46; Thu, 11 Nov 2004 03:16:06 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id iAB3Idcd062345; Wed, 10 Nov 2004 20:18:40 -0700 (MST) (envelope-from scottl@freebsd.org) Message-ID: <4192D9AB.5060309@freebsd.org> Date: Wed, 10 Nov 2004 20:16:59 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Schultz References: <20041111030035.GA70923@VARK.MIT.EDU> In-Reply-To: <20041111030035.GA70923@VARK.MIT.EDU> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: arch@freebsd.org Subject: Re: U Area Removal 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, 11 Nov 2004 03:16:07 -0000 David Schultz wrote: > Over the years, the amount of data we have stored in each process' U > area has eroded to the point where all we have left are the following: > > - A struct kinfo_proc that is only used for a.out core dumps. > This can be reconstructed at the time of the core dump, so > it doesn't need to be there. > > - The struct pstats for the process, which takes a mere 216 bytes > on i386. > > In exchange for the ability to swap out this 216-byte structure, we > keep around a 4096-byte page, a 132-byte vm_object, and a couple of > pointers. Moreover, there is a small amount of runtime overhead > associated with this, and developers need to remember to PHOLD() and > PRELE() the process as appropriate.[1] > > I propose to remove the ability to swap the U area, allocating p_stats > from malloced memory instead. Medium-term scheduling and swapping of > kernel stacks would be retained. Here are the patches; !i386 testers > wanted: > > http://www.freebsd.org/~das/patches/upages.diff > > > [1] Most of the instances of PHOLD() and PRELE() right now never > needed to be there or have been unnecessary ever since the PCB > was moved out of the U area. Go for it! Just get some validation that amd64 and sparc64 work, and then do the deed. I'll try testing at least amd64 right now. Scott