You can set up the system to automatically mount a TMPFS file system when it boots by adding an /etc/vfstab entry. The following example shows an entry in the /etc/vfstab file that mounts /export/test as a TMPFS file system when the system boots. Since the size=number option is not specified, the size of the TMPFS file system on /export/test is limited only by the available system resources.
swap - /export/test tmpfs - yes -
For more information on the /etc/vfstab file, see Field Descriptions for the /etc/vfstab File.