jemalloc VS rust-scudo

Compare jemalloc vs rust-scudo and see what are their differences.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
jemalloc rust-scudo
42 2
9,602 49
0.9% -
8.7 2.5
5 days ago about 2 months ago
C Rust
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

jemalloc

Posts with mentions or reviews of jemalloc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-10-22.
  • Show HN: Rust Web Framework
    13 projects | news.ycombinator.com | 22 Oct 2024
    jemalloc (as opposed to GNU libc and LLVM) sometimes performs better. [1]

    [1] https://jemalloc.net/

  • Training AI Models on CPU on AWS EC2
    5 projects | dev.to | 4 Sep 2024
    There are a number of opportunities for optimizing the use of the underlying CPU resources. These include optimizing memory management and thread allocation to the structure of the underlying CPU hardware. Memory management can be improved through the use of advanced memory allocators (such as Jemalloc and TCMalloc) and/or reducing memory accesses that are slower (i.e., across NUMA nodes). Threading allocation can be improved through appropriate configuration of the OpenMP threading library and/or use of Intel's Open MP library.
  • Adding 16 KB Page Size to Android
    4 projects | news.ycombinator.com | 23 Aug 2024
    Certain build processes determine the page size at compile time and assume it's the same at run time, and fail if it is not: https://github.com/jemalloc/jemalloc/issues/467

    Some memory-mapped files formats have assumptions about page granularity: https://bugzilla.redhat.com/show_bug.cgi?id=1979804

    The file format issue applies to ELF as well. Some people patch their toolchains (or use suitable linker options) to produce slightly smaller binaries that can only be loaded if the page size is 4K, even though the ABI is pretty clear in that you should link for compatibility with up to 64K pages.

  • Mimalloc Cigarette: Losing one week of my life catching a memory leak (Rust)
    1 project | news.ycombinator.com | 21 Aug 2024
    jemalloc has its own problem with threads - if you have a multi-threaded application that uses jemalloc on all threads except the main thread, then the cleanup that jemalloc runs on main thread exit will segfault. In $dayjob we use jemalloc as a sub-allocator in specific arenas (the rest of the application uses libc malloc, but for some cases it allocates pages using mmap and then uses jemalloc to partition them). $dayjob's code is written in Rust, whose unit test framework defaults to running tests in one or more threads and the main thread of the test binary just orchestrates them. So the test binary triggers this segfault reliably.

    ( https://github.com/jemalloc/jemalloc/issues/1317 Unlike what the title says, it's not Windows-specific.)

  • Resource observability case study: jemalloc in Android builds
    4 projects | dev.to | 19 Aug 2024
    As a demonstration, I want to measure something that caught my attention months ago—an interesting topic brought up by Jason Pearson: the use of jemalloc as a native memory allocator for Android builds. The initial claim is that this usage brings a reduction in memory usage by optimizing how memory is allocated and deallocated. jemalloc is designed to minimize memory fragmentation and improve performance, particularly in multithreaded applications, making it ideal for resource-intensive builds.
  • Userland Rootkits Are Lame
    5 projects | news.ycombinator.com | 30 Jun 2024
  • Show HN: Comprehensive inter-process communication (IPC) toolkit in modern C++
    2 projects | news.ycombinator.com | 9 Apr 2024
  • Finding memory leaks in Postgres C code
    1 project | news.ycombinator.com | 29 Mar 2024
    jemalloc as well has some handy leak / memory profiling abilities: https://github.com/jemalloc/jemalloc/wiki/Use-Case%3A-Heap-P...
  • Speed of Rust vs. C
    2 projects | news.ycombinator.com | 23 Feb 2024
    The worst memory performance bug I ever saw turned out to be heap fragmentation in a non-GC system. There are memory allocators that solve this like https://github.com/jemalloc/jemalloc/tree/dev but ... they do it by effectively running a GC at the block level

    As soon as you use atomic counters in a multi-threaded system you can wave goodbye to your scalability too!

  • Understanding Mesh Allocator
    2 projects | news.ycombinator.com | 26 Jan 2024
    The linked talk video mentioned they're playing with it in jemalloc and tcmalloc.

    I found this https://github.com/jemalloc/jemalloc/issues/1440 but couldn't find tcmalloc doing similar.

    These guys are aware of mesh and compare against it: https://abelay.github.io/6828seminar/papers/maas:llama.pdf

rust-scudo

Posts with mentions or reviews of rust-scudo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-15.

What are some alternatives?

When comparing jemalloc and rust-scudo you can also consider the following projects:

mimalloc - mimalloc is a compact general purpose allocator with excellent performance.

tbb - oneAPI Threading Building Blocks (oneTBB) [Moved to: https://github.com/oneapi-src/oneTBB]

mimalloc_rust - A Rust wrapper over Microsoft's MiMalloc memory allocator

rpmalloc - Public domain cross platform lock free thread caching 16-byte aligned memory allocator implemented in C

Hoard - The Hoard Memory Allocator: A Fast, Scalable, and Memory-efficient Malloc for Linux, Windows, and Mac.

gperftools - Main gperftools repository

Redis - Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

Mesh - A memory allocator that automatically reduces the memory footprint of C/C++ applications.

OpenSSL - TLS/SSL and crypto library

kafka-go - Kafka library in Go

polars - Dataframes powered by a multithreaded, vectorized query engine, written in Rust

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