On Tue, 21 Jan 2014 18:03:08 +0100, Jarry wrote:

> I would like to use tmpfs for all the package-compilation
> to spare my SSD from too many writing-cycles, but I can not
> guess how much do I need. I'm rather limited with RAM,
> if I use more than 512MB for /var/tmp/portage, my server
> lowers buffers/cache to nearly zero and starts swapping...

Then don't use more than 512MB, I certainly wouldn't use less for the
packages you mention.

> So what do your think? Would it be enought to have 512MB
> for packages like GCC, Apache, MySQL, Sendmail, Bind?
> These are the biggest, rest are much smaller...

Packages that need a particularly large amount of space usually check its
availability at the start of the emerge process. There's nothing to stop
you using tmpfs for the default PORTAGE_TMPDIR and resetting it to
somewhere on your drive for particularly large packages, using
package.env

Put "cat/pkg tmpondisk.conf" in /etc/portage/package.env and
"PORTAGE_TMPDIR=/a/disk/dir" in /etc/portage/env/tmpondisk.conf


-- 
Neil Bothwick

Engineers do it with less resistance.

Attachment: signature.asc
Description: PGP signature

Reply via email to