From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34D05ECDFB8 for ; Thu, 19 Jul 2018 08:43:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E2A60206B7 for ; Thu, 19 Jul 2018 08:43:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2A60206B7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731473AbeGSJZE (ORCPT ); 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