- 论坛徽章:
- 0
|
内存管理不正常(不释放内存),请教各位大哥
jinyingtao 你好! 我正是这样做的,将maxperm设置为远小于缺省值,并执行严格的maxperm策略(即h 1)。
先看参数的意义:
If percentage of RAM occupied by file pages falls below minperm, VMM steals both file and computational pages
If percentage of RAM occupied by file pages rises above maxperm, VMM steals only file pages
If percentage of RAM occupied by file pages is between minperm and maxperm, VMM will steal only file pages Unless file repaging rate is higher than computational repaging rate
将maxperm设小,可避免这样的情形:当执行大量文件类操作时,文件性内存耗用过多,而计算性内存将不敷使用,从而产生大量的换页操作。而事实上此时文件性内存应作为page-stealer的偷取对象,因为它被重复引用的可能性非常低。
|
|