Change default chunk size from 4 MiB to 256 KiB.

Recent changes have improved huge allocation scalability, which removes
upward pressure to set the chunk size so large that huge allocations are
rare.  Smaller chunks are more likely to completely drain, so set the
default to the smallest size that doesn't leave excessive unusable
trailing space in chunk headers.
This commit is contained in:
Jason Evans
2015-03-06 20:05:16 -08:00
parent 4d871f73af
commit f044bb219e
2 changed files with 14 additions and 14 deletions

View File

@@ -5,7 +5,7 @@
* Size and alignment of memory chunks that are allocated by the OS's virtual
* memory system.
*/
#define LG_CHUNK_DEFAULT 22
#define LG_CHUNK_DEFAULT 18
/* Return the chunk address for allocation address a. */
#define CHUNK_ADDR2BASE(a) \