diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2013-06-28 03:51:20 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2013-06-28 03:51:20 +0000 |
commit | 5f5183664537af80666787b606e005b33d01cdc2 (patch) | |
tree | 1ec9ab556a4e03f63542c71cdcc9e56ac39f7ef0 /sys/vm/vm_pager.h | |
parent | 837610eb0416421bd330e43c1edef8eda61018ef (diff) | |
download | src-5f5183664537af80666787b606e005b33d01cdc2.tar.gz src-5f5183664537af80666787b606e005b33d01cdc2.zip |
- Add a general purpose resource allocator, vmem, from NetBSD. It was
originally inspired by the Solaris vmem detailed in the proceedings
of usenix 2001. The NetBSD version was heavily refactored for bugs
and simplicity.
- Use this resource allocator to allocate the buffer and transient maps.
Buffer cache defrags are reduced by 25% when used by filesystems with
mixed block sizes. Ultimately this may permit dynamic buffer cache
sizing on low KVA machines.
Discussed with: alc, kib, attilio
Tested by: pho
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=252330
Diffstat (limited to 'sys/vm/vm_pager.h')
-rw-r--r-- | sys/vm/vm_pager.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h index b5d923c3a7ef..aa1b7f078c96 100644 --- a/sys/vm/vm_pager.h +++ b/sys/vm/vm_pager.h @@ -95,9 +95,8 @@ extern struct pagerops mgtdevicepagerops; #ifdef _KERNEL -extern vm_map_t pager_map; extern struct pagerops *pagertab[]; -extern struct mtx pbuf_mtx; +extern struct mtx_padalign pbuf_mtx; vm_object_t vm_pager_allocate(objtype_t, void *, vm_ooffset_t, vm_prot_t, vm_ooffset_t, struct ucred *); |