# SWAP and TMPFS on Solaris8

**URL:** https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071
**Category:** UNIX for Dummies Questions & Answers
**Created:** [July 24, 2001, 8:28pm UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071 "2001-07-24T20:28:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![andrec](https://community.unix.com/letter_avatar/andrec/32/5_5575768a8748004e209b776fc1b2916d.png) [@andrec](https://community.unix.com/u/andrec)
#### Post date: [July 24, 2001, 8:28pm UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/1 "2001-07-24T20:28:30Z")

</div>

hi,  
With Solaris 8. after I enter df -k, I see 2 lines of SWAP; one is mounted on /var/run while the other is on /tmp.  
I remembered that I set up only 1 swap during the installation. Then, a Solaris Admin book says that the TMPFS fils system is a new feature.  
Can someone please share his/her thoughts about what the TMPFS is and why this creates 2 lines when entering df -k?  
Thanks a lot.

---

<div class="post-metadata">

### Author: ![PxT](https://community.unix.com/user_avatar/community.unix.com/pxt/32/10_2.png) [@PxT](https://community.unix.com/u/PxT)
#### Post date: [July 25, 2001, 1:35pm UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/2 "2001-07-25T13:35:18Z")

</div>

The TMPFS is a filesystem contained completely in RAM. Useful if you have an application that writes or reads lots of temporary data, and performance is critical. Only beneficial if you have plenty of spare memory.

---

<div class="post-metadata">

### Author: ![andrec](https://community.unix.com/letter_avatar/andrec/32/5_5575768a8748004e209b776fc1b2916d.png) [@andrec](https://community.unix.com/u/andrec)
#### Post date: [July 26, 2001, 1:14am UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/3 "2001-07-26T01:14:51Z")

</div>

Thanks for the reply. My question is more about why that the df -k will produce 2 lines about swap, instead of 1.

---

<div class="post-metadata">

### Author: ![LivinFree](https://community.unix.com/user_avatar/community.unix.com/livinfree/32/20_2.png) [@LivinFree](https://community.unix.com/u/LivinFree)
#### Post date: [July 26, 2001, 1:47am UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/4 "2001-07-26T01:47:17Z")

</div>

My guess would be that it is because they are two different mounts... Possibly even two different filesystem types. I don't know much about Solaris operations, but that's what I would reckon...

---

<div class="post-metadata">

### Author: ![PxT](https://community.unix.com/user_avatar/community.unix.com/pxt/32/10_2.png) [@PxT](https://community.unix.com/u/PxT)
#### Post date: [July 26, 2001, 12:24pm UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/5 "2001-07-26T12:24:31Z")

</div>

> [@](#):
>
> Originally posted by andrec  
> Thanks for the reply. My question is more about why that the df -k will produce 2 lines about swap, instead of 1.

Post the output here and we will decode it for you.

---

<div class="post-metadata">

### Author: ![andrec](https://community.unix.com/letter_avatar/andrec/32/5_5575768a8748004e209b776fc1b2916d.png) [@andrec](https://community.unix.com/u/andrec)
#### Post date: [July 26, 2001, 4:00pm UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/6 "2001-07-26T16:00:16Z")

</div>

df -k results below:

# ======================== Filesystem kbytes used avail cap. Mtd. on /dev/dsk/c0t0d0s0 1252895 878583 311668 74% / /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd mnttab 0 0 0 0% /etc/mnttab swap 675912 0 675912 0% /var/run swap 676256 344 675912 1% /tmp /dev/dsk/c0t0d0s7 243127 131 21868 1% /export/home

Again, I specified to use 512MB for my SWAP size.  
Thank you for all the input so far.

---

<div class="post-metadata">

### Author: ![yellowfish](https://community.unix.com/letter_avatar/yellowfish/32/5_5575768a8748004e209b776fc1b2916d.png) [@yellowfish](https://community.unix.com/u/yellowfish)
#### Post date: [July 26, 2001, 6:30pm UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/7 "2001-07-26T18:30:10Z")

</div>

The /var/run File System

check here

> **[Oracle Help Center](https://docs.oracle.com/en/)**
>
> Getting started guides, documentation, tutorials, architectures, and more content for Oracle products and services.

--------------------------------------------------  
A new TMPFS-mounted file system, /var/run, is the repository for temporary "system files" that are  
not needed across system reboots in this Solaris release and future releases. The /tmp directory  
continues to be repository for "non-system temporary files".

Because /var/run is mounted as a memory-based file system rather than a disk-based file system,  
updates to this directory do not cause unnecessary disk traffic that would interfere with systems  
running power management software.

The /var/run directory requires no administration. You may notice that it is not unmounted with the  
umount -a or the umountall command.

For security reasons, /var/run is owned by root.

Hope this help 🆒

---

<div class="post-metadata">

### Author: ![andrec](https://community.unix.com/letter_avatar/andrec/32/5_5575768a8748004e209b776fc1b2916d.png) [@andrec](https://community.unix.com/u/andrec)
#### Post date: [July 26, 2001, 7:00pm UTC](https://community.unix.com/t/swap-and-tmpfs-on-solaris8/139071/8 "2001-07-26T19:00:36Z")

</div>

Thank you. That helps a lot.
