Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp560065ybb; Wed, 1 Apr 2020 05:34:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtodjI7KjBGkouNgQeCvB4r6lnRy/QbpBHVAPu9vJPT6uQwV5XbAn8MY/HRChroVUYVLOp2 X-Received: by 2002:a9d:68d0:: with SMTP id i16mr16287283oto.291.1585744482767; Wed, 01 Apr 2020 05:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585744482; cv=none; d=google.com; s=arc-20160816; b=TcrDRVfTi7/WbG836Z3e1/2RoJOuFGLufu9gpBVoJQPROUUnGYz3379UAMYjyN3h10 mAtb1SEltvGSkqF6riHN8BKwxWq6ScwDd9nnN59cRk64fr8wI9NoZmWAAletqoZe59/Q D1MgegwI1rV+wNa+qecf+OVcwKQLv8VJ5FubOtntsOoxe9lGp+3cROc6Dq9EW1HYs9Mu CQ6ZzhbQ/5Fiaep9/Rb2CdM/kuAGQDZDaIhT5TeRvaxmHygQDJdDEgdYApv2WhMs5gC7 z6/mJbq1lv4G2IsiTLUFRLGb3jQU3oZnNHmC5tgdvFHwdVaAM8y+hwf+6VXwHNkrqmBH HYqA== 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:date:from:dkim-signature; bh=8L1/PQnaYBXbzEXUweVQSVAcSQPDyAlUiX0T3JYuuFY=; b=FYZp7TVO/gBGuXkiPewXF69QaoMWThKhV3wG+BJBy7Zy+0HMANazQs/e5ZHfRQmrz9 0V486GAFiPSjWiNbgPTTjBnP1hd5+pcOF1We4zWDPZTxhzncmK2eZA8sbFIAHiRRCjcX U2xbcgf4p8ZRKPF2jpdk6/HBRYM+8nXRNOkSVXc3IqRx0Vn+rUFd1tICLaUsN+11kMss EmeXUSf694oo6E6nBSAbN3Q8wzKU4F7tLTmhn32aQkj1BijMRfSUlmyZkkbICxWdqO9c 6B20mQhQqLHUAJpI4uK3FZNxx5yhH1ezGH9OpNtHFjxfKHFnGWlBV6U2Ua6ZU9ZTY/gb 7U3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WTj9rUoG; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si348022otk.29.2020.04.01.05.34.29; Wed, 01 Apr 2020 05:34:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WTj9rUoG; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732459AbgDAMcg (ORCPT + 99 others); Wed, 1 Apr 2020 08:32:36 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33931 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732166AbgDAMcf (ORCPT ); Wed, 1 Apr 2020 08:32:35 -0400 Received: by mail-lj1-f195.google.com with SMTP id p10so25316540ljn.1; Wed, 01 Apr 2020 05:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8L1/PQnaYBXbzEXUweVQSVAcSQPDyAlUiX0T3JYuuFY=; b=WTj9rUoGT58FPH1IwytfIF8RhdaoHlpu/RcEVNmQlRH2NJFfn6hoxF+2xB1d56SnnK SkZwxfmiR21dCYC/Sy0hQbd5OKqPU+IUF9zvQc7vgtNIvWKf2sdBlX27FQf4V7qxpcZ3 d3RiayaUKlnU4Mc3IsTfY4R3V3tBt2+eZO/2R1JF4DRFe1aoIGa/yjgShd1KHrB0yhLZ gGryc5zPaSm6VmCTI/+DxVzJLIRvIPtkhvMua38Ja2OCEWr9HRbdCjEC9fq+xL9iakwh g0JwFYpEPuZUxT4aukz2BGVcSXXjoqCUhK/pP5qmDKtjccjgX0+h6jFrJYTqNMR3YynL +PvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8L1/PQnaYBXbzEXUweVQSVAcSQPDyAlUiX0T3JYuuFY=; b=Xk1agpHaHe9ZuVohmLsAVZBf70RHC0Nvt7sHDD3Tnc3Yg/MHb42n2lu7QjuG6WMmr6 DCltfY5zhhWZnKJxmi/XZdDeHURITuCe5T/VgUye5Q1beob1y8YZ4KpRKjpfQhjtJY8h q0ozzEaShsQZ06phhb6Lt/SBeB/M+IBo27kWMwAzcV1XDYtMX4XNPktICvdkbXBAIjkf w/pMF1p+wlx1BLczPEB62YZ246Yo8SXiVUkRF/wJdZFFHq/yCiHbFjP22Aw5jNT95sou hylU2SXDSreKR1lQCLuUnrzFJttzwMmzqZJQ1wFEnlDGyPeYtLsZe2rsuU8Ur41XFt/6 NJKg== X-Gm-Message-State: AGi0PuZ/aw6XZRRXg85nCavXnwcUaP2Rd8zJEpbCKx8Go4wb+wnDWDq6 eSXg2aGQgJceOvQUUAH50uw= X-Received: by 2002:a05:651c:1a5:: with SMTP id c5mr13087568ljn.113.1585744353370; Wed, 01 Apr 2020 05:32:33 -0700 (PDT) Received: from pc636 (h5ef52e31.seluork.dyn.perspektivbredband.net. [94.245.46.49]) by smtp.gmail.com with ESMTPSA id a10sm1531864lfg.33.2020.04.01.05.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 05:32:32 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Wed, 1 Apr 2020 14:32:30 +0200 To: Michal Hocko Cc: Uladzislau Rezki , Joel Fernandes , linux-kernel@vger.kernel.org, linux-mm@kvack.org, rcu@vger.kernel.org, willy@infradead.org, peterz@infradead.org, neilb@suse.com, vbabka@suse.cz, mgorman@suse.de, Andrew Morton , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , "Paul E. McKenney" , Steven Rostedt Subject: Re: [PATCH RFC] rcu/tree: Use GFP_MEMALLOC for alloc memory to free memory pattern Message-ID: <20200401123230.GB32593@pc636> References: <20200331131628.153118-1-joel@joelfernandes.org> <20200331145806.GB236678@google.com> <20200331153450.GM30449@dhcp22.suse.cz> <20200331161215.GA27676@pc636> <20200401070958.GB22681@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200401070958.GB22681@dhcp22.suse.cz> 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 Wed, Apr 01, 2020 at 09:09:58AM +0200, Michal Hocko wrote: > On Tue 31-03-20 18:12:15, Uladzislau Rezki wrote: > > > > > > __GFP_ATOMIC | __GFP_HIGH is the way to get an additional access to > > > memory reserves regarless of the sleeping status. > > > > > Michal, just one question here regarding proposed flags. Can we also > > tight it with __GFP_RETRY_MAYFAIL flag? Means it also can repeat a few > > times in order to increase the chance of being success. > > yes, __GFP_RETRY_MAYFAIL is perfectly valid with __GFP_ATOMIC. Please > note that __GFP_ATOMIC, despite its name, doesn't imply an atomic > allocation which cannot sleep. Quite confusing, I know. A much better > name would be __GFP_RESERVES or something like that. > OK. Then we can use GFP_ATOMIC | __GFP_RETRY_MAYFAIL to try in more harder way. Thanks! -- Vlad Rezki