diff options
author | alc <alc@FreeBSD.org> | 2010-11-10 17:57:34 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-11-10 17:57:34 +0000 |
commit | c275a079317721156e5cf7fb8c5dcc4a1b7877f1 (patch) | |
tree | 24737fbf9c19914008959f8011a1cc880bf0b36e /sys/sparc64 | |
parent | 34baf196f053321b70521dcfb0673dc69e9ed467 (diff) | |
download | FreeBSD-src-c275a079317721156e5cf7fb8c5dcc4a1b7877f1.zip FreeBSD-src-c275a079317721156e5cf7fb8c5dcc4a1b7877f1.tar.gz |
Enable reservation-based physical memory allocation. Even without the
creation of large page mappings in the pmap, it can provide modest
performance benefits. In particular, for a "buildworld" on a 2x 1GHz
Ultrasparc IIIi it reduced the wall clock time by 2.2% and the system
time by 12.6%.
Tested by: marius@
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/vmparam.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/sparc64/include/vmparam.h b/sys/sparc64/include/vmparam.h index b9ce546..b92312e 100644 --- a/sys/sparc64/include/vmparam.h +++ b/sys/sparc64/include/vmparam.h @@ -128,10 +128,17 @@ #endif /* - * Disable superpage reservations. + * Enable superpage reservations: 1 level. */ #ifndef VM_NRESERVLEVEL -#define VM_NRESERVLEVEL 0 +#define VM_NRESERVLEVEL 1 +#endif + +/* + * Level 0 reservations consist of 512 pages. + */ +#ifndef VM_LEVEL_0_ORDER +#define VM_LEVEL_0_ORDER 9 #endif /* |