From owner-cvs-all Fri Sep 6 0: 0:51 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F266F37B400; Fri, 6 Sep 2002 00:00:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3F7843E4A; Fri, 6 Sep 2002 00:00:37 -0700 (PDT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8670bJU085174; Fri, 6 Sep 2002 00:00:37 -0700 (PDT) (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8670bec085173; Fri, 6 Sep 2002 00:00:37 -0700 (PDT) Message-Id: <200209060700.g8670bec085173@freefall.freebsd.org> From: Julian Elischer Date: Fri, 6 Sep 2002 00:00:37 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_exit.c kern_fork.c kern_proc.c kern_thread.c src/sys/sys proc.h src/sys/vm vm_glue.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG julian 2002/09/06 00:00:37 PDT Modified files: sys/kern kern_exit.c kern_fork.c kern_proc.c kern_thread.c sys/sys proc.h sys/vm vm_glue.c Log: Use UMA as a complex object allocator. The process allocator now caches and hands out complete process structures *including substructures* . i.e. it get's the process structure with the first thread (and soon KSE) already allocated and attached, all in one hit. For the average non threaded program (non KSE that is) the allocated thread and its stack remain attached to the process, even when the process is unused and in the process cache. This saves having to allocate and attach it later, effectively bringing us (hopefully) close to the efficiency of pre-KSE systems where these were a single structure. Reviewed by: davidxu@freebsd.org, peter@freebsd.org Revision Changes Path 1.174 +2 -0 src/sys/kern/kern_exit.c 1.161 +3 -33 src/sys/kern/kern_fork.c 1.144 +31 -17 src/sys/kern/kern_proc.c 1.20 +46 -42 src/sys/kern/kern_thread.c 1.242 +15 -11 src/sys/sys/proc.h 1.153 +0 -5 src/sys/vm/vm_glue.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message