首页> 外国专利> Approach for de-fragmenting physical memory by grouping kernel pages together based on large pages

Approach for de-fragmenting physical memory by grouping kernel pages together based on large pages

机译:通过基于大页面将内核页面分组在一起来对物理内存进行碎片整理的方法

摘要

An approach for de-fragmenting physical memory generally involves grouping kernel pages together based on large pages. The de-fragmentation procedure is triggered, such as by a kernel page-freelist being empty. The first user page from a user page-freelist is selected, marked as a kernel page (e.g., by setting a P_KERNEL bit), added to the kernel page-freelist, and then the large page in which the selected page is identified. Starting with the first small page within the large page, the small pages are processed by the de-fragmentation procedure, resulting in as many small pages as possible being marked as kernel pages and then added to the kernel page-freelist. Later, when a large page is coalesced, the number of kernel pages that must be relocated within the large page being coalesced is reduced or eliminated as a result of the de-fragmentation of the physical memory.
机译:用于对物理内存进行碎片整理的方法通常涉及基于大型页面将内核页面分组在一起。例如通过内核页面空闲列表为空来触发碎片整理过程。从用户页面空闲列表中选择第一个用户页面,将其标记为内核页面(例如,通过设置P_KERNEL位),添加到内核页面空闲列表中,然后在其中识别所选页面的大页面。从大页面中的第一个小页面开始,小页面将通过碎片整理过程进行处理,从而导致将尽可能多的小页面标记为内核页面,然后添加到内核页面空闲列表中。后来,当合并一个大页面时,由于物理内存的碎片整理,减少了或消除了必须在合并的大页面内重新定位的内核页面的数量。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号