首页|基于主动回收的Linux页缓存限制方法

基于主动回收的Linux页缓存限制方法

扫码查看
Linux操作系统使用页缓存机制来对块设备上的文件进行缓存,页缓存可以无限增大,直到物理内存达到内存水线。在这种情况下,当页缓存使用过多的时候,内核中一些原子性的内存申请会失败,导致一些业务执行延时甚至失败。文章通过对内核中内存管理模块进行改造,对页缓存的申请进行控制,使得页缓存使用有最高限度。如果达到最高限度,新的页缓存申请会替换掉页缓存里旧的页面。
Restriction method of Linux page cache based on active reclaiming
The Linux operating system uses a page cache mechanism to cache files on block devices,and the page cache can be infinitely increased until the physical memory reaches the memory watermark.In this case,when the page cache is used excessively,some atomic memory requests in the kernel may fail,resulting in delayed or even failed.The article modifies the memory management module in the kernel to control the use of page cache,so as to maximize the use of page cache.If the maximum limit is reached,the new page cache application will replace the old pages in the page cache.

Linux operation systempage cacheactive reclaiming

王磊、张波、谢铁民

展开 >

速智达(深圳)通信技术有限公司南京分公司,江苏 南京 211100

Linux操作系统 页缓存 主动回收

2024

无线互联科技
江苏省科学技术情报研究所

无线互联科技

影响因子:0.263
ISSN:1672-6944
年,卷(期):2024.21(24)