linux 设置 tmpfs 大小

来源:互联网 发布:智能建筑系统集成软件 编辑:程序博客网 时间:2024/06/08 02:46

默认挂载tmpfs的大小,是可用内存的一半。

可以在挂载时加上size选项来指定大小,如:

mount -t tmpfs none /ttt -o size=100M


也可以设置百分比,如:

mount -t tmpfs none /ttt -o size=80%


调整已挂载分区的大小

mount -o remount,size=80% tmpfs /tmp

0 0