Received: by 10.192.165.156 with SMTP id m28csp576483imm; Mon, 16 Apr 2018 05:30:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/eeBKcVjhwNvqP3pcuZWTcSWe5jWsgc/WDS1t3+EUAYYkM7Ur2m8Oi9l9HWcHGx4cnIcNv X-Received: by 2002:a17:902:683:: with SMTP id 3-v6mr12253607plh.206.1523881800544; Mon, 16 Apr 2018 05:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523881800; cv=none; d=google.com; s=arc-20160816; b=HR7+Z2TFcbxgn7amAp62/ehey5El33m89sIWBZu0AoahlKqEuyOT3uCoaW7+LKAj0H 6M7RBf6oFLjxacQwc7p9C2V/ft6xqJhN0sfNNbF3oLpjSu4bge3ORGjePKBVOhiO1QXL FlP4TxX7inV873/xInYk+33GYTfEFkB2JlO/uBezRrsqiRbzQhmOS5gvzX0PUq1SLZwZ xBVtlQ331g0ZMBzbUQB5XOeKrv8hBfnq7hCPyTkHkiMlgY/7iObIfkS31xSK9/hU8c8/ DtqU/npJ1q8mSOmLhvs7jnmtBy2qKXgWyaNl+r835/W3js/QzErH9K2xWEXLWeYyxDI4 GyIQ== 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=3Rvh5jifYvn7vVCmJ0p/2UqPCaJsCkkKuaFIkgaUOYE=; b=qfztDT/Gs84mgNYOXJbNVyunKLCk7vf/uj9nvpQPDalHQlN82e7KBQlw5ooAYpfRZY /saUDfev39p1bsdTIhMw5coPpmz6W6bvLpAdRM2uNWR4vti+P0ChA9Hu4cTmohd4pWaJ w3IYGXsCIDkNg3fyAQ6n7QSvXVyaEPoMI7/jA7/Dt7oWGlT1Un+fZpCR8emGAPurZzNM BK7Fh4vfObugbWus4n4kB1Yy44c2yWqe1Fm7tQrmBmD6BSszwc+tMTPAV5+IOW14HyGV 7bZQeut7QfhyH4dOMxeK1eadeS1v2vjVs8rJml/MXXeFqsLc+z2+FjjleBCTzVHAgZba d3rg== 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 g17-v6si11623813plo.292.2018.04.16.05.29.46; Mon, 16 Apr 2018 05:30:00 -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 S1754933AbeDPLls (ORCPT + 99 others); Mon, 16 Apr 2018 07:41:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:37182 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753592AbeDPLlr (ORCPT ); Mon, 16 Apr 2018 07:41:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8B513AD69; Mon, 16 Apr 2018 11:41:45 +0000 (UTC) Date: Mon, 16 Apr 2018 13:41:44 +0200 From: Michal Hocko To: Johannes Weiner Cc: Vlastimil Babka , 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: <20180416114144.GK17484@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180413143716.GA5378@cmpxchg.org> 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 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 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. 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. -- Michal Hocko SUSE Labs