sudo sysctl kern.bufcachepercent 来自 Linux 中的 openbsd

发布于 2025-01-06 09:51:47 字数 172 浏览 6 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身仙ぐ女味 2025-01-13 09:51:47

这是我的 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 =)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文