diff options
author | jake <jake@FreeBSD.org> | 2002-12-27 19:31:26 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-12-27 19:31:26 +0000 |
commit | e5ac7a26a9bfa66e5207d44820d947b8dbf94bd7 (patch) | |
tree | b8ec4fce5d91ae85a303162d01cdff60f2d5e7c8 /sys/sparc64/include | |
parent | e50c4bb112fd149ed7be92ec705504062022aaa0 (diff) | |
download | FreeBSD-src-e5ac7a26a9bfa66e5207d44820d947b8dbf94bd7.zip FreeBSD-src-e5ac7a26a9bfa66e5207d44820d947b8dbf94bd7.tar.gz |
Define UMA_MD_SMALL_ALLOC so that uma_small_alloc and uma_small_free will
be used for zones that allocate objects of less 1 page. The biggest advantage
of this is that all of a sudden the majority of kernel malloc-ed data doesn't
need kva allocated for it. Besides microbenchmarks I haven't seen a measurable
performance improvement from doing this.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/vmparam.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/include/vmparam.h b/sys/sparc64/include/vmparam.h index 910a8a6..de4112b 100644 --- a/sys/sparc64/include/vmparam.h +++ b/sys/sparc64/include/vmparam.h @@ -177,6 +177,8 @@ #define VM_INITIAL_PAGEIN 16 #endif +#define UMA_MD_SMALL_ALLOC + extern vm_offset_t vm_max_kernel_address; #endif /* !_MACHINE_VMPARAM_H_ */ |