您的位置:首页 > 运维架构 > Linux

2017_12_06-linux_memory_as_disk

2017-12-06 15:18 435 查看
Use memory as disk in Linux

2017_12_06

In Linux, it’s very easy to use part of memory as disk

to speed up IO operations.

make mount point

sudo mkdir /mnt/ramdisk


mount

two kinds of filesystem can be used,
tmpfs
and
ramfs
,

tmpfs
is safer.

sudo mount -t tmpfs -o size=32G tmpfs /mnt/ramdisk/


use
rsync
to copy files and show progress

rsync -a --info=progress2 macOS/ /mnt/ramdisk/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux mount