Limiting the size of Solaris tmpfs file systems


I had an application go nuts a week or two ago, and it filled up /tmp on one of my Solaris 10 hosts. Since /tmp is an in memory file system, you can only imagine the chaos this caused. :( To ensure that this never happens again, I modified the tmpfs entry in /etc/vfstab to limit tmpfs to 1GB in size:

$ grep ^swap /etc/vfstab

swap - /tmp tmpfs - yes size=1024m

That will teach that pesky application. :)

This article was posted by Matty on 2007-04-01 16:57:00 -0400 -0400