macOS内存盘

新建一个16G的Ramdisk on macOS

1
diskutil erasevolume HFS+ "RD" `hdiutil attach -nomount ram://$((16*2097152))`