Memory access monitoring aims to obtain the memory access behavior of programs and has extremely wide applications in the fields of system software and architecture research. This paper deeply explores various memory access monitoring methods including–signal handling, Userfaultfd, and MPK (Memory Protection Keys), comprehensively tests the performance and scalability of each method, and deeply analyzes the advantages and disadvantages of them. Through the comparative analysis of the evaluation results, the optimal memory access load scenarios for each of the three different memory access monitoring methods are identified. Subsequently, the most suitable memory access monitoring method is selected according to different scenarios, and an innovative memory access monitoring method that integrates UFFD and signal handling is proposed to enhance the overall performance of memory access monitoring. Experimental results show that compared with single methods, the performance of the integrated UFFD and Signal-handing method can be improved by up to 72.37%.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

MEMSEL: Memory Monitoring Strategy Selection in Userspace

  • Lei Song,
  • Ruibo Wang,
  • Zhenwei Wu,
  • Wenzhe Zhang

摘要

Memory access monitoring aims to obtain the memory access behavior of programs and has extremely wide applications in the fields of system software and architecture research. This paper deeply explores various memory access monitoring methods including–signal handling, Userfaultfd, and MPK (Memory Protection Keys), comprehensively tests the performance and scalability of each method, and deeply analyzes the advantages and disadvantages of them. Through the comparative analysis of the evaluation results, the optimal memory access load scenarios for each of the three different memory access monitoring methods are identified. Subsequently, the most suitable memory access monitoring method is selected according to different scenarios, and an innovative memory access monitoring method that integrates UFFD and signal handling is proposed to enhance the overall performance of memory access monitoring. Experimental results show that compared with single methods, the performance of the integrated UFFD and Signal-handing method can be improved by up to 72.37%.