google/tcmalloc
View on GitHub ↗ ★ 5,397 C++
24 mentions on Hacker News by 18 people: 5 stories, 19 comments · first 2020-02-10 · latest 2026-09-18
20082026
-
…diverged quite a while ago. doesn’t have a lot of the fancier features of modern tcmalloc [0]. [0]: https://github.com/google/tcmalloc/blob/master/docs/gperftoo...
comment by skavi · 2026-09-18 · in Comparison of Malloc() Algorithms -
no article, sorry, grabbed the numbers from an old PR. to confirm, you were using tcmalloc from https://github.com/google/tcmalloc and not from https://github.com/gperftools/gperftools , right? the latter is a lot worse iiuc.
comment by skavi · 2026-09-18 · in Comparison of Malloc() Algorithms -
…executors (sometimes multiple in the same application). so relatively high thread counts. [0]: https://github.com/google/tcmalloc/blob/master/docs/design.m...
comment by skavi · 2026-03-16 · in Meta’s renewed commitment to jemalloc -
…2.2.4: 325,184 KB, 290 ms tcmalloc: 178,688 KB, 200 ms jemalloc: 264,688 KB, 230 ms tcmalloc was from github.com/google/tcmalloc/tree/24b3f29. i don't recall which jemalloc was tested.
comment by skavi · 2026-03-16 · in Meta’s renewed commitment to jemalloc -
…and stats, but you have to understand the implementation deeply to make sense of the stats. https://github.com/google/tcmalloc/blob/master/docs/stats.md
comment by jeffbee · 2025-09-17 · in Optimizing ClickHouse for Intel's ultra-high core count processors -
…memory from a huge-page-aware allocator. 1: https://dl.acm.org/doi/pdf/10.1145/3342195.3387524 2: https://github.com/google/tcmalloc/blob/master/docs/tuning.m...
comment by jeffbee · 2025-06-14 · in Jemalloc Postmortem -
…optimization engineers aiming to improve performance of important internal servers. Extracting it to github.com/google/tcmalloc was complex due to intricate dependencies ( https://abseil.io/blog/20200212-tcmalloc ). As internal performance…
comment by MaskRay · 2025-06-13 · in Jemalloc Postmortem -
…and six years old. Nowadays, there are at least two different versions of tcmalloc: the one from https://github.com/google/tcmalloc/ is newer (it has rseq support, for example), and the version bundled in…
comment by fweimer · 2025-04-13 · in Battle of the Mallocators -
…probably only seen the gperftools version of it. This is the version Google now uses internally: https://github.com/google/tcmalloc It's worth a fresh look. In particular, it supports per-CPU caches as an alternative to per-thread caches.…
comment by scottlamb · 2023-04-06 · in Spotting and avoiding heap fragmentation in Rust applications -
…a stock kernel, it's 511. TCMalloc's docs recommend using max_ptes_none set to 0 for this reason: https://github.com/google/tcmalloc/blob/master/docs/tuning.m... (Disclosure: I work on TCMalloc and authored the above doc.)
comment by ckennelly · 2023-02-02 · in I've had bad luck with transparent hugepages on my Linux machines -
…link your program against TCMalloc and forget about it. Literally free money. Highly recommended. https://github.com/google/tcmalloc
comment by jeffbee · 2023-01-22 · in Huge pages are a good idea -
…about the old tcmalloc from 2006 that should never be used anymore. There is also a new tcmaloc: https://github.com/google/tcmalloc/ If you are in doubt, you should simply use what ClickHouse is using.
comment by zX41ZdbW · 2022-09-27 · in Why tcmalloc using aggresive decommit == false is a litte better than jemalloc -
…instead MADV_DONTNEED. (You can find munmap in tcmalloc, but it's not being used to free memory.) https://github.com/google/tcmalloc/blob/48808681a9f38e974b49...
comment by klodolph · 2022-09-23 · in System memory allocator free operation zeroes out deallocated blocks in iOS 16 -
…otherwise only mmap(2) is used." Also, Google's tcmalloc uses mmap to get system memory: https://github.com/google/tcmalloc/blob/master/docs/design.m... "An allocation for k pages is satisfied by looking in the kth free list. If that free…
comment by jra_samba · 2022-04-16 · in When hiring developers, have the candidate read existing code -
…also gets stupid complicated when you add in what kind of malloc you use, c.f. google's tcmalloc: https://github.com/google/tcmalloc
comment by joatmon-snoo · 2021-09-13 · in Comp.lang.c Frequently Asked Questions -
…also the pending CL numbers (same concept as Perforce). The number I'm quoting includes both. [1] https://github.com/google/tcmalloc/commit/6f42c40d6ebcf2aeb8...
comment by scottlamb · 2021-07-10 · in Generate a Git repository with 2^28 commits—one for every 7-character shorthash -
…libraries like tcmalloc [1] and jemalloc [2]. [0] https://stackoverflow.com/a/262481/1111557 [1] https://github.com/google/tcmalloc [2] https://github.com/jemalloc/jemalloc
comment by inetknght · 2021-01-23 · in Libvirt: Adoption of GLib library to replace GNULIB and home grown code -
…there's more to it than this, but I know there are multiple implementations of malloc out there: - https://github.com/google/tcmalloc - https://github.com/jemalloc/jemalloc
comment by msteffen · 2020-12-30 · in Learn 3D Computer Graphics Programming from Scratch -
Have you seen the recently updated GitHub project: https://github.com/google/tcmalloc
comment by alexhutcheson · 2020-03-05 · in Glibc malloc inefficiency (2016)