Received: by 10.192.165.156 with SMTP id m28csp592067imm; Mon, 16 Apr 2018 05:44:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/yOGSyHYYxNPP36hyjB7h5QXM5NP0dBGxwQBDBEs5lFyUjL3LpSxbo3TplggEx3G4DVuuw X-Received: by 2002:a17:902:7d92:: with SMTP id a18-v6mr15418675plm.331.1523882693716; Mon, 16 Apr 2018 05:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523882693; cv=none; d=google.com; s=arc-20160816; b=UpOSVoj0y7XNP4x606N1LAs0EpDu7m5Kkm2EE/1y88pD7c8Q2Hr25aHpCh4RhlU/R+ m2NWpwc74fAzgiYybLov9CqIv8wYnm+xpTlFhBjN1PQAquRyN5zDSc7r++2X8e1RasZ6 19IX5tUfz2oyhxULljsi5vb+i4Xb8pR7idG3KpzGMQIv8AtY6/CNoZzBjDCPGnSQ//L/ JreJtGW5euoV3ukFnNPtFfD5CGPLsd4gwWatexoDhOI2Wr9qVnf8vBLbmftBK51a0+R/ i0gpou42aKdyqK8PhdhfnV4d95chTw47t35rxW0b6zo7J7Nc+t9vn9TN+pnPl4zrRsjF gE9A== 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:arc-authentication-results; bh=oWFgjU1wCHyZgXGGtDZsv8FjarDkiNU3TC6na9Z2KrM=; b=mDGi21WX6zqzpOsqAbdjD3+Nyr2+vyDOlFdzwNLa3gUWKYvEm3UBvvkxGSuMhmNHwc iABBMP0NIhqJiu7KV1MIUnQagnprbGdx6xS253FLxMIVldWd1LuB0a4Z9Sfaoalq1uN+ mUOa02hLXZS9tjnujpK5nFcN9bus6+d7rKV8M6VczC9K5beMssypkq/FXSeSOezeoVTm pPHqVBtPmbzuNhfanZf9scLxfiBJSmAu2zwVKL8crgEELfzZfE5G3ZV7l5OZFUqOSsYP CZpBNwqF7FY3JhT+p2TxduJ5AS0y3/jYxqGFJJICn4M9eQDBKjdgppfQib230x4uJ8lv Drwg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si4184459plb.286.2018.04.16.05.44.40; Mon, 16 Apr 2018 05:44:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753666AbeDPM1v (ORCPT + 99 others); Mon, 16 Apr 2018 08:27:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:41424 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752496AbeDPM1u (ORCPT ); Mon, 16 Apr 2018 08:27:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 89CCCAB3D; Mon, 16 Apr 2018 12:27:48 +0000 (UTC) Date: Mon, 16 Apr 2018 14:27:47 +0200 From: Michal Hocko To: Vlastimil Babka Cc: Johannes Weiner , Minchan Kim , Roman Gushchin , linux-mm@kvack.org, Andrew Morton , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 3/3] dcache: account external names as indirectly reclaimable memory Message-ID: <20180416122747.GM17484@dhcp22.suse.cz> References: <20180305133743.12746-1-guro@fb.com> <20180305133743.12746-5-guro@fb.com> <20180413133519.GA213834@rodete-laptop-imager.corp.google.com> <20180413135923.GT17484@dhcp22.suse.cz> <13f1f5b5-f3f8-956c-145a-4641fb996048@suse.cz> <20180413142821.GW17484@dhcp22.suse.cz> <20180413143716.GA5378@cmpxchg.org> <20180416114144.GK17484@dhcp22.suse.cz> <1475594b-c1ad-9625-7aeb-ad8ad385b793@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475594b-c1ad-9625-7aeb-ad8ad385b793@suse.cz> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 16-04-18 14:06:21, Vlastimil Babka wrote: > On 04/16/2018 01:41 PM, Michal Hocko wrote: > > On Fri 13-04-18 10:37:16, Johannes Weiner wrote: > >> On Fri, Apr 13, 2018 at 04:28:21PM +0200, Michal Hocko wrote: > >>> On Fri 13-04-18 16:20:00, Vlastimil Babka wrote: > >>>> We would need kmalloc-reclaimable-X variants. It could be worth it, > >>>> especially if we find more similar usages. I suspect they would be more > >>>> useful than the existing dma-kmalloc-X :) > >>> > >>> I am still not sure why __GFP_RECLAIMABLE cannot be made work as > >>> expected and account slab pages as SLAB_RECLAIMABLE > >> > >> Can you outline how this would work without separate caches? > > > > I thought that the cache would only maintain two sets of slab pages > > depending on the allocation reuquests. I am pretty sure there will be > > other details to iron out and > > For example the percpu (and other) array caches... > > > maybe it will turn out that such a large > > portion of the chache would need to duplicate the state that a > > completely new cache would be more reasonable. > > I'm afraid that's the case, yes. > > > Is this worth exploring > > at least? I mean something like this should help with the fragmentation > > already AFAIU. Accounting would be just free on top. > > Yep. It could be also CONFIG_urable so smaller systems don't need to > deal with the memory overhead of this. > > So do we put it on LSF/MM agenda? If you volunteer to lead the discussion, then I do not have any objections. -- Michal Hocko SUSE Labs