Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3183916imd; Mon, 29 Oct 2018 03:09:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5fqD/KdFbqnkPs9wFoidS+GMktpzlm4R/jbnX/rKAr6iVCXumxba0BUmLJE6zuHh/uw4Zhf X-Received: by 2002:a17:902:930a:: with SMTP id bc10-v6mr13983005plb.17.1540807791387; Mon, 29 Oct 2018 03:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540807791; cv=none; d=google.com; s=arc-20160816; b=b7eQkBvrBQeqZgbV/Z3H4wv8gfTAilrP0Nu2dMm1i7yR/ZwJU/TPNdO0mkN1AMyjru FXeAb08RlVbpFxv0c0N2YFd7wthtgDgaDnVwLgUMwGPrsuEglLA1a0gkshmlvN+j4qgA e/RBqM+sIk+Z8xy9oG4rYH5ts7ZliXVOPgh0/UwMd6XWQ4TRk91XhvJFXK1eEv/OJZqq douUdcJOL8EDsublQ7+D5NUot8AgcuzSAWNV5mkBDZB0XaAsitsOl2mOeQBGt3T6L6IR xWymueK3X+OhyBIOi7tnUviHePxA44ZoBMbgpdypXuYtv36eyLYULyJRJ+af1HFjnxVc v+ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fdHrimEpnn7+nZXrCeeYU6gLxti2avEsAhqbRSIC0D0=; b=bXa5oEwieMFuzFQPg2gttiAY07mPWYbRrXL2DFuUEIVlodY0BF+x2ErwGEQ9X5S7q0 l3fdU2QqG/957+EhKq4jZlG2EYeMoBEqKKm57sOg1plW4yvgV56ULoYC+/nqozckLr83 dRsZdfN4j+LI62w6ne6ZJtxhFCV58vMBbLSup8EVRPjgLMZjThmQ86fyIxf6wUxSOqrb YCXPcX+3hetSjrbke2SY6FNW2CuhFKVjrrQz1X0YHOiYBF6VGa/A0kMzcA7zzlmCwzih L4uA+o++mv0eBUq/5bekSyon7Ms7JjVXgRyzUZhrduefBOVwQZNFvIqyTcv+uKBxj0TP vVxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6-v6si5279873plh.329.2018.10.29.03.09.36; Mon, 29 Oct 2018 03:09:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729854AbeJ2S4g (ORCPT + 99 others); Mon, 29 Oct 2018 14:56:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:60014 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729628AbeJ2S4f (ORCPT ); Mon, 29 Oct 2018 14:56:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 657A8AEB1; Mon, 29 Oct 2018 10:08:35 +0000 (UTC) Date: Mon, 29 Oct 2018 11:08:34 +0100 From: Michal Hocko To: Balbir Singh Cc: Andrew Morton , Mel Gorman , Vlastimil Babka , David Rientjes , Andrea Argangeli , Zi Yan , Stefan Priebe - Profihost AG , "Kirill A. Shutemov" , linux-mm@kvack.org, LKML , Andrea Arcangeli , Stable tree Subject: Re: [PATCH 1/2] mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings Message-ID: <20181029100834.GG32673@dhcp22.suse.cz> References: <20180925120326.24392-1-mhocko@kernel.org> <20180925120326.24392-2-mhocko@kernel.org> <20181029051752.GB16399@350D> <20181029090035.GE32673@dhcp22.suse.cz> <20181029094253.GC16399@350D> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181029094253.GC16399@350D> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 29-10-18 20:42:53, Balbir Singh wrote: > On Mon, Oct 29, 2018 at 10:00:35AM +0100, Michal Hocko wrote: [...] > > These hugetlb allocations might be disruptive and that is an expected > > behavior because this is an explicit requirement from an admin to > > pre-allocate large pages for the future use. __GFP_RETRY_MAYFAIL just > > underlines that requirement. > > Yes, but in the absence of a particular node, for example via sysctl > (as the compaction does), I don't think it is a hard requirement to get > a page from a particular node. Again this seems like a deliberate decision. You want your distributions as even as possible otherwise the NUMA placement will be much less deterministic. At least that was the case for a long time. If you have different per-node preferences, just use NUMA aware pre-allocation. > I agree we need __GFP_RETRY_FAIL, in any > case the real root cause for me is should_reclaim_continue() which keeps > the task looping without making forward progress. This seems like a separate issue which should better be debugged. Please open a new thread describing the problem and the state of the node. -- Michal Hocko SUSE Labs