如何在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-grubreboot

如果它不起作用,它可能无法与16.04兼容/兼容。