Received: by 10.192.165.148 with SMTP id m20csp1768359imm; Thu, 3 May 2018 05:14:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrRb09Dp3RpuYbgteKFSv0CHsM0bLCdhI0rIPNtXl7jc6KxYqa+X6Z/kyU4E4mMCdLkC2iY X-Received: by 2002:a17:902:b60b:: with SMTP id b11-v6mr24127289pls.330.1525349669169; Thu, 03 May 2018 05:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525349669; cv=none; d=google.com; s=arc-20160816; b=tJ7dQnemS6W1InuZIjAVBu0Rcgj1VZQ7hMI12SPWGyHO2MdyuHw5b7Qdf/Hj4v+ppJ 2FztWpcJxYr73FBWeWSWtp3HdyLP53pAdMLAsOWoDUCOmCz1bPNi0EnOuUqyVTJc5tcq GuI5Hsz61is6cei/IL0Wj3TixELq5D0bpzfQ82d6A9+sVvEFAtQinYFefwbVZuECtSpC u6c1rDWIoQo9frw4McE+GvE27JPKSnqJgFFjd2Wo8c8S+uri+CtCYnNfIg1oj+aydXj6 7ao1sAlN/nBm9zIOs2Hq71mAA2Qo7yHgm9DioS1rjVlFc/ZMaazDmb6PW3WNyY8zc6pn b27w== 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:dkim-signature:arc-authentication-results; bh=F50ZVhJTT6rAjFYzWvX1NKXLqMHEIbSt6Q+Js9V7uxg=; b=GXLAL3gxipGlIR7Xn0ZiaeqP55dlFtsJ103ZYLOXMYayuNNJwCX77agY35krGll/hK 1ZcYgi1D4c8vOITaj5nM09asgea52pITnXQ5/nbcyUfcWzrH1FEkhRV1k+sA9bW+hb7O pijtvwJxuCmVWBwrG5AvjuSuemQxqhhL473OwfwnO5tnR6y9QkcZmwCUI3+rDzuh5NyV IDrqVhnPQ2/e7w9ONq0KKvxYyBivy9pzOdU04fdRhr6v2QcbtEVf1xQcGhLRluouQt+X aHdx8J3tgKkh2m0ExfdwepyjIr4wKSw87xtzsF2jVBhltfu/Bz4By2uzz9Rg2vGeures x6Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HcYlrrjO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2-v6si3711958pgp.298.2018.05.03.05.14.15; Thu, 03 May 2018 05:14:29 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HcYlrrjO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbeECMNl (ORCPT + 99 others); Thu, 3 May 2018 08:13:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38018 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbeECMNj (ORCPT ); Thu, 3 May 2018 08:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=F50ZVhJTT6rAjFYzWvX1NKXLqMHEIbSt6Q+Js9V7uxg=; b=HcYlrrjOrL7aQMOZW9DYnwwq8 TsJZX6z2e3npq3WaZg9z+U5VHhHXNR0mg4a9hwSGBDKgbXRWFe7FCZaAPP3f0gf9QjLuZ1YFCCqo9 MrvWk6zzYvDt4w77O//eI3CU2TTE21Ulxflik48zSQ/xi7RQUlfITW6yluo9YduZ9K+uZXlVwVUpe CiMyMOmlC7O8K0svh/oJxjSCvF9Fd7wC5n4iC4TEhW9Jy9JYT2zPw+dbhuGh3nky57OJh8IQKupRB CdjEx6fWZiQiD1Oyf6+33KZuCvgE1b7WCV2xmZ6+A3eo/IoSJAEjOobtppDHnU2Xtli4JArzbUErZ dNjFLx7KQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fED6w-00041y-HI; Thu, 03 May 2018 12:13:22 +0000 Date: Thu, 3 May 2018 05:13:22 -0700 From: Christoph Hellwig To: Michal Hocko Cc: Matthew Wilcox , "Luis R. Rodriguez" , Christoph Hellwig , Dan Carpenter , Julia Lawall , linux-mm@kvack.org, cl@linux.com, Jan Kara , matthew@wil.cx, x86@kernel.org, luto@amacapital.net, martin.petersen@oracle.com, jthumshirn@suse.de, broonie@kernel.org, Juergen Gross , linux-spi@vger.kernel.org, Joerg Roedel , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "lsf-pc@lists.linux-foundation.org" Subject: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love Message-ID: <20180503121322.GA14864@infradead.org> References: <20180426215406.GB27853@wotan.suse.de> <20180427053556.GB11339@infradead.org> <20180427161456.GD27853@wotan.suse.de> <20180428084221.GD31684@infradead.org> <20180428185514.GW27853@wotan.suse.de> <20180503120338.GG4535@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503120338.GG4535@dhcp22.suse.cz> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 02:03:38PM +0200, Michal Hocko wrote: > On Sat 28-04-18 19:10:47, Matthew Wilcox wrote: > > Another way we could approach this is to get rid of ZONE_DMA. Make GFP_DMA > > a flag which doesn't map to a zone. Rather, it redirects to a separate > > allocator. At boot, we hand all memory under 16MB to the DMA allocator. The > > DMA allocator can have a shrinker which just hands back all the memory once > > we're under memory pressure (if it's never had an allocation). > > Yeah, that was exactly the plan with the CMA allocator... We wouldn't > need the shrinker because who cares about 16MB which is not usable > anyway. The CMA pool sounds fine. But please kill GFP_DMA off first / at the same time. 95% of the users are either completely bogus or should be using the DMA API, and the few other can use the new allocator directly.