From owner-cvs-all@FreeBSD.ORG Thu Sep 18 23:27:01 2003 Return-Path: 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 C5D5416A4BF; Thu, 18 Sep 2003 23:27:01 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5270F43FB1; Thu, 18 Sep 2003 23:27:01 -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 h8J6QrXJ055705; Thu, 18 Sep 2003 23:26:53 -0700 (PDT) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8J6QmrZ055704; Thu, 18 Sep 2003 23:26:48 -0700 (PDT) (envelope-from jeff) Message-Id: <200309190626.h8J6QmrZ055704@repoman.freebsd.org> From: Jeff Roberson Date: Thu, 18 Sep 2003 23:26:47 -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-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 06:27:01 -0000 jeff 2003/09/18 23:26:47 PDT FreeBSD src repository Modified files: sys/vm uma_core.c uma_int.h Log: - Initialize a pool of bucket zones so that we waste less space on zones that don't cache as many items. - Introduce the bucket_alloc(), bucket_free() functions to wrap bucket allocation. These functions select the appropriate bucket zone to allocate from or free to. - Rename ub_ptr to ub_cnt to reflect a change in its use. ub_cnt now reflects the count of free items in the bucket. This gets rid of many unnatural subtractions by 1 throughout the code. - Add ub_entries which reflects the number of entries possibly held in a bucket. Revision Changes Path 1.75 +139 -75 src/sys/vm/uma_core.c 1.18 +3 -10 src/sys/vm/uma_int.h