Re: [PATCH 13/20] Kbuild, lto: Set TMPDIR for LTO v2

2014-02-18 Thread H. Peter Anvin
On 02/18/2014 06:28 AM, Andi Kleen wrote: > > +ifdef CONFIG_LTO > +# LTO gcc creates a lot of files in TMPDIR, and with /tmp as tmpfs > +# it's easy to drive the machine OOM. Use the object directory > +# instead > +TMPDIR ?= ${objtree} > +export TMPDIR > +endif > + We still prefer $(...) in Mak

[PATCH 13/20] Kbuild, lto: Set TMPDIR for LTO v2

2014-02-18 Thread Andi Kleen
From: Andi Kleen LTO gcc puts a lot of data into $TMPDIR, essentially another copy of the object directory to pass the repartitioned object files to the code generation processes. TMPDIR defaults to /tmp With /tmp as tmpfs it's easy to drive systems to out of memory, because they will compete wi