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/vm | |
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/vm')
-rw-r--r-- | sys/vm/vm_reserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c index 423bb31..f5f44f7 100644 --- a/sys/vm/vm_reserv.c +++ b/sys/vm/vm_reserv.c @@ -194,7 +194,7 @@ sysctl_vm_reserv_partpopq(SYSCTL_HANDLER_ARGS) } mtx_unlock(&vm_page_queue_free_mtx); sbuf_printf(&sbuf, "%5d: %6dK, %6d\n", level, - unused_pages * (PAGE_SIZE / 1024), counter); + unused_pages * ((int)PAGE_SIZE / 1024), counter); } error = sbuf_finish(&sbuf); sbuf_delete(&sbuf); |