[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52FD9B0A.8030309@zytor.com>
Date: Thu, 13 Feb 2014 20:26:50 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Andi Kleen <ak@...ux.intel.com>, linux-kernel@...r.kernel.org
CC: linux-kbuild@...r.kernel.org, x86@...nel.org
Subject: Re: [PATCH 12/17] Kbuild, lto: Set TMPDIR for LTO
On 02/08/2014 12:01 AM, Andi Kleen wrote:
> 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 with the already high anonymous
> memory consumption of the wpa LTO pass.
>
> When LTO is set always set TMPDIR to the object directory. This could
> be slightly slower, but is far safer and eliminates another parameter
> the LTO user would need to set manually.
>
> I made it conditional on LTO for now.
I think this really ought to use ?= so it doesn't override a TMPDIR
explicitly set by the user.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists