把系统临时文件和vivaldi缓存放到内存方法
Tofloor
poster avatar
dreamonly
deepin
2019-12-30 03:19
Author
现在用的SSD最好把临时文件放到内存去,
打开系统盘:/etc/fstab 在下面加一行
tmpfs /home/用户名/.cache/vivaldi/Default tmpfs defaults,noatime,mode=1777,nosuid,size=4096M 0 0

不知道这个方法对不对

把系统临时文件也改到内存:

tmpfs /tmp tmpfs defaults,noatime,mode=1777,nosuid,size=2048M 0 0
Reply Favorite View the author
All Replies
avatar
ghostry
deepin
2019-12-30 04:24
#1
本帖最后由 ghostry 于 2019-12-29 20:45 编辑
  1. tmpfs /tmp tmpfs defaults 0 0
  2. tmpfs /var/tmp tmpfs defaults 0 0
  3. tmpfs /var/cache/apt/apt-fast tmpfs defaults 0 0
  4. tmpfs /var/cache/apt/archives tmpfs defaults 0 0
  5. tmpfs /var/log tmpfs defaults 0 0
Copy the Code

不用限定多大,程序会自动
Reply View the author
avatar
dreamonly
deepin
2019-12-30 04:52
#2
https://bbs.deepin.org/post/187515
不用限定多大,程序会自动

tmpfs /home/用户名/.cache/vivaldi/Default tmpfs defaults 0 0

这样也可以吗,就是把vivaldi浏览器的缓存也转到内存
Reply View the author
avatar
ghostry
deepin
2019-12-30 05:02
#3
本帖最后由 ghostry 于 2019-12-29 21:17 编辑
https://bbs.deepin.org/post/187515
tmpfs /home/用户名/.cache/vivaldi/Default tmpfs defaults 0 0

这样也可以吗,就是把vivaldi浏览器的 ...

也可以,路径自定,随便定.
Reply View the author
avatar
dreamonly
deepin
2019-12-30 05:10
#4
https://bbs.deepin.org/post/187515
也可以,路径自定,随便定.

非常感谢!!!
现在打开网页速度飞快。
Reply View the author
avatar
ghostry
deepin
2019-12-30 05:17
#5
https://bbs.deepin.org/post/187515
非常感谢!!!
现在打开网页速度飞快。

我是直接把 .cache删掉了,改成了link到tmp.全部用内存.
Reply View the author
avatar
dreamonly
deepin
2019-12-30 06:09
#6
https://bbs.deepin.org/post/187515
我是直接把 .cache删掉了,改成了link到tmp.全部用内存.

mpfs /home/用户名/.cache 0 0

我直接这样,好像也没问题,这样和LINK有没有区别
Reply View the author
avatar
ghostry
deepin
2019-12-30 17:50
#7
https://bbs.deepin.org/post/187515
mpfs /home/用户名/.cache 0 0

我直接这样,好像也没问题,这样和LINK有没有区别 ...

这种只有管理账号能用,link那种,普通账号也能做到.

不用纠结这个,都能用.
Reply View the author
avatar
玉箫
deepin
2019-12-30 18:20
#8
看视频卡。要保存图片点击另外保存闪退 。
Reply View the author
avatar
dreamonly
deepin
2019-12-31 06:35
#9
https://bbs.deepin.org/post/187515
看视频卡。要保存图片点击另外保存闪退 。

测试了正常啊,图片可以保存 ,也可以在线看视频
Reply View the author
avatar
dororo2020
deepin
2020-08-28 01:12
#10
https://bbs.deepin.org/post/187515
我是直接把 .cache删掉了,改成了link到tmp.全部用内存.

请问具体是怎样做的?
Reply View the author
avatar
xmu714
deepin
2020-08-28 01:24
#11
没什么必要,SSD也没那么金贵
Reply View the author
avatar
ghostry
deepin
2020-08-29 02:24
#12
https://bbs.deepin.org/post/187515
请问具体是怎样做的?

要从命令行模式 ,删除 文件夹,创建link
Reply View the author
avatar
laxijin
deepin
2020-09-30 23:58
#13
tmpfs:找不到命令
Reply View the author
avatar
laxijin
deepin
2020-09-30 23:59
#14
https://bbs.deepin.org/post/187515
tmpfs:找不到命令

请问什么愿意?
Reply View the author
avatar
laxijin
deepin
2020-10-01 00:20
#15
这个设置一直不会,以前在windows上用过,网页秒开,现在用deeoin不知道怎么设置,麻烦高手给个设置的方法,谢谢。
Reply View the author
avatar
灵兮之
deepin
2020-10-01 00:27
#16
v20上设置还有效吗?
用的机械硬盘,设置系统缓存跟浏览器缓存到内存上,是不是速度就快很多了,而且不用再去清理缓存
Reply View the author
avatar
a18126579337
deepin
2020-10-01 07:18
#17
https://bbs.deepin.org/post/187515
tmpfs:找不到命令

这不是命令,这是叫你修改配置文件.你修改一下上面的配置文件试试.
Reply View the author