gorman_book
New_Worms
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mlock函数的2.4内核实现
Linux可以通过系统调用mlock()锁住给定地址范围的内存。由sys_mlock()=>do_mlock()函数实现。 1、创建VMA. 2、设置VM_LOCKED. 3、make_pages_present()函数保证所有的页都在内存中。 与之相对应的解锁函数: munlock()由sys_munlock实现。 与之类似的一对函数: mlockall()和munlockall()。只不过mlockall()实现对线程内所有的vma的锁定。 ...原创 2020-05-22 06:36:51 · 927 阅读 · 0 评论 -
第二章 描述物理内存(Describing Physical Memory)
This chapter describes the structrures used to keep account of memory banks(nodes), pages and flags that affect VM behavior. Node: typedef struct pglist_data { ____zone_t node_zones[MAX_NR_ZONES];...原创 2020-06-01 06:10:59 · 310 阅读 · 0 评论
分享