- 论坛徽章:
- 4
|
5可用积分
本帖最后由 chishanmingshen 于 2013-01-21 11:15 编辑
struct kmem_list3 {
struct list_head slabs_partial; /* partial list first, better asm code */
struct list_head slabs_full;
struct list_head slabs_free;
unsigned long free_objects;
unsigned int free_limit;
unsigned int colour_next; /* Per-node cache coloring */
spinlock_t list_lock;
struct array_cache *shared; /* shared per node */<------------在各个node之间共享,这个不会导致性能问题?
struct array_cache **alien; /* on other nodes */
unsigned long next_reap; /* updated without locking */
int free_touched; /* updated without locking */
};
请教这个shared机制, 这个字段上的items如何生成/使用/释放!
谢谢! |
|