Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1451400imm; Thu, 19 Jul 2018 01:44:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcJamzVOCZASNRk73doDfVMRgv0xHcYKGsuxnolXfukgNB5ld+nzVEtj0pVYwam4klDAuQJ X-Received: by 2002:a17:902:a508:: with SMTP id s8-v6mr6445791plq.223.1531989891765; Thu, 19 Jul 2018 01:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531989891; cv=none; d=google.com; s=arc-20160816; b=Wd4x5sg2gr28ZdB+3Y7LcgG4m13KpDxzPHaWVzqqHCy7aPH6W1+MOtJkjxbVAyUksc t7b1grEzz0GvNqAPGDcHWOoz7w6YAJyK/+yD+XEwV791aSFehRC9gv6yLtAaFRM904uV 8/o1fcZHrCFLGl7qAtAAHZAGKR94s1ZTHJSwFLoPB7IrA770IFHM0Tgya2/zLiVgYmc2 N/kcRpdwz5gdghU+H95tcHhAOoswwfQM9kwTHQd2qG9k9QODOKm3eEno7xYgUa5PfJny DiFamfmzS1cj5A96GzBH7cAMaIZ1YRevSOTr48Rc4WuY2X8efzIBlVbwe9g4Mwl4XDnu WPbQ== 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=kO5ygjvIuvbqT5XgYxItTVmGs9ITV/YPWmT5zJqD+lk=; b=kg52VonYQUb0u4RJX+JOvCPOEnkGU85nVPJIyAgRzXsEVKUxpHGyz1Ketsg8krrkMZ VfJIsOYwn7Tw/7NCjujF8hhtc73iW2YgReNzXDH4Ajl5PVKyVqOnzUBP9H/kd9Ncmdva yDtLJf1eLT9wtLOLt6800RNBD4lsyMh/uzqS1A5x9WOvu7tB15WEeV3xII1yBy0g6SCt /rRHTinAZTQEcEn7PGmtBSfCurhKa/ADYp4qWpsjBoBkFvwN4CU576ZyGI4rfXR1EZE9 3Ea0iS9gbWe17TJ283dtxmUyJ5lLCsu1bqiyq1kiZbI+verpVtsv84vvXlTZbl9X1IZI pJcA== 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 123-v6si5463520pfd.201.2018.07.19.01.44.37; Thu, 19 Jul 2018 01:44:51 -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 S1731468AbeGSJZE (ORCPT + 99 others); Thu, 19 Jul 2018 05:25:04 -0400 Received: from outbound-smtp04.blacknight.com ([81.17.249.35]:41353 "EHLO outbound-smtp04.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731110AbeGSJZE (ORCPT ); Thu, 19 Jul 2018 05:25:04 -0400 Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp04.blacknight.com (Postfix) with ESMTPS id 295DA981AD for ; Thu, 19 Jul 2018 08:42:58 +0000 (UTC) Received: (qmail 19319 invoked from network); 19 Jul 2018 08:42:58 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.237.66]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES256-SHA encrypted, authenticated); 19 Jul 2018 08:42:58 -0000 Date: Thu, 19 Jul 2018 09:42:57 +0100 From: Mel Gorman To: Vlastimil Babka Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Roman Gushchin , Michal Hocko , Johannes Weiner , Christoph Lameter , David Rientjes , Joonsoo Kim , Matthew Wilcox Subject: Re: [PATCH v3 4/7] dcache: allocate external names from reclaimable kmalloc caches Message-ID: <20180719084257.2qqafzcteqwkb2xd@techsingularity.net> References: <20180718133620.6205-1-vbabka@suse.cz> <20180718133620.6205-5-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20180718133620.6205-5-vbabka@suse.cz> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 18, 2018 at 03:36:17PM +0200, Vlastimil Babka wrote: > We can use the newly introduced kmalloc-reclaimable-X caches, to allocate > external names in dcache, which will take care of the proper accounting > automatically, and also improve anti-fragmentation page grouping. > > This effectively reverts commit f1782c9bc547 ("dcache: account external names > as indirectly reclaimable memory") and instead passes __GFP_RECLAIMABLE to > kmalloc(). The accounting thus moves from NR_INDIRECTLY_RECLAIMABLE_BYTES to > NR_SLAB_RECLAIMABLE, which is also considered in MemAvailable calculation and > overcommit decisions. > > Signed-off-by: Vlastimil Babka Acked-by: Mel Gorman -- Mel Gorman SUSE Labs