@amadaluzia I wish it was usable from #rustlang land. We have considered it for #sydbox, but then decided to go with #mimalloc's secure feature which was readily avaible in #rustlang. Kudos for the great allocator though!
Die flotte Cache- und In-Memory-Datenbank Pogocache tritt als schnellere Alternative zu Memcached an. Die neue Version 1.2 tauscht den Mechanismus zur Speicherallokation: Ab sofort kommt ein von Microsoft entwickeltes System zum Einsatz.#Cache #In-Memory-Datenbank #Mimalloc #Pogocache
Pogocache 1.2 wechselt zu Mimalloc - LinuxCommunity
Pogocache 1.2 wechselt zu Mimalloc - LinuxCommunity

Die flotte Cache- und In-Memory-Datenbank Pogocache tritt als schnellere Alternative zu Memcached an. Die neue Version 1.2 tauscht den Mechanismus zur Speicherallokation: Ab sofort kommt ein von Microsoft entwickeltes System zum Einsatz. Mimalloc ersetzt die von C angebotene Funktion „malloc()“, die einen Speicherbereich reserviert. Das intelligentere Mimalloc geht jedoch flotter zu Werke – und zwar sowohl bei Single- als auch Multithreading-Aufgaben. Aus diesem Grund wechselt Pogocache 1.2 standardmäßig zu Mimalloc. Wem diese Maßnahme nicht gefällt, kann Mimalloc bei Übersetzung der Caching-Software abschalten (Parameter „–allocator=stock“) oder gegen Jemalloc tauschen („.–allocator=jemalloc“). Letztgenannter Speicherallokator wird allerdings seit dem 2. Juni nicht mehr aktiv weiterentwickelt. Daher sollte man ihn nur mit guten Gründen anknipsen. Pogocache 1.2 bringt noch drei weitere kleinere Neuerungen mit. Im Einzelnen kennt die Software das „MONITOR“-Kommando, nutzt standardmäßig 4096 Shards für alle Threads und unterstützt statische Builds gegen die Musl-Bibliothek.

LinuxCommunity
🌗 Default musl allocator 拖慢效能,建議替換
➤ 揭開 musl 預設配置器效能瓶頸的真相
https://nickb.dev/blog/default-musl-allocator-considered-harmful-to-performance/
作者發現使用 musl C 函式庫時,預設的記憶體配置器(allocator)在多執行緒環境下效能顯著下降,甚至造成 7 倍的減慢。透過替換為 mimalloc 或 jemalloc 等配置器,可大幅改善效能。儘管 musl 在建立靜態執行檔方面有優勢,但在效能敏感的應用程式中,替換預設配置器是個值得採取的步驟,即使目前不是 musl 目標環境。
+ 這篇文章深入探討了 musl 預設配置器的問題,替換成 mimalloc 的建議很有用。我自己的專案也遇到類似情況,換了之後效能改善很多。
+ 雖然我目前專案不是用 musl,但瞭解這個潛在問題很重要。感謝作者詳細的分析和實作建議。
#效能 #musl #allocator #Rust #mimalloc
Default musl allocator considered harmful (to performance)

In a real world benchmark, the default musl allocator caused a 7x slowdown compared to other allocators. I recommend all Rust projects immediately swap to a different allocator in a musl environment.

nickb.dev
mimalloc のメモリ管理 - Qiita

Microsoft の mimalloc は面白い割り切り方で、小さいソースコードで高速なアロケータを実装しています。確保するメモリブロックのサイズを、 Small (~8KiB), Large …

Qiita
Announcing #sydbox 3.21.0 with Trusted Path Execution (TPE) sandboxing and stricter symlink handling. Key updates: improved umask handling honouring POSIX ACLs, new sidechannel mitigations, SafeSetID improvements, better symlink handling, and upgraded #mimalloc library. We've also published our #CTF profile for transparency. #sydbox is a rock-solid user-space #kernel to #sandbox apps on #Linux >=5.19 written in #rustlang: https://is.gd/iOWnNi

#mimalloc is an efficient #malloc implementation.

mimalloc is a small and memory allocator that performs better than many other allocators. mimalloc's implementation is small, while still implementing clever techniques to improve locality and thread safety. mimalloc is eager to release pages to the system, reducing memory fragmentation. mimalloc supports a secure mode which protects against heap exploits.

Website 🔗️: https://github.com/microsoft/mimalloc

#free #opensource #foss #fossmendations #programming

GitHub - microsoft/mimalloc: mimalloc is a compact general purpose allocator with excellent performance.

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

GitHub