安庆

导航

2018年9月19日 #

linux 一种小的性能优化手段

摘要: 在编写内核模块的过程中,我们经常会创建percpu的hash表,比如定义结构如下: struct A { int a; int b; struct hlist_node hlist_node; hash node,用来挂载在hash冲突链上的成员 。。。 } 然后定义一个 A[hash桶的大小],在 阅读全文

posted @ 2018-09-19 09:38 _备忘录 阅读(181) 评论(0) 推荐(0)