Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19530253rwd; Wed, 28 Jun 2023 10:28:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QpWqe1nXUKNu4DfpooptEz1ouGzTaQadLz2Qm9r+7KixkugpOCA87IkHuYsvVXy2mYD2L X-Received: by 2002:a17:90a:d583:b0:262:c414:e0af with SMTP id v3-20020a17090ad58300b00262c414e0afmr8362447pju.31.1687973315897; Wed, 28 Jun 2023 10:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687973315; cv=none; d=google.com; s=arc-20160816; b=XrNleFXisr8Yv/ciExG/DbTN4t12gvzcsnsZMrUxyD2avuDAN+AT4yKwrcch+FgfQI 7R5YXBlsb7IUZOZmb0IvAbUwl+5ksKYWXXfQUyo5IVxd1BGFmrOc5hKQXLqPVEANtqt/ JTNaSl5Z17SuaIL9mvqHAWQpAvOZl6XTlMvnbc4TPCPCCXEj7rJNvd/5aabFxMA4ZmR5 Bk4Ym403fOrKqvGKk/uKFpSrTquA3C8DXlMcZ2PTfcDtxgCJS/dH+caeQF+8j6+EJNPb ZvxO2R1RJ8ZeEKeuVeJuthy1ECctocJd6UFNnERxyCGXqJjxtKsyH7kUOCXSXkRj83wS Sviw== 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:dkim-signature:date; bh=be6Km9iULXCw10IaJhTWcFxq+2/V3fGhnk/J8/la0pk=; fh=9xao4CkyPl0U0mbStKxAwtQ17CGdAUDESheV49yZws4=; b=0md5uomWXWnzeAo5L4F8V+SPRxb9nyQM3VTMABpkXC6AeaktOqOzKJifsbiIfMQ9i9 YufXBmv+ZBwGjY+UI8AP83JDp1MnIygmqqm0+hE5FMDkN/AGg0vx6eG7tFJ5dDIzSWT7 AahAxfmpFVry5LIN4B5tGsUTBLQY3pJ2KQk6MfZfGOdHSBity/5Y8EZ0M3tAgB2bB/0s 2ya+lx4ud+gMG5qD5Bxtt0jlC7c9fSoEVN7uZdkIK+fT7krMqD3xg1ypsjh5RSsGmRoa XO34TVO8cPDNI63OfCbHXsRZ8c3fvw91ejvxYnCZaeJ7iXZH4lrqztfwkzaZ8P3mOh7m //PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jqSGDyTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a17090a974200b002633e362fc8si1601780pjw.104.2023.06.28.10.28.23; Wed, 28 Jun 2023 10:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jqSGDyTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjF1QpL (ORCPT + 99 others); Wed, 28 Jun 2023 12:45:11 -0400 Received: from out-33.mta0.migadu.com ([91.218.175.33]:31749 "EHLO out-33.mta0.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbjF1QpJ (ORCPT ); Wed, 28 Jun 2023 12:45:09 -0400 Date: Wed, 28 Jun 2023 09:44:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1687970708; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=be6Km9iULXCw10IaJhTWcFxq+2/V3fGhnk/J8/la0pk=; b=jqSGDyTe+WJU1j9J91rqQE8qyZB7PDS3relCxloVTnDWqQvqWWIoapbC/1f4TAgUA0pdCG +C/WsndvHQZU87/1RYoUa1ofvytnjRRQOLAjULzMD2enO531Gbvo/TZmv3CjpX+7MwXy/7 I9lebYnkO7amCvVyPi/qUDvKYQvzNlo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: David Rientjes Cc: Julian Pidancet , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Matthew Wilcox , Kees Cook , Rafael Aquini Subject: Re: [PATCH] mm/slub: disable slab merging in the default configuration Message-ID: References: <20230627132131.214475-1-julian.pidancet@oracle.com> <48bd9819-3571-6b53-f1ad-ec013be742c0@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48bd9819-3571-6b53-f1ad-ec013be742c0@google.com> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 27, 2023 at 12:32:15PM -0700, David Rientjes wrote: > On Tue, 27 Jun 2023, Julian Pidancet wrote: > > > Make CONFIG_SLAB_MERGE_DEFAULT default to n unless CONFIG_SLUB_TINY is > > enabled. Benefits of slab merging is limited on systems that are not > > memory constrained: the overhead is negligible and evidence of its > > effect on cache hotness is hard to come by. > > > > I don't have an objection to this, I think it makes sense. +1 I believe the overhead was much larger when we had per-memcg slab caches, but now it should be fairly small on most systems. But I wonder if we need a new flag (SLAB_MERGE?) to explicitly force merging on per-slab cache basis. I believe there are some cases when slab caches can be created in noticeable numbers and in those cases the memory footprint might be noticeable. Thanks!