>I have a problem on one of our servers where user keep filling up the
>tmpfs partition /tmp. In doing so swap inevitably runs out. I am
>therefore thinking to make these two as different partitions: swap to be
>mounted under /swap and /tmp as an ordinary ufs filesystem for temporary
>Is this a viable solution? Does anybody see any problems with this?
You can do that, but consider that having /tmp as tmpfs (swap based)
filesystem has the following pros/cons:
PRO: swap & tmp will both run out *later*, rather than one running out
and the other still having space.
CON: a runaway file writing process will kill the system
The "CON" can be fixed by limiting tmpfs to a certain size with the
"size=" mount option.
And remember, a overflowing /tmp is no fun in any case.
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.