首页 | 本学科首页   官方微博 | 高级检索  
     

Linux内核伙伴系统分析
引用本文:薛峰. Linux内核伙伴系统分析[J]. 计算机系统应用, 2018, 27(1): 174-179
作者姓名:薛峰
作者单位:安徽师范大学 数学计算机科学学院, 芜湖 241002
摘    要:本文针对Linux内核实现的伙伴系统进行了抽象分析,并通过实例演示了算法的执行过程. 分析了用于物理地址空间管理的三级数据结构及其关系. 在此基础上,详细描述了用于分配和回收页框的伙伴算法. 对于待回收的内存块而言,计算其伙伴的索引及合并内存块的索引是回收操作的关键,讨论了相关计算方法的几条结论并予以证明.

关 键 词:Linux内核  内存管理  伙伴算法  伙伴系统
收稿时间:2017-04-16
修稿时间:2017-05-02

Buddy System Analysis in Linux Kernel
XUE Feng. Buddy System Analysis in Linux Kernel[J]. Computer Systems& Applications, 2018, 27(1): 174-179
Authors:XUE Feng
Affiliation:School of Mathematics & Computer Science, Anhui Normal University, Wuhu 241002, China
Abstract:The buddy system implemented in the Linux kernel is studied, and the process of buddy algorithm is demonstrated with examples. There are three levels of data structure dedicated to manage page frames in physical address space. Firstly, these data structures and their relationships are presented. Then, the buddy algorithm used to allocate and deallocate page frames is described in detail. As far as a memory block to be deallocated is concerned, how to calculate the index of its buddy and coalesced memory block is the key point of deallocating operation. Several conclusions pertaining to this calculation are dealt with and proved.
Keywords:Linux kernel  memory management  buddy algorithm  buddy system
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号