Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbbGNVYI (ORCPT ); Tue, 14 Jul 2015 17:24:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42375 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbbGNVYG (ORCPT ); Tue, 14 Jul 2015 17:24:06 -0400 Date: Tue, 14 Jul 2015 14:24:04 -0700 From: Andrew Morton To: David Rientjes Cc: Mikulas Patocka , Mike Snitzer , "Alasdair G. Kergon" , Edward Thornber , Vivek Goyal , linux-kernel@vger.kernel.org, linux-mm@kvack.org, dm-devel@redhat.com, Linus Torvalds Subject: Re: [PATCH 2/7] mm: introduce kvmalloc and kvmalloc_node Message-Id: <20150714142404.30f6a2255f5bd72c5b332279@linux-foundation.org> In-Reply-To: References: <20150707144117.5b38ac38efda238af8a1f536@linux-foundation.org> <20150708161815.bdff609d77868dbdc2e1ce64@linux-foundation.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 18 On Tue, 14 Jul 2015 14:13:16 -0700 (PDT) David Rientjes wrote: > There's a misunderstanding in regards to the comment: __GFP_NORETRY > doesn't turn direct reclaim or compaction off, it is still attempted and > with the same priority as any other allocation. This only stops the page > allocator from calling the oom killer, which will free memory or panic the > system, and looping when memory is available. include/linux/gfp.h says * __GFP_NORETRY: The VM implementation must not retry indefinitely. Can you suggest something more accurate and complete which we can put there? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/