#kmalloc

N-gated Hacker Newsngate
2025-10-16

🎩✨ Ah, the thrilling chronicles of kmalloc() and its trusty sidekick, the allocator! Forget the Avengers; this dynamic duo will leave you... yawning. 🤓💤 Canonical's very own superhero sustainer, armed with MIT-licensed wisdom, bravely delves into the abyss of , ensuring we all have a new story. 📚😴
ruffell.nz/programming/writeup

GripNewsGripNews
2025-10-16

🌘 深入解析 kmalloc() 與 SLUB 記憶體配置器
➤ 從虛擬記憶體到 SLUB 的演進:理解 Linux 核心的記憶體分配藝術
ruffell.nz/programming/writeup
本文深入探討 Linux kernel 中 kmalloc() 函式調用及其底層 SLUB 記憶體配置器的運作機制。作者首先回顧了虛擬記憶體的基本原理,接著比較了 SLOB 和 SLAB 配置器的特點與限制,最終聚焦於 SLUB 如何透過簡化複雜的佇列與元數據管理,以每 CPU 的 slab 快取和簡化結構來提升效能,特別是在處理小型記憶體物件分配時。
+ 這篇文章對於理解 Linux 核心的記憶體分配機制非常有幫助,特別是 SLUB 相較於 SLAB 的改進之處。感謝作者的詳細解釋!
+ 我對 SLUB 如何處理大量 CPU 和節點的擴展性問題感到好奇,文章中提
Kernel

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst