Would it work to write such temp files to a tmpfs
Would it work to write such temp files to a tmpfs
Posted Mar 11, 2014 15:01 UTC (Tue) by Wol (subscriber, #4433)In reply to: A discussion between database and kernel developers by mel
Parent article: A discussion between database and kernel developers
For example, I run gentoo. With 16Gb ram, I have (iirc) two 32Gb swap partitions (overkill, I know :-). I also have /var/tmp/portage mounted as a 20Gb tmpfs. I doubt I ever spill into swap while "emerge"ing an update, but I can leave it all to the OS to handle without worrying about it.
With PostgreSQL, all a user would need to do would be to add more ram, and the same thing would apply - if it fits in ram it stays in ram, if it doesn't then swap gets involved - but it would have to get involved anyway under any relevant scenario.
Cheers,
Wol
