如何在Ubuntu 16.04中成功激活Zswap进行Matlab计算?
条件:成功激活Ubuntu 16.04中的zswap
模块进行Matlab / ….计算
/etc/default/grub
相关部分
... zswap.enabled=1 # NB only change here GRUB_CMDLINE_LINUX="" # NB also tried to have the line here unsuccessfully ...
我尝试激活zswap
并运行sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub /etc/default/grub: line 12: zswap.enabled=1: command not found
我还尝试了zswap
行在GRUB_CMDLINE_LINUX=""
失败的代码。
heynnema回答之后我目前的情况
-
在
/etc/default/grub
有以下内容,它非常有效;dmesg | grep zswaps
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"
-
运行
sudo update-grub
。
它对最大拉姆的影响?
有一些关于它的线程是在池中保存一些页面,等等zswap:如何确定它是否正在压缩交换页面? 然而,没有研究它对计算的最大Ram的影响。
系统:Linux Ubuntu 16.04 64位Linux内核:4.6
Linux内核选项:wl
Matlab:2016a
硬件:Macbook Air 2013-mid
相关主题: 如何启用zswap? , Zswap Arch Linux , zswap:如何确定它是否正在压缩交换页面?
你把你的zswap.enabled
放在了错误的地方。
改变这个:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" zswap.enabled=1
对此:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zswap.enabled=1"
然后sudo update-grub
并reboot
。
如果它不起作用,它可能无法与16.04兼容/兼容。