Re: Moving /tmp to tmpfs makes it useless
In data Friday 25 May 2012 11:39:07, Josselin Mouette ha scritto:
> Le vendredi 25 mai 2012 à 11:11 +0200, Salvo Tomaselli a écrit :
> > You seem to forget that memory is not an unlimited resource, the system
> > might need it for other things, and in that case a large tmpfs causes
> > severe slowdown (and even complete freeze).
> Then increase your swap size.
I've never seen an almost full swap partition.
But the lack of memory has forced me to do several hardware resets
nevertheless. And somehow the OOM killer was not even triggered, i kept ending
up with a system where i had a working shell but could not run certain
commands (such as kill), but i could see the output of "free" for example.
> When you run out of swap, the system fills memory with things that could
> be swapped out, and has to reduce the buffer cache.
> Which then gives poor performance, regardless of the filesystem
> your /tmp is mounted on.
True, an insufficient swap is a cause of problems too. Not the only one tho.