摘要: 分析Windows平台下内存管理方面的非实时性因素,提出一种提高Windows实时性的方案。建立虚拟地址和物理地址之间的映射来避免用户和内核之间的地址模式切换。将页面锁定在物理内存中,避免内存的缺页换页操作。改进系统原有的内存分配算法,消除系统对内存操作的不确定性。实验结果表明,该方案能较好地提高Windows内存管理操作的效率,内存操作时间稳定,可实现Windows平台下内存管理操作的实时化。
关键词:
Windows平台,
内存管理,
内核,
实时化,
内存映射,
页面锁定
Abstract: This paper analyzes the factors that affect the real-time property of memory management under Windows platform, and presents a solution to improve the real-time. It works in three aspects: establishing a mapping relationship between virtual address and physical address to avoid the switch between the user mode and kernel mode; locking pages in the physical memory to avoid page missing and page exchanging operation; improving the original algorithm of memory allocation to remove the nondeterministic operations. Experimental results show that this solution is a good way to improve the efficiency of memory management under Windows and maks the use of time in the memory operation steady, improvs the real-time of memory management under Windows platform.
Key words:
Windows platform,
memory management,
kernel,
real-time,
memory mapping,
page locking
中图分类号:
李轩, 江南, 杜承烈. Windows平台下的内存管理实时化研究[J]. 计算机工程, 2013, 39(7): 102-105,122.
LI Han, JIANG Na, DU Cheng-Lie. Research on Real-time Memory Management Under Windows Platform[J]. Computer Engineering, 2013, 39(7): 102-105,122.