Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1426732imm; Thu, 19 Jul 2018 01:11:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcCaZ0nVIU52yMNzZUkDnowU8PFwAJ/2B42cWiPhFVj8ySrJYaXuByC+uf/eQZfksvkSqFg X-Received: by 2002:a62:da07:: with SMTP id c7-v6mr8516146pfh.106.1531987910715; Thu, 19 Jul 2018 01:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531987910; cv=none; d=google.com; s=arc-20160816; b=asrLFV702XyoP4DWJIMukHwNeh3x8nOAIcB2xH9LqGuzD7aywl/DVMkL6mkww7weJL JS/ao0OBdDwaUfIc/TrCP7pVtP4csK/kX91+OgYdOl7Y0HIgvtqMYb3JW5Z0MWBvX4/n kFWczsZgkVwWl6/vf4ttc7PwWt1YPvMzl8HYuam7i4ygs4zPcLBjUxu+jUdPs3/4Nrgf o7LVi6luJWhXUIE1W8ruMPF/tPkzAwvl1vviSC62bZuoiNxGEpIwyb3NMIc5FGZcyl0W XIO1uzG8qtLaIeCBDKR/zMrSy5xu8GSZM7nZRs6wSBkj6zeAqoKdz9V7yBL9L4zeNJDL 5Hng== 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=X9XGamiDv80jVsZCtRB/7Dn9xQF9/rfn1B5r50779HE=; b=kKOOIj+6jQQLcw3CVRsa3YmZTWYi1/3Z0uN8AAQ+ZwcSG2VOhlU5CLA30dyg5hHXlH EkwhmvM1rZCSr/4dkJVD2I8T8UZfLHNIV4suOclKqoyivAfCFnyupsKrWnumf/4oGBLF O2VXznViNX3cYITPzAwfFq9ja/urcRAdxr+XrUqZc4tUnYpu41yT2Gb7CdEv8FkELkJo bw6lVmdmh+vhFZdb+jFUctzfqJ3jN2PUCsApPnKP64kjeAJps5RUWzp1/f1Ra+2s99fP IgmG+vNH906QGVe2yiPsYDMwVcQZaFcQENWw8oU5BlmT67veTGYR8znmbjRBovAukvy6 Hicw== 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 x63-v6si5228583pfb.352.2018.07.19.01.11.36; Thu, 19 Jul 2018 01:11:50 -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 S1731560AbeGSIwS (ORCPT + 99 others); Thu, 19 Jul 2018 04:52:18 -0400 Received: from outbound-smtp27.blacknight.com ([81.17.249.195]:53909 "EHLO outbound-smtp27.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731458AbeGSIwS (ORCPT ); Thu, 19 Jul 2018 04:52:18 -0400 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp27.blacknight.com (Postfix) with ESMTPS id 23EF3B86E6 for ; Thu, 19 Jul 2018 09:10:21 +0100 (IST) Received: (qmail 16231 invoked from network); 19 Jul 2018 08:10:20 -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:10:20 -0000 Date: Thu, 19 Jul 2018 09:10:20 +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 1/7] mm, slab: combine kmalloc_caches and kmalloc_dma_caches Message-ID: <20180719081020.5pl3naynwhgev6rx@techsingularity.net> References: <20180718133620.6205-1-vbabka@suse.cz> <20180718133620.6205-2-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20180718133620.6205-2-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:14PM +0200, Vlastimil Babka wrote: > The kmalloc caches currently mainain separate (optional) array > kmalloc_dma_caches for __GFP_DMA allocations. There are tests for __GFP_DMA in > the allocation hotpaths. We can avoid the branches by combining kmalloc_caches > and kmalloc_dma_caches into a single two-dimensional array where the outer > dimension is cache "type". This will also allow to add kmalloc-reclaimable > caches as a third type. > > Signed-off-by: Vlastimil Babka I'm surprised there are so many kmalloc users that require the DMA zone. Some of them are certainly bogus such as in drivers for archs that only have one zone and is probably a reflection of the confusing naming. The audit would be a mess and unrelated to the patch so for this patch; Acked-by: Mel Gorman -- Mel Gorman SUSE Labs