Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp368692rwb; Tue, 25 Jul 2023 17:30:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSCMiBT3YDdIgiP4PRnApRQPi35g8NUSeHsCGileUEJ6GT2aG1FGW+SpsT+F/jCvf9s7Eg X-Received: by 2002:a05:6a00:190d:b0:674:6dd4:8337 with SMTP id y13-20020a056a00190d00b006746dd48337mr864723pfi.12.1690331400877; Tue, 25 Jul 2023 17:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690331400; cv=none; d=google.com; s=arc-20160816; b=yGBMr6c21L/4EYEybP86ImlEvkLW/Zl5Nt+2FnzMZ+8CDvCBTq2zx8ofq8L6eiSDY3 14BJUzc/Mzc59rm3TcRwufbfwQMcIexc1C+pugDOoJt/2dlxVyWQUrc1RnfzI4iDIWvd 6r8Dwbw8xxxlV+wMJ61PMfooh288Qi1O97MzVS9bSr74/ut6naft0SGEBmvt9BXSBBs+ qbh1uAsqtq9FBqL7P7LH6BQTgTU1gLNGFDHsXl18H2wpMa05h0a2mYBcIiFFtobDpiCM kd2iWVd8rvgQWk9+YRW35Qc8W3vcFi+mRBkDZ8J/6QxednU58yxfjp44NABHZYexrxj8 gSRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=XUAymOqyJF+KJzhkhKRHjkAaSaauZTSc0FF9IG/sL8s=; fh=TIrfR+kNFGMrw4/iW2/En9LQBJfXONg9+yfcGBkh2uI=; b=augCyL53O4KBvJioTuRSY8G2ecKXy4ZcjuwIQqx4OMg8Iy0MnBo2SICmTHao83MO/S ZlvqbRbpAPMVsjRc8cCXJokIykDVmqN6qhQwRZhj7SIzo3pDQCV1oNDp/vbFEtxC/2Lo kN8P/vZpId2Fdpwd2vDqO0+jIakBQYOVzcGJ7fGxdPyDXxlHQmu5mFSaryXTMdzEU+qJ juMN52H/Rw86mHwWpjiEn9MSrQDYi4gGcoCw/t1Otkvja6il3t4IjJxp5YyzEQShIFDW YE8qXhhUBAjB1CIUKnVOh7UWR52XWAvdS0c+ddH5xrHZbK9JyLCnYcyY/xfWzFO5eAcU 7vhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="K/zocu5k"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a634e12000000b00540107fc033si11280474pgb.282.2023.07.25.17.29.43; Tue, 25 Jul 2023 17:30:00 -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=@google.com header.s=20221208 header.b="K/zocu5k"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbjGYX0A (ORCPT + 99 others); Tue, 25 Jul 2023 19:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjGYXZ6 (ORCPT ); Tue, 25 Jul 2023 19:25:58 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E7C1988 for ; Tue, 25 Jul 2023 16:25:57 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1b9ed206018so41545ad.1 for ; Tue, 25 Jul 2023 16:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690327557; x=1690932357; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=XUAymOqyJF+KJzhkhKRHjkAaSaauZTSc0FF9IG/sL8s=; b=K/zocu5kXUyK0/jI3vAvSSXNAJ68vZAWBxXmVZ2imIvEsi7Fx8cNGPhTKJBVNOQsX8 ma9NJSi0ZrEZvF0QVbb4UIDpZkW5pNU+rFWNr6Bh2kyJOZ6UJAV3MKm8wcBBdYPLUTMy yP9hRlwTYRBW1/WwDkjU/ZbOaXUCJEMm/Ph6C+SU71Py5ANKvVSnT9otHCbQGvdCGW11 mjw4K6e0DWr1yCUtqbg97DsKQaI3JFD8WvxKI+gvu3TmjjpqfMVxMmDlsBa3ZvbFTL6D 1uORd5FDtYbAmNw1hMAK4lO3WW9TVrDa5yF08G7o/Sbal6jTBu2knXTksXpMMYHw6y+d IJFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690327557; x=1690932357; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XUAymOqyJF+KJzhkhKRHjkAaSaauZTSc0FF9IG/sL8s=; b=bjs3sHnMcsLV5aBgTuG5hVBolRGecK4Y30x0zjvI4f9MYFF2xjADi8GvmrN1n4zfrm sNDxXfv71R24qJCvcg6bR0YXB+1vqM0pDjf2pLboiYjdC8gNSmDiS+RlNi4Ck9/mI37Y MqDFpiRSs6bv5Ys0Nj1f2nAG4XNieIr+gylEAmLR+Ubev1NHsuU0gT9W0wcysxx2Sc+e 9dxK9iEJ73O48T2fPaug1NSwwqpvhwxf7ghgJERK7KVdhsBoHqvfBU1S9Q5cewxLawx+ bFbH2zjKHyr4XECi0ECTRYp/XyenkWxRpPTstv9IUfb+j1ArGsnPPw3SE7COdYez0B9C 3ElA== X-Gm-Message-State: ABy/qLbrhpIbMznLStXX1RpMo4zOF93L8wlWAoY0LN9AsAFaPLQN2GY1 1mpFdg5zcn8s2LKgBfdLN3r/og== X-Received: by 2002:a17:902:d48c:b0:1bb:9675:8c1a with SMTP id c12-20020a170902d48c00b001bb96758c1amr300090plg.24.1690327556899; Tue, 25 Jul 2023 16:25:56 -0700 (PDT) Received: from [2620:0:1008:15:ecb7:d63b:6ebb:ac11] ([2620:0:1008:15:ecb7:d63b:6ebb:ac11]) by smtp.gmail.com with ESMTPSA id w13-20020aa7858d000000b00686236718d8sm10117911pfn.41.2023.07.25.16.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 16:25:56 -0700 (PDT) Date: Tue, 25 Jul 2023 16:25:55 -0700 (PDT) From: David Rientjes To: Julian Pidancet cc: Christoph Lameter , "Lameter, Christopher" , Pekka Enberg , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin , 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 v2] mm/slub: disable slab merging in the default configuration In-Reply-To: Message-ID: References: <20230629221910.359711-1-julian.pidancet@oracle.com> <38083ed2-333b-e245-44e4-2f355e4f9249@google.com> <8813897d-4a52-37a0-fe44-a9157716be9b@google.com> <17349901-df3a-494e-fa71-2584d92526b5@google.com> <3bcfa538-4474-09b7-1812-b4260b09256a@google.com> <7b6b07b3-d8a1-b24f-1df2-bf6080bc5516@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Jul 2023, Julian Pidancet wrote: > Hi David, > > Many thanks for running all these tests. The amount of attention you've > given this change is simply amazing. I wish I could have been able to > assist you by doing more tests, but I've been lacking the necessary > resources to do so. > > I'm as surprised as you are regarding the skylake regression. 20% is > quite a large number, but perhaps it's less worrying than it looks given > that benchmarks are usually very different from real-world workloads? > I'm not an expert on context_switch1_per_thread_ops so I can't infere which workloads would be most affected by such a regression other than to point out that -18% is quite substantial. I'm still hoping to run some benchmarks with 64KB page sizes as Christoph suggested, I should be able to do this with arm64. It's ceratinly good news that the overall memory footprint doesn't change much with this change. > As Kees Cook was suggesting in his own reply, have you given a thought > about including this change in -next and see if there are regressions > showing up in CI performance tests results? > I assume that anything we can run with CI performance tests can also be run without merging into -next? The performance degradation is substantial for a microbenchmark, I'd like to complete the picture on other benchmarks and do a complete analysis with 64KB page sizes since I think the concern Christoph mentions could be quite real. We just don't have the data yet to make an informed assessment of it. Certainly would welcome any help that others would like to provide for running benchmarks with this change as well :P Once we have a complete picture, we might also want to discuss what we are hoping to achieve with such a change. I was very supportive of it prior to the -18% benchmark result. But if most users are simply using whatever their distro defaults to and other users may already be opting into this either by the kernel command line or .config, it's hard to determine exactly the set of users that would be affected by this change. Suddenly causing a -18% regression overnight for this would be surprising for them.