文章目录
[feature]
- specifically-sized chunk of memory(called page)
- spans. Holding specific size.
- holding memory in cache. Even after deallocation.
cache越大,cache overflow 和 cache exhaust 越少,但是需要 lock去获取更多的内存
[tuning guide]
- The logical page size for TCMalloc (4KiB, 8KiB, 32KiB, 256KiB)
- The per-thread or per-cpu cache sizes
- The rate at which memory is released to the OS
[operation mode]
mode
per-cpu caching(default)
per-thread caching
TC->thread caching
两种mode在大多数情况下都avoid requiring lock