On Wed, 28 Apr 2021 23:05:35 +0100, antlists wrote:

> > There have been several tests posted over the years that show that
> > using a tmpfs for TMPDIR doesn't give as much of a gain as you would
> > expect. With NVMe drives, the difference is likely to be even
> > smaller.  
> 
> But that's not the only reason for a tmpfs. I guess the reason tmpfs 
> doesn't necessarily give much gain is because linux caches everything
> so it's quite possible stuff never gets written to disk.

Agreed, but I was only responding to the comment that building on an SSD
was no slower than tmpfs.
 
> And I know gentoo does clean up behind itself, but I use tmpfs so the 
> system cleans up behind it too, and it's got as much room as it needs. 

I can't agree with the second part, a tmpfs has far less space than a
disk. I had a gcc build fail this morning when /tmp filled up. Not
because gcc needs more than I had but because another emerge had failed
and left a G or two in /tmp. You'll always have more disk space than 
RAM - embedded aside.


-- 
Neil Bothwick

Forget the Joneses...I can't keep up with The Simpsons.

Attachment: pgpCEHAcvD2qg.pgp
Description: OpenPGP digital signature

Reply via email to