默认情况下,我在 Ubuntu 中有 250MB 的交换空间,我想将其扩展到更大的大小。我需要 800MB,我认为这足以打开多个应用程序而不必达到当前的交换限制。我希望有一个人可以帮助我。
条件:zswap在Ubuntu 16.04中为Matlab/....计算成功激活模块
相关部分/etc/default/grub
...
zswap.enabled=1 # NB only change here
GRUB_CMDLINE_LINUX=""
# NB also tried to have the line here unsuccessfully
...
Run Code Online (Sandbox Code Playgroud)
我尝试激活zswap并运行sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
/etc/default/grub: line 12: zswap.enabled=1: command not found
Run Code Online (Sandbox Code Playgroud)
我还尝试了zswapline 之后的代码,GRUB_CMDLINE_LINUX=""但未成功。
在 中有以下内容/etc/default/grub,它的工作方式不特定;dmesg | grep zswaps返回一些东西
# https://wiki.archlinux.org/index.php/Zswap
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lzo"
Run Code Online (Sandbox Code Playgroud)运行sudo update-grub。
有一些关于它正在池中保存一些页面的线程,等等zswap:如何确定它是否正在压缩交换页面? 但是,没有研究它对计算的最大 Ram 的影响。 …