Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6246211rdb; Thu, 14 Dec 2023 12:20:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHX1z3A94GcJzJbPcvaQJu8eh/jXz3EHjeNDr7C/3RY2G7M7HD2aMmGRoVYwhgVhu7QZeX/ X-Received: by 2002:a17:903:244e:b0:1d0:6ffd:f1f8 with SMTP id l14-20020a170903244e00b001d06ffdf1f8mr6173225pls.78.1702585225388; Thu, 14 Dec 2023 12:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702585225; cv=none; d=google.com; s=arc-20160816; b=lzRUXbw0ZB5BqH/3r2xEDTXXfX3YPxAxBG114CvGctmG8MeoISJAx92cUUvH91Z741 2vJjmbb8zLnUxk+KcUW5tthibPqLagPLtcnuFRRnhpJ4819vV5UcS+uCvrjL1cIImCN3 BAge3E4EknkKKtHVpJzn7AFvfUfURZBbJjg7bFxRJ5TtdiLaAX1W1woSKy9SrRnTg8AQ suDRB1j9VSUYIIDNBzbqcyRDD6bfgXohSz1xoKzIetQRxdEfQkX2OW42x3yvFAYBybc+ 2YFhpavHNdBTUyHm/SJd32L0K3Fx+57gUrTx0HJLuadxCf9TaN+rBMXaUQw3RGHEn0VE 7A8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date; bh=iNKVLqK3XOPH3dLna4uOMTsaPzFt7/yZ9FkYu9F8DMU=; fh=ZsHKJklrAYX9kUTuM/UpWZDpPRPumclWNAkIx23aPNo=; b=VWcttrh2iHaRk39wDQS5iTKdSzo4l6UAU+jAQW4suv9fRykIvf/DwOrpIpMANAqcJS RMJZQcTOVNNyY8984ZSqxcW3QnRK9AwvScd0X6WYoAHHtRofJ8TfPPEQZ09BbM0ngBpO IMlsbCjZzfP1fW2tHBFkf3saNI56M9cgMuR7Dd1EjluqVWBzmHXIGV5WUItAsVeKSh8w VAZRk/vtpikcuwzZ3UDqL65VNG9SJDFmmXEW71HxsEQHIqv0mhF9XW4woXcQPavrRdmJ 8e9cUEiaSfy3/QtYXa10KaMIg7nKr2DEzDQ5A5YPToeaGnKkR7I9Bvzlrb3mo3hjVEyA yWqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-60-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k10-20020a170902d58a00b001d01ace7633si1419567plh.567.2023.12.14.12.20.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 12:20:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-60-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D86D428354E for ; Thu, 14 Dec 2023 20:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 317196A321; Thu, 14 Dec 2023 20:20:20 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from gentwo.org (gentwo.org [62.72.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FA4765EAD for ; Thu, 14 Dec 2023 20:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.com Received: by gentwo.org (Postfix, from userid 1003) id 2451240E8E; Thu, 14 Dec 2023 12:14:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 23BBB40E89; Thu, 14 Dec 2023 12:14:40 -0800 (PST) Date: Thu, 14 Dec 2023 12:14:40 -0800 (PST) From: "Christoph Lameter (Ampere)" To: Matthew Wilcox cc: Vlastimil Babka , Pekka Enberg , David Rientjes , Joonsoo Kim , "Liam R. Howlett" , Andrew Morton , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Alexander Potapenko , Marco Elver , Dmitry Vyukov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, kasan-dev@googlegroups.com Subject: Re: [PATCH RFC v3 0/9] SLUB percpu array caches and maple tree nodes In-Reply-To: Message-ID: <146558f5-9f5c-e65f-0177-5f736fe663cd@linux.com> References: <20231129-slub-percpu-caches-v3-0-6bcf536772bc@suse.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Wed, 29 Nov 2023, Matthew Wilcox wrote: >> In order to make the SLUB in page freelists work better you need to have >> larger freelist and that comes with larger page sizes. I.e. boot with >> slub_min_order=5 or so to increase performance. > > That comes with its own problems, of course. Well I thought you were solving those with the folios? >> Also this means increasing TLB pressure. The in page freelists of SLUB cause >> objects from the same page be served. The SLAB queueing approach >> results in objects being mixed from any address and thus neighboring objects >> may require more TLB entries. > > Is that still a concern for modern CPUs? We're using 1GB TLB entries > these days, and there are usually thousands of TLB entries. This feels > like more of a concern for a 90s era CPU. ARM kernel memory is mapped by 4K entries by default since rodata=full is the default. Security concerns screw it up.