Sometimes using a RAM disk makes sense. I haven’t tested these commands with a recent OS, but here are the steps. Run the following commands to setup a Ram Disk, the disk will not be recreated after bootup:
mkramdisk 16384 (blocks of 512 B = 8 MB)
ls -l /dev | grep ram
mkfs -V jfs /dev/ramdiskx
mkdir /ramdiskx
mount -V jfs -o nointegrity /dev/ramdiskx /ramdiskx
To remove the RAM filesystem:
unmount /ramdiskx
rmramdisk /dev/ramdiskx