tcmalloc

By google

Tcmalloc Alternatives

Similar projects and alternatives to tcmalloc

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better tcmalloc alternative or higher similarity.

tcmalloc reviews and mentions

Posts with mentions or reviews of tcmalloc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-06.
  • Configuring HugePages on Google's TCMalloc
    1 project | /r/cpp_questions | 25 Jun 2023
    https://github.com/google/tcmalloc/issues/190
  • Configuring HugePages on TCMalloc
    1 project | /r/cpp | 24 Jun 2023
    I had earlier raised a query on the github.com/google/tcmalloc regarding how I can force tcmalloc to back memory with hugetlbfs instead of using Transparent Huge Pages. I have attached the link to my query below. Please let me know if there is an possible way to do this.
  • New memory related fields in Yugabyte 2.17.3 pg_stat_activity
    1 project | dev.to | 8 May 2023
    The allocated_mem_bytes field shows the memory allocated by the memory allocator. PostgreSQL is setup in an extensible way, which includes the ability to choose a memory allocator, which for PostgreSQL is ptmalloc, and for YSQL is tcmalloc. PostgreSQL has the ability to change the memory allocator, but by default uses the operating system memory allocator.
  • Spotting and Avoiding Heap Fragmentation in Rust Applications
    3 projects | news.ycombinator.com | 6 Apr 2023
    > * Switching from libc malloc to tcmalloc (dating myself a little bit)

    If you think of tcmalloc as an old crusty allocator, you've 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. Those are fantastic if you have a lot more threads than CPUs.

  • I've had bad luck with transparent hugepages on my Linux machines
    1 project | news.ycombinator.com | 1 Feb 2023
    The default setting of max_ptes_none is also problematic.

    On 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.)

  • Pages Are a Good Idea
    1 project | news.ycombinator.com | 22 Jan 2023
    The easiest way to exploit THP, by far, is to link your program against TCMalloc and forget about it. Literally free money. Highly recommended.

    https://github.com/google/tcmalloc

  • Why tcmalloc using aggresive decommit == false is a litte better than jemalloc
    1 project | news.ycombinator.com | 27 Sep 2022
  • System memory allocator free operation zeroes out deallocated blocks in iOS 16
    4 projects | news.ycombinator.com | 22 Sep 2022
  • malloc() and free() are a bad API
    2 projects | /r/C_Programming | 31 Aug 2022
    This means that efficient malloc implementation is typically overly complicated. mimalloc for example is almost 8K lines of C afaik, which is one of the smaller but still efficient malloc implementation I'm aware of. (Try looking into tcmalloc for comparison).
  • malloc global mutex?
    2 projects | /r/cpp_questions | 22 Jun 2022
    Yes, it is synchronized, you can also swap out the implementation typically. There are different allocators out there depending on what you are trying to optimize for (memory, single thread performance, multithread performance, locality, etc). A lot of multithreading optimized ones use per thread pools, so each individual allocation doesn't need to globally lock, but changing the pools themself does, or large allocations that aren't part of the pools. For example https://github.com/google/tcmalloc
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 24 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic tcmalloc repo stats
15
4,062
9.8
6 days ago

google/tcmalloc is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of tcmalloc is C++.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com