On Feb 17, 2006, at 12:07 PM, Mike Jakubik wrote: > Jason Evans wrote: >> Are redzones enabled? (They are turned on by default in >> CURRENT.) You can check by reading the output from something like: >> >> MALLOC_OPTIONS=P ls >> >> Keep in mind that they use up substantial extra memory -- 32 bytes >> per allocation. Unless you have disabled redzones, you should >> expect much higher memory usage with jemalloc than with phkmalloc. > > ___ Begin malloc statistics ___ > Number of CPUs: 1 > Number of arenas: 1 > Cache slots: 256 > Chunk size: 16777216 (2^24) > Quantum size: 16 (2^4) > Pointer size: 4 > Number of bins: 128 > Maximum bin size: 2096 > Assertions enabled > Redzone size: 16 ^^^^^^^^^^^^^^^^ > Allocated: 22272, space used: 33554432 > > Does this mean they are enabled? and if so, how can i disable them? > Which malloc is in -current now? Yes, redzones are enabled. Redzone size is 0 when they are disabled. You can disable them by adding the following to /etc/ make.conf, then rebuilding/installing libc: CFLAGS+=-DNO_MALLOC_EXTRAS jemalloc is currently in use for CURRENT. JasonReceived on Fri Feb 17 2006 - 20:34:01 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:52 UTC