Date: Tue, 6 Nov 2018 13:05:11 -0800 From: Andrew Morton Subject: Re: [PATCH v8 1/4] vmalloc: Add __vmalloc_node_try_addr function Message-Id: <20181106130511.9ebeb5a09aba15dfee2f7f3d@linux-foundation.org> In-Reply-To: <20181102192520.4522-2-rick.p.edgecombe@intel.com> References: <20181102192520.4522-1-rick.p.edgecombe@intel.com> <20181102192520.4522-2-rick.p.edgecombe@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: Rick Edgecombe Cc: jeyu@kernel.org, willy@infradead.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-hardening@lists.openwall.com, daniel@iogearbox.net, jannh@google.com, keescook@chromium.org, kristen@linux.intel.com, dave.hansen@intel.com, arjan@linux.intel.com List-ID: On Fri, 2 Nov 2018 12:25:17 -0700 Rick Edgecombe wrote: > Create __vmalloc_node_try_addr function that tries to allocate at a specific > address without triggering any lazy purging. In order to support this behavior > a try_addr argument was plugged into several of the static helpers. Please explain (in the changelog) why lazy purging is considered to be a problem. Preferably with some form of measurements, or at least a hand-wavy guesstimate of the cost. > This also changes logic in __get_vm_area_node to be faster in cases where > allocations fail due to no space, which is a lot more common when trying > specific addresses.