Working set size estimation (WSS) is of great significance to improve the efficiency of program executing and memory arrangement in modern operating systems. Previous work proposed several methods to estimate WSS, including self-balloning, Zballoning and so on. However, these methods which are based on virtual machine usually cause a large overhead. Thus, using those methods to estimate WSS is impractical. In this paper, we propose a novel framework to efficiently estimate WSS with eBPF (extended Berkeley Packet Filter), a cutting-edge technology which monitors and filters data by being attached to the kernel. With an eBPF program pinned into the kernel, we get the times of page fault and other information of memory allocation. Moreover, we collect WSS via vanilla tool to train a predictive model to complete estimation work with LightGBM, a useful tool which performs well on generating decision trees over continuous value. The experimental results illustrate that our framework can estimate WSS precisely with 98.5\% reduction in overhead compared to traditional methods.
翻译:工作设定规模估计(WSS)对于提高现代操作系统中程序执行和记忆安排的效率非常重要。先前的工作提出了几种方法来估计 WSS,包括自我球、Zballing等等。然而,这些基于虚拟机器的方法通常会造成很大的间接费用。因此,使用这些方法来估计WSS是不切实际的。在本文件中,我们提出了一个新的框架,以便有效地估计WSS,同时使用电子BPF(扩展的Berke Packet过滤器),这是一种尖端技术,通过连接内核来监测和过滤数据。在电子BPF程序锁定在内核时,我们得到页错误的时间和记忆分配的其他信息。此外,我们通过香草工具收集WSS,以训练一种预测模型来完成与LightGBM的工作,这是一个有用的工具,能够很好地产生持续价值的决策树。实验结果表明,我们的框架可以精确地估计WSS,与传统方法相比,间接费用减少98.5<unk> 。</s>