Cri*_*itu 16
它在文章中说:
这对 Linux 没有影响。man setrlimit 说它曾经只适用于古代版本。
该了setrlimit手册页说:
Run Code Online (Sandbox Code Playgroud)RLIMIT_RSS Specifies the limit (in pages) of the process's resident set (the number of virtual pages resident in RAM). This limit has effect only in Linux 2.4.x, x < 30, and there affects only calls to madvise(2) specifying MADV_WILLNEED.
所以它在2.4.30停止工作。在为2.4.30更新日志说,有关这一点:
Marcelo Tosatti:
o Ake Sandgren:修复 RLIMIT_RSS madvise 计算错误
o Hugh Dickins:从 madvise 中删除 rlim_rss 和此 RLIMIT_RSS 代码。大概是代码误输入了