Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page cache limit 特性为什么只回收文件页不回收匿名页 #108

Closed
huhaipeng opened this issue Nov 3, 2021 · 4 comments
Closed

Comments

@huhaipeng
Copy link

看了page cache limit的代码,我有一个疑问,为什么只回收文件页不回收匿名页?我觉得匿名页也是可以根据系统需要做一定比例的回收。还是说我的理解有问题,回收匿名页会有什么坑吗?

@huhaipeng
Copy link
Author

@honkiko @hzlzh @oilbeater @yyx

@joeytsq
Copy link
Collaborator

joeytsq commented Mar 23, 2022

@zhipingdu111

@204184251HQG
Copy link

因为匿名页需要swap,比较耗时,相比文件映射,会触发大量io

@huhaipeng
Copy link
Author

因为匿名页需要swap,比较耗时,相比文件映射,会触发大量io

照抄官方文档有意思?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@huhaipeng @204184251HQG @kaixuxiakx @joeytsq and others