Received: by 10.192.165.156 with SMTP id m28csp582546imm; Mon, 16 Apr 2018 05:35:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx49R7V616ganyLGgeFU7EE6bdh4NwNQ47kRnOCVbZKdCMf0oBkx7BQ92g/auSVNdgOyQb1Xh X-Received: by 2002:a17:902:227:: with SMTP id 36-v6mr15306346plc.134.1523882157880; Mon, 16 Apr 2018 05:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523882157; cv=none; d=google.com; s=arc-20160816; b=qjW/2yKnQiHCtcORMBNVa58l1GDYXj5uvPC2I1XRxXLbarXSCImSNK5/nPd5kKrx31 C3WBBKeFCEqNSScsPr4M649zNFsIq+Aur5idsogHxZ/vZbHmjkBGHJW/4pcb3fMl9SVa O9ATflldgxisc44LepvcwclJ+FXaB5BfMlFceKtZeRVQWAtIuvtKA7RWBHpYxZuW1Atn enOdJuph00N5NcT/AlrTQ05kkTk4W/tNg0XeeFAl+IPjsJp4MtLR+dlx8GTQIE3jlROm HocCmLgEBMni2cwylJ9PH1w3yy87uz4ZordcZ+pgv5WbiShO3QVLQZKkWivfFuhGQr0h 6NHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=zpqhoMAAyALdOKIZxlIDOkszBB57TZ7rZW9YOl1QL9E=; b=AKzw0khFLtGv+Zha0+vejqOwZEgv/23iX8iBzqY1KmViypBKPxP/4PTTpPcoNHmOiX xask/vP4tFYstRZS1C7YQzyOJBqOrRcTTsNm4romg/IA6PwTPC9B45RX/IYkhtq6+V0Q 8QhG1J1YjrgHbrLNX9FEo4L8CW/ynN7//f+kruzmB74JXsd3XSJWYd3MJah6CFAZibys WY2LKtmN3eRcvjUKsaJY7wTtKc28HtIyTsdh6HI1Qm5dult58q0qqM+25eiw4Y+P+xcA 3G4byR7wLMjGi47nK48xAEPb6aHY3giGN8b8dL2ORktg8L/YGfTvj1G7UlRuyadw9L/w dkag== 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 h3-v6si11926671plb.285.2018.04.16.05.35.43; Mon, 16 Apr 2018 05:35:57 -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 S1755240AbeDPMIV (ORCPT + 99 others); Mon, 16 Apr 2018 08:08:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:39387 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755230AbeDPMIT (ORCPT ); Mon, 16 Apr 2018 08:08:19 -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 2A03CADE2; Mon, 16 Apr 2018 12:08:18 +0000 (UTC) Subject: Re: [PATCH 3/3] dcache: account external names as indirectly reclaimable memory To: Michal Hocko , Johannes Weiner Cc: 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 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> From: Vlastimil Babka Message-ID: <1475594b-c1ad-9625-7aeb-ad8ad385b793@suse.cz> Date: Mon, 16 Apr 2018 14:06:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180416114144.GK17484@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?