]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Initialize a pool of bucket zones so that we waste less space on zones that
authorJeff Roberson <jeff@FreeBSD.org>
Fri, 19 Sep 2003 06:26:45 +0000 (06:26 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Fri, 19 Sep 2003 06:26:45 +0000 (06:26 +0000)
commitcae33c14291339048a4b1365bb3fb45d82ef68b0
tree959b898cffd6289100d88f14df3b9529896e58ed
parent45ae1d91477404078b5690db64522b6a5eeaf3dd
 - 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.
sys/vm/uma_core.c
sys/vm/uma_int.h