Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2861891pxb; Fri, 8 Oct 2021 17:36:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT9H+mdUExFMS4kgp9b9RD1ciOuXt7mgxbVqNZWFQIYXN2LprTLswm/kV5u6US55Mzaeb6 X-Received: by 2002:a05:6402:222b:: with SMTP id cr11mr20162381edb.392.1633739797013; Fri, 08 Oct 2021 17:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633739797; cv=none; d=google.com; s=arc-20160816; b=GjpQWt0q4yofxjz2/93UeCirzsJva9S/5yak62nLCpmZhckLjD5aDruhoTZOPMbN3I AI1aOeV6KbVKd/coNFOAMRS0W7L0GXaYLDWQ4bkk6B5oBmnTkVoRVJqSzLEWqOf8dQ26 UjRcaTNDMV9Vun3H09nlDLXybRtWJUGJZTtYV88zBWfPvq+CaxbL0W72y7BwRfHROeRh vJ0HA1toNu+3uJYAUiMLFRDioPFaH3J0wKMdkLiH3pdI1RRm2JS9xr8MJMMtNdXvCc/0 StnO6WXz9EON5nQ90bw91LWtgVZUdzna8zRqUY2auQmPDy2tkgkK53JZrAMSPfKrKg61 RfOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xql+N3ib1eUlIjDNmObuElGGVllxpdEKF1ivrtTjnA4=; b=goVB3IkAz4Y62qh944hCLkdXNgS53I/E3GCsHs2gZfmoQZaCiLh3gMiHOOS7GOt86h v//zDJCDdXwO+HwNtI158euh3UGNpoPpzGDfa+3PI+SHPOfl5a5gu0mQfo3Js2WADnSI ddP0FHaT0plK4JfuGHUM97UuhZFgC2GHdMWrceCDhvyjuSzOSH5hvmhaE3sf2P1AiOAG cTGjjJUlgTewOgpfnrgZ9UVMJckCV1DvmOsjp+HAplBjRIa+JcBG8EE3hvLcND61Re1h a0w0bA34LIEYUGaMs3CuGJl1ofVgvHDJx0c5be4UbIsr1E5jGU+0aVnNDq/Gj5KzOfAQ 8/Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=wSc1Df6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1236757edi.152.2021.10.08.17.36.13; Fri, 08 Oct 2021 17:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=wSc1Df6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244004AbhJIAg1 (ORCPT + 99 others); Fri, 8 Oct 2021 20:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231963AbhJIAg0 (ORCPT ); Fri, 8 Oct 2021 20:36:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9E16C061570 for ; Fri, 8 Oct 2021 17:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xql+N3ib1eUlIjDNmObuElGGVllxpdEKF1ivrtTjnA4=; b=wSc1Df6rvCC4r06ynh69vQYqGw fe7y5D5XS7RiFwKZLwNYmFEoRjG6XG4H/m8JcH4WzhjljjJJ2tbuzxJqNW22w4ugJtgXCs/SGg0UI whzTQZgIjcKM4EICtdR3/bzBiSsRECIve1L+kkDBeGhJp1Ku8NXZmSHcTpjzYQxUqdClwt8O0qLYW HIX7MVhwdsfMMJrJgKSwtSUnRAa//y43nX6LPBsHKYt8t2XxZUeanjwEFs7phr48LVDp7VXoyzA+f /YLmeeoZUrqVhb9ycDgw+nIKNWVdqA25tSbAFse0c9X8tiXzQC/JGG0YbtNy8fL/ED2Y2INZ/W08L wcVJZFrg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ0J5-003kwH-W8; Sat, 09 Oct 2021 00:33:51 +0000 Date: Sat, 9 Oct 2021 01:33:43 +0100 From: Matthew Wilcox To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka Subject: Re: [RFC] Some questions and an idea on SLUB/SLAB Message-ID: References: <20211009001903.GA3285@kvm.asia-northeast3-a.c.our-ratio-313919.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211009001903.GA3285@kvm.asia-northeast3-a.c.our-ratio-313919.internal> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 09, 2021 at 12:19:03AM +0000, Hyeonggon Yoo wrote: > - Is there a reason that SLUB does not implement cache coloring? > it will help utilizing hardware cache. Especially in block layer, > they are literally *squeezing* its performance now. Have you tried turning off cache colouring in SLAB and seeing if performance changes? My impression is that it's useful for caches with low associativity (direct mapped / 2-way / 4-way), but loses its effectiveness for caches with higher associativity. For example, my laptop: L1 Data Cache: 48KB, 12-way associative, 64 byte line size L1 Instruction Cache: 32KB, 8-way associative, 64 byte line size L2 Unified Cache: 1280KB, 20-way associative, 64 byte line size L3 Unified Cache: 12288KB, 12-way associative, 64 byte line size I very much doubt that cache colouring is still useful for this machine.