jlliagre |
02-14-2007 02:19 AM |
Quote:
Originally Posted by syg00
Where's jlliagre when needed ???.
|
I'm here ;)
Quote:
Originally Posted by apolinsky
Though your answer is correct as far as Linux and freebsd goes, it is INCORRECT when examining Solaris.
|
Nope, swap partitions are very similars whatever the Unix variant.
With Linux, while not a real filesystem the swap partition must have a structure which is created with the "mkswap" command. Solaris and probably *BSD have no such requirement.
Quote:
Under Solaris 8, and I assume later revisions also, /tmp is also used as swap space. There is no separate /swap partition.
|
That's the way around. It isn't /tmp that is used as swap space, but swap space that may be used to store temporary files. This is happening only if no more RAM is available.
Quote:
We've been burned more than once at work with people putting large files in /tmp for 'temporary' storage, and having our large E15K slow down significantly.
|
It's curious to hear of such a poor configuration on that class of server. /tmp VM usage can simply be capped to avoid RAM exhaustion with the size=xxx mount option.
Quote:
I've never quite understood the reasoning behind Sun's choice.
|
The reasoning is to have very fast read/write performance for temporary files, by storing them in virtual memory, which is RAM in nominal case, and not on disk.
By the way, this Solaris feature has been implemented later by linux http://wiki.linuxquestions.org/wiki/Tmpfs , so it mustn't be that bad ;)
|