Mac ram disk¶ Size of RAM disk desired(MB) * 2048 = amount to specify Using the above example, that would be: eg 2GB 2048 * 2048 = 4194304 diskutil partitionDisk `hdiutil attach -nomount ram://8388608` GPT APFS "RAM" 0 # 4GB mac¶ ramdisk¶