sudo sysctl kern.bufcachepercent 来自 Linux 中的 openbsd
在 openBSD 中,我们有以下命令:
sudo sysctl kern.bufcachepercent
这设置了专门用于 HD 缓存的 RAM 百分比。我如何在 Linux Ubuntu 上做到这一点?
或者如何在 RAM 中挂载某个文件夹?
At openBSD we have the command:
sudo sysctl kern.bufcachepercent
This sets the percent of the RAM that will be dedicated to be HD cache. How do I do that at linux Ubuntu?
Or how to mount some folder at RAM?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我的 2 美分:
首先,我认为 Linux 内核中没有与 bufcachepercent 完全对应的东西。无论如何,你可以看看这里: vm.txt 其中有一些关于与 vm 相关的各种参数的解释(我想你想检查“dirty_*”、“vfs_cache_Pressure”,也许还有“swappiness”)。
希望这有帮助 =)
here's my 2 cents:
first of all I don't think there's an exact counterpart for bufcachepercent in Linux kernel. Anyway you can take a look here: vm.txt where there are some explanations on the various parameters related to vm (I think you wanna check "dirty_*", "vfs_cache_pressure" and maybe "swappiness").
Hope this helps =)