From owner-cvs-src@FreeBSD.ORG Fri Sep 19 16:27:48 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F208416A4B3; Fri, 19 Sep 2003 16:27:47 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 855AE43FCB; Fri, 19 Sep 2003 16:27:46 -0700 (PDT) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h8JNRkXJ069205; Fri, 19 Sep 2003 16:27:46 -0700 (PDT) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8JNRkAh069204; Fri, 19 Sep 2003 16:27:46 -0700 (PDT) (envelope-from jeff) Message-Id: <200309192327.h8JNRkAh069204@repoman.freebsd.org> From: Jeff Roberson Date: Fri, 19 Sep 2003 16:27:46 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/vm uma_core.c uma_int.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 23:27:48 -0000 jeff 2003/09/19 16:27:46 PDT FreeBSD src repository Modified files: sys/vm uma_core.c uma_int.h Log: - Remove the working-set algorithm. Instead, use the per cpu buckets as the working set cache. This has several advantages. Firstly, we never touch the per cpu queues now in the timeout handler. This removes one more reason for having per cpu locks. Secondly, it reduces the size of the zone by 8 bytes, bringing it under 200 bytes for a single proc x86 box. This tidies up other logic as well. - The 'destroy' flag no longer needs to be passed to zone_drain() since it always frees everything in the zone's slabs. - cache_drain() is now only called from zone_dtor() and so it destroys by default. It also does not need the destroy parameter now. Revision Changes Path 1.83 +28 -75 src/sys/vm/uma_core.c 1.21 +1 -6 src/sys/vm/uma_int.h