Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp317882ybb; Wed, 1 Apr 2020 00:10:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt1jrH2+rbvhT9fCebKE8tTC6obtBOQeB5NNNU2We4QrnDXzJEHddYc32z5+QMaGlkYViSh X-Received: by 2002:a9d:6c19:: with SMTP id f25mr16313680otq.371.1585725056125; Wed, 01 Apr 2020 00:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585725056; cv=none; d=google.com; s=arc-20160816; b=LJvGOQ6pKrdKf9T/IykAJPnwXWg8VYe7XOw+BRpvdrr4QdULHjGNQqu1v/48Gv4Zy/ rlCghzLMJtkJrDRGTZpB2rvI9J8k2a6CxnkFNp8yQoLhUJ+iGHuJX7GaEHFhlqgF+BgE NVnNHwSMMjWUafR0E9v71nZc3161b7Sp/v9DvNGUKi5ZVoSzg6TyimXgFT6DPJPUgWCy 7wkvoM/kgN8ZJEfALmop1KlYzzhkno1EGin3WYQQTSBmYd/9DoJUR3260wSLRcsjn1fH L8t16QVRhL+4rKGHI6Cgl5aybrosknyu6wSzlejz+sUfeL5L7/ZuB0Z5aWgufYNNdvCN IMuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tKcCvBkl/5wFmhqyWXdNyuguB+1XgXDUmUQ8zhlCfl0=; b=BGLbNcNlMvf+yDDlQVokzY/CmXxVjvt10SIfPZ1hWU7dQ47ok0C2Md1grcvMM6oIrX oOppjXP4I9x/tTh3tXo0yOWggDxAyhRZLvxAjL4XQGWh8jlbfdBMK0JnU4CKFyIH/ph7 T3KGp8Y9zqmdiLqle1+AyZcrU4qE7Zt/LMcv0TxYEAlufDK4rAmWYTtF39phQFxuA9PW d1XP0bwcyEpzXDzqjiqrJwdYtD6GX58d1juVhmZzY8CnqWc5GLQLVlMCY+sJiZYzCd8s fEofidXFmKMvhqGhvqr6jw2o7gh3r8C0yDu2uv/5SXX1KWmn8MzwSyIH5JNQjcHuIJ7c BQOw== 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 i14si423190oov.24.2020.04.01.00.10.41; Wed, 01 Apr 2020 00:10:56 -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 S1731960AbgDAHKE (ORCPT + 99 others); Wed, 1 Apr 2020 03:10:04 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51162 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731823AbgDAHKD (ORCPT ); Wed, 1 Apr 2020 03:10:03 -0400 Received: by mail-wm1-f66.google.com with SMTP id t128so5381408wma.0; Wed, 01 Apr 2020 00:10:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tKcCvBkl/5wFmhqyWXdNyuguB+1XgXDUmUQ8zhlCfl0=; b=GimWW9vahLRTeKGDBwlaxrahNw06822ARp9fna0DxzM+KxmbLJ/v2mT1rj5pvcL5w+ CyVkT6whSkyl3bLHD74RRKwVnPQEMLY8+9Um0/+A/5KP7p7Z4LhrOEfFS1IrMFE3cRv/ OWvTPVIh/5RfN2HFykkj51lqDaL+eeO+ZukJeBf6QFFm8TIAAvAo5a13QJughJrqmxqn o86FhKk4Pv0I+olbesVuwzNe+4lEJlJjFV3M2CZTtjVqVL51NMWv58rRdOAjTPrD6s81 fjaA+Zrs1NzykRLoR5SwEcSf5TdpqDWgUcUl+KtTcqHwDC6XD73eORDGsN5vzDmUDF4Z sdWA== X-Gm-Message-State: AGi0PuZaSk2bpgbFWYwjRF36q2Sz+AQS9UdNFhHXKwELUEFNjB852Rvz w99NF3o70Y/1Zh6YJNAdIes= X-Received: by 2002:a7b:cb59:: with SMTP id v25mr2931801wmj.13.1585725001425; Wed, 01 Apr 2020 00:10:01 -0700 (PDT) Received: from localhost (ip-37-188-180-223.eurotel.cz. [37.188.180.223]) by smtp.gmail.com with ESMTPSA id f141sm1517974wmf.3.2020.04.01.00.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 00:10:00 -0700 (PDT) Date: Wed, 1 Apr 2020 09:09:58 +0200 From: Michal Hocko To: Uladzislau Rezki Cc: 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: <20200401070958.GB22681@dhcp22.suse.cz> References: <20200331131628.153118-1-joel@joelfernandes.org> <20200331145806.GB236678@google.com> <20200331153450.GM30449@dhcp22.suse.cz> <20200331161215.GA27676@pc636> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200331161215.GA27676@pc636> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Michal Hocko SUSE Labs