Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp207229pxu; Fri, 4 Dec 2020 00:57:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVHdc35x5Yssmhh4r3WCbeG4MPrqJsrzW8oieVvUSkn3DLlQTv96Sba1mfi+72dpZ1v/DW X-Received: by 2002:a05:6402:190:: with SMTP id r16mr6548805edv.300.1607072254959; Fri, 04 Dec 2020 00:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607072254; cv=none; d=google.com; s=arc-20160816; b=XSTlyxDPs8HxfOwcH03PeUKNfcGKZxP0ATd4Ngt1bByaYliq8S85LlSlQnMPPmagNU ZYJDvozWaBXDkp/Ym2yJF/5d/HqolpO5AoS9xAt9AfTXyEuEZfwQcLjoxn50il1nDOLd PuJjhKDqYQFjPomZNYqeL6ay8+z10wSubeucMWb1raMA3YkZtvFszV2U8h7wajbfw3yL ij4sgt06M/hLSFl+HoC2gXu5zoPIf0K+LYar/1H79xjnYQkI1pkupRPlsFfKxWdKEp74 oDcqUApb5sPVDKwXSRj67iJMUpaO3xHQzYwV1VjIh4K9LJkzHPXFaIzCtKjI+L2IG4hz XlpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GzUWTFBPDORH96iWBN+PzoJswcnczTaxytp5LowmCEU=; b=Gfo2peOxjMTa8TOLW7tCkXAcGjOempSwgoG7JCKbPNldo183IcWhJ6SUzPaQox7T2L Xsf++GJ+/HPo9+14GlV7prCr+q0bEoBlth0JiRFEGjtveTluGBjYiGcNxGjhpAxkOA2V KbiFLQICGIl5SJ6iuxszvMx1XSZcr5ir0Vgib7ZbqEyMkAsZnfh5nM7m7vBFo+aQU2BP UMohdN+Dh8I652SHiD+L6Csof6hGed1tPJ+XF7wZU+d4ZM2CBeIsO5eMDk/OjpQDJdGH LMCI4Y9L9vwh65+zYWdoUxW9fPdAL+ToXFdEy6ELYOqoWv7OkOwiA0uWzHrgsANyZqq9 dTnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NDbrPj0q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si977312ejg.220.2020.12.04.00.57.12; Fri, 04 Dec 2020 00:57:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NDbrPj0q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729223AbgLDIyt (ORCPT + 99 others); Fri, 4 Dec 2020 03:54:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:53364 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725969AbgLDIyt (ORCPT ); Fri, 4 Dec 2020 03:54:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1607072042; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GzUWTFBPDORH96iWBN+PzoJswcnczTaxytp5LowmCEU=; b=NDbrPj0qDNLfAfWJzbi4xsbf8SduwUiEgH/Z/xNOYSFwe9IcZH6fuxfDFBrqB//TEUxSep LRHo08oEO/YpShqf8CuOQdD8fieBnjisHCtLjK9x667fa28AWH9J6icxQBwKNNkvkphYpH Dn2FhDIJKze/52Kna9WFtZh04/W4t7A= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 821FFACC4; Fri, 4 Dec 2020 08:54:02 +0000 (UTC) Date: Fri, 4 Dec 2020 09:54:01 +0100 From: Michal Hocko To: Pavel Tatashin Cc: LKML , linux-mm , Andrew Morton , Vlastimil Babka , David Hildenbrand , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , mike.kravetz@oracle.com, Steven Rostedt , Ingo Molnar , Jason Gunthorpe , Peter Zijlstra , Mel Gorman , Matthew Wilcox , David Rientjes , John Hubbard Subject: Re: [PATCH 5/6] mm: honor PF_MEMALLOC_NOMOVABLE for all allocations Message-ID: <20201204085401.GB25569@dhcp22.suse.cz> References: <20201202052330.474592-1-pasha.tatashin@soleen.com> <20201202052330.474592-6-pasha.tatashin@soleen.com> <20201203091703.GA17338@dhcp22.suse.cz> <20201204084312.GA25569@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201204084312.GA25569@dhcp22.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 04-12-20 09:43:13, Michal Hocko wrote: > On Thu 03-12-20 10:15:41, Pavel Tatashin wrote: [...] > > Also, current_gfp_context() is used elsewhere, and in some > > places removing __GFP_MOVABLE from gfp_mask means that we will need to > > also change other things. For example [1], in try_to_free_pages() we > > call current_gfp_context(gfp_mask) which can reduce the maximum zone > > idx, yet we simply set it to: reclaim_idx = gfp_zone(gfp_mask), not to > > the newly determined gfp_mask. > > Yes and the direct reclaim should honor the movable zone restriction. > Why should we reclaim ZONE_MOVABLE when the allocation cannot really > allocate from it? Or have I misunderstood your concern? Btw. if we have gfp mask properly filtered for the fast path then we can remove the additional call to current_gfp_context from the direct reclaim path. Something for a separate patch. -- Michal Hocko SUSE Labs