mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
configure: add --with-lg-slab-maxregs configure option.
Specify the maximum number of regions in a slab, which is (<lg-page> - <lg-tiny-min>) by default. This increases the limit of slab sizes specified by "slab_sizes" in malloc_conf. This should never be less than the default value. The max value of this option is related to LG_BITMAP_MAXBITS (see more in bitmap.h). For example, on a 4k page size system, if we: 1) configure jemalloc with with --with-lg-slab-maxregs=12. 2) export MALLOC_CONF="slab_sizes:9-16:4" The slab size of 16 bytes is set to 4 pages. Previously, the default lg-slab-maxregs is 9 (i.e. 12 - 3). The max slab size of 16 bytes is 2 pages (i.e. (1<<9) * 16 bytes). By increasing the value from 9 to 12, the max slab size can be set by MALLOC_CONF is 16 pages (i.e. (1<<12) * 16 bytes).
This commit is contained in:
@@ -250,6 +250,13 @@ any of the following arguments (not a definitive list) to 'configure':
|
||||
configuration, jemalloc will provide additional size classes that are not
|
||||
16-byte-aligned (24, 40, and 56).
|
||||
|
||||
* `--with-lg-slab-maxregs=<lg-slab-maxregs>`
|
||||
|
||||
Specify the maximum number of regions in a slab, which is
|
||||
(<lg-page> - <lg-tiny-min>) by default. This increases the limit of slab
|
||||
sizes specified by "slab_sizes" in malloc_conf. This should never be less
|
||||
than the default value.
|
||||
|
||||
* `--with-lg-vaddr=<lg-vaddr>`
|
||||
|
||||
Specify the number of significant virtual address bits. By default, the
|
||||
|
||||
Reference in New Issue
Block a user