使用内存磁盘加速linux

将~/.cache和~/.mozilla和/tmp挂在到内存磁盘上,可以显著提高chrome和firefox的运行速度

在/etc/fstab中加入:

1 tmpfs /home/max/.cache tmpfs mode=1777,noatime,user 0 0 
2 tmpfs /home/max/.mozilla tmpfs mode=1777,noatime,user 0 0 
3 tmpfs /tmp tmpfs defaults,user 0 0

使用命令:

1 mount -a

或者重启系统即可生效,可以使用命令df -h观察内存磁盘的占用情况。

原文地址:https://www.cnblogs.com/huazi/p/2685552.html