contributed by < linjohnss >
GitHub: rcuhashbash
目標
Linux 核心提供一套 Resizable, Scalable, Concurrent Hash Table,名為 rhashtable (見 include/linux/rhashtable.h 及 lib/rhashtable.c),描述於論文〈Resizable, Scalable, Concurrent Hash Tables via Relativistic Programming〉。摘譯 LWN 文章,並佐以原論文,描述 rhashtable 何以落實高效的並行雜湊表,搭配撰寫 Linux 核心模組作為試驗
Relativistic hash tables, part 1: Algorithms
hash table 在 Linux 的應用場景
在 Linux 的 file system 中,利用 hash table 儲存 mount 的 root dentry ,因此 lookup_mount 可以利用 hash_get 取得 mount 的 root dentry