Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Devices and File Systems Oracle Solaris 11 Express 11/10 |
1. Managing Removable Media (Overview)
2. Managing Removable Media (Tasks)
3. Accessing Removable Media (Tasks)
4. Writing CDs and DVDs (Tasks)
5. Managing Devices (Overview/Tasks)
6. Dynamically Configuring Devices (Tasks)
7. Using USB Devices (Overview)
9. Using InfiniBand Devices (Overview/Tasks)
11. Administering Disks (Tasks)
12. SPARC: Adding a Disk (Tasks)
13. x86: Adding a Disk (Tasks)
14. Configuring iSCSI Storage Devices With COMSTAR
15. Configuring and Managing the Solaris Internet Storage Name Service (iSNS)
17. The format Utility (Reference)
18. Managing File Systems (Overview)
19. Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)
Creating an Oracle Solaris ZFS File System
How to Create an Oracle Solaris ZFS File System
How to Create a UFS File System
Creating and Mounting a Loopback File System (LOFS)
How to Create and Mount an LOFS File System
20. Mounting and Unmounting File Systems (Tasks)
21. Configuring Additional Swap Space (Tasks)
22. Copying Files and File Systems (Tasks)
A temporary file system (TMPFS) uses local memory for file system reads and writes, which is typically much faster than reads and writes in a UFS file system. TMPFS file systems can improve system performance by saving the cost of reading and writing temporary files to a local disk or across the network. Files in TMPFS file systems do not survive across reboots or unmounts.
If you create multiple TMPFS file systems, be aware that they all use the same system resources. Files created under one TMPFS file system use up space available for any other TMPFS file system, unless you limit TMPFS sizes by using the -o size option of the mount command.
For more information, see the tmpfs(7FS).
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
# mkdir /mount-point
where mount-point is the directory on which the TMPFS file system is mounted.
# mount -F tmpfs [-o size=number] swap mount-point
Specifies the size limit of the TMPFS file system in MB.
Specifies the directory on which the TMPFS file system is mounted.
To set up the system to automatically mount a TMPFS file system at boot time, see Example 19-3.
# mount -v
Example 19-2 Creating and Mounting a TMPFS File System
The following example shows how to create, mount, and limit the size of the TMPFS file system, /export/reports, to 50 MB.
# mkdir /export/reports # chmod 777 /export/reports # mount -F tmpfs -o size=50m swap /export/reports # mount -v
Example 19-3 Mounting a TMPFS File System at Boot Time
You can set up the system to automatically mount a TMPFS file system at boot time 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 at boot time. Because 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 -