通过增强的页面浏览器减少较小的页面错误开销
Reducing Minor Page Fault Overheads through Enhanced Page Walker
摘要:
应用程序虚拟内存占用量在从服务器到智能手机的所有系统中迅速增长。为了满足这一不断增长的需求,系统集成商正在整合更大量的主存,从而重新考虑存储管理。在当前的系统中,每当应用程序访问没有被物理页支持的虚拟内存区域时,应用程序产生页错误异常。随着应用程序内存占用的增加,它们会引发越来越多的小故障。每个小故障的处理可能需要几千个CPU周期,并阻塞应用程序,直到操作系统找到一个空闲的物理帧。当这些页面错误出现的频率很高并且分布在应用程序运行时,它们可能会对性能造成损害。具体来说,延迟分配引起的小页面错误越来越多地影响应用程序性能。我们的几个工作负载的评估表明,由于小故障高达29%的执行时间的开销。在本文中,我们建议通过硬件,软件协同设计的方法来缓解这个问题。具体来说,我们首先建议并行化内核页面分配的部分运行在一个单独的线程的故障时间之前。然后,我们提出了轻微故障卸载引擎(MFOE),每核硬件加速器轻微故障处理。MFOE配备有预分配的页帧表,它使用该页帧表来服务页错误。在发生页面错误时,MFOE从该表中选取预先分配的页面帧,在TLB中为其创建条目,并更新页面表条目以满足页面错误。预分配帧表由后台内核线程周期性地刷新,该后台内核线程还更新内核存储管理数据结构。我们评估这个系统中的gem5架构模拟器与修改后的Linux内核。我们的研究结果表明,MFOE将平均关键路径故障处理延迟提高了33倍。
英文摘要:
Application virtual memory footprints are growing rapidly in all systems from servers down to smartphones. To address this growing demand, system integrators are incorporating ever larger amounts of main memory, warranting rethinking of memory management. In current systems, applications produce page fault exceptions whenever they access virtual memory regions which are not backed by a physical page. As application memory footprints grow, they induce more and more minor faults. Handling of each minor fault can take few 1000's of CPU-cycles and blocks the application till OS finds a free physical frame. These page faults can be detrimental to the performance, when their frequency of occurrence is high and spread across application run-time. Specifically, lazy allocation induced minor page faults are increasingly impacting application performance. Our evaluation of several workloads indicates an overhead due to minor faults as high as 29% of execution time. In this paper, we propose to mitigate this problem through a hardware, software co-design approach. Specifically we first propose to parallelize portions of the kernel page allocation to run ahead of fault time in a separate thread. Then we propose the Minor Fault Offload Engine(MFOE), a per-core HW accelerator for minor fault handling. MFOE is equipped with pre-allocated page frame table that it uses to service a page fault. On a page fault, MFOE picks a pre-allocated page frame from this table, makes an entry for it in the TLB, and updates the page table entry to satisfy the page fault. The pre-allocation frame tables are periodically refreshed by a background kernel thread, which also updates the kernel memory management data-structures. We evaluate this system in the gem5 architectural simulator with a modified Linux kernel. Our results show that MFOE improves the average critical-path fault handling latency by 33x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。