在 2023/3/20 上午4:32, Luis Chamberlain 写道: > On Tue, Mar 14, 2023 at 10:46:28AM +0800, haoxin wrote: >> All these series looks good to me and i do some test on my virtual machine >> it works well. >> >> so please add Tested-by: Xin Hao . >> >> just one question, if tmpfs pagecache occupies a large amount of memory, how >> can we ensure successful memory reclamation in case of memory shortage? > If you're disabling swap then you know the only thing you can do is > unmount if you want to help the VM, otherwise the pressure is just > greater for the VM. Un, what i mean is can we add a priority so that this type of pagecache is reclaimed last ? Instead of just setting the parameter noswap to make it unreclaimed, because if such pagecache which occupy big part of memory which can not be reclaimed, it will cause OOM. > > Luis