Linux:Ubuntu:修订间差异
来自康健生活
无编辑摘要 |
|||
| 第4行: | 第4行: | ||
| [[/Ubuntu_19_10|Ubuntu 19.10]] || 示例 || 示例 | | [[/Ubuntu_19_10|Ubuntu 19.10]] || 示例 || 示例 | ||
|} | |} | ||
== 问题 == | |||
ubuntu 卡顿问题,其中一个原因是 ubuntu 使用了 swap 分区,没有最大限度的使用内存。 | |||
{{Hcdiff|/etc/sysctl.conf|<syntaxhighlight lang="javascript"> | |||
################################################################### | |||
# Magic system request Key | |||
# 0=disable, 1=enable all, >1 bitmask of sysrq functions | |||
# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html | |||
# for what other values do | |||
#kernel.sysrq=438 | |||
</syntaxhighlight>|<syntaxhighlight lang="javascript"> | |||
################################################################### | |||
# Magic system request Key | |||
# 0=disable, 1=enable all, >1 bitmask of sysrq functions | |||
# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html | |||
# for what other values do | |||
#kernel.sysrq=438 | |||
vm.swappiness=10 | |||
</syntaxhighlight>}} | |||
== 命令 == | == 命令 == | ||
[[/dpkg|dpkg]] | [[/dpkg|dpkg]] | ||
== Error == | == Error == | ||
[[/add-apt-repository|add-apt-repository]] | [[/add-apt-repository|add-apt-repository]] | ||