Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3605207rdg; Tue, 17 Oct 2023 23:34:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUTUTwLjdCFUH1arj7737mveZBXXouwODBpyHnlF1ojihj0RYT7P972iHjEWyxjhJSHDaA X-Received: by 2002:a25:800a:0:b0:d9a:5859:bf14 with SMTP id m10-20020a25800a000000b00d9a5859bf14mr4146858ybk.64.1697610883121; Tue, 17 Oct 2023 23:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697610883; cv=none; d=google.com; s=arc-20160816; b=w3hjqR6kXzol39IApAw6ev1yotaWBHE8xw1AdKRshA7BIM0mxpKhW1DJ+B/fo5RI78 kNrtC8+a0hMEGgmnSmi6tmYaNucphqwzy8UstvUqWKyvd0sJspRQz9YKxgejdp1U3hO2 Re6xBRJsptfqcxGemp+jJMoo77QJi5uZlqfDYQfRUYNkAv597XyCl4QcNocbCFjelgh5 pWmYjV9/TxDOTfIDkMIyu9nRWTpYUZ1QdbGb4GPftCNS2ZhYw6Klijg2/vRKX+Z/sx/h t283HIhhL/Fwxf+N/C7249zsTnhFiNkUIPIWIrx+Lb22B1gUO8ju7priGBrXk2pu3ioo X2Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AvhtsIpX6Tz25oR+Wmg24DRV09zwdRaSqOygIYnIWik=; fh=kocQZ8pND5x9Oz11tOBq1vfIlcmr43f1ONef1G/iggM=; b=L2SflKCGin3VErLrj97uEaczMaQrE7rdCJDbOYPclg84tqOCmVkzrK8tlVlV9C5RB6 ugryGzFzGuAl1jqMFVjoD9cVQImOVKKrSUuabCkZhWSzkg5KyeMxy3X3pSdIPbNWRhwY 9/IK0BWQ9s9UzXESwNq+l2N8hAlZfrPXWMyD9JRnLeNVJPcp161xykuUXR+yYxyMUQlt Pd9gjR7l4na983vaOBTOgGMDGGrhTFyNqBSVqLQSsyZIhJvcCe9SULRIizxjdLtVgDHB Z1vVtIY5DKSr9kVuhVXlkb9fnkbEmoeeGyQIxGPFoDeMWYK8MWpT6aGCgUKSD5WlWgTG fdEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GQzTmUNP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e27-20020aa798db000000b006be31c8eea5si1672132pfm.61.2023.10.17.23.34.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 23:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GQzTmUNP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6E03B808EEE2; Tue, 17 Oct 2023 23:34:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbjJRGe3 (ORCPT + 99 others); Wed, 18 Oct 2023 02:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjJRGe2 (ORCPT ); Wed, 18 Oct 2023 02:34:28 -0400 Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7EB5FD for ; Tue, 17 Oct 2023 23:34:26 -0700 (PDT) Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-7b65004396fso1848425241.3 for ; Tue, 17 Oct 2023 23:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697610866; x=1698215666; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AvhtsIpX6Tz25oR+Wmg24DRV09zwdRaSqOygIYnIWik=; b=GQzTmUNPlklPotz3ek95YJtffLBVSzMpCKPjbGq46pOTqG0zXFiTABLe81ZPHONNln 5/vPXLsxagh2p72D6DHrdnoOHoPm9WX6ZJBWUQG/frSxgVl+OSeeLkiyxLB8Nj/KeRcO SuiiJoEfm1klApYy+XFD+aVYRTwQRI5UY8ank63WrDMyocL1E816DhH7r0fb8S7MAP2W ctnjxEisdTy3+O69n+rHYVzoYa1pg8KmYjlqA0ttBXYXg03bMYnT+b6lDqwYHlIFYowC d1f7BfV6FDPxURKQBS+4737YRPkoXbyslG1poZZdfx64gFsMvJXyzOit3rWRhkBZ5ng3 bkfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697610866; x=1698215666; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AvhtsIpX6Tz25oR+Wmg24DRV09zwdRaSqOygIYnIWik=; b=V7ZDejiIh4uShL7++BKHxxKkJX86oX3vl7mEk2CxUKzXgi5lHyYK5tqjoUbJFs3DXt HrByIC3K/ufdTkE1UwbhgTMH+PURNiMGMqKamLyOcWEQ1n+TG9j2T74x3t455cytbbNH +3MpArgzbPPamvRJGvclxjLNhuPCBEvhC1CaiARMyyGBXGdtkP5q2TwueXvdsV5ArSiR 24o8gHZDICpygWEmUjSf5C42+nswZbkwQ8NTY+//Ecvqddeyz5RIFKPZDJaHWSaJvgnU TIsIlv6VkNF3tO8p8yi5I1WAoVoLre2dSDequprjflYGHxint5d8FhuoSFiyderBtprX DHBw== X-Gm-Message-State: AOJu0YxlDTwxtvswaq1U0nb8N+/BO4D9HysKB1EAFkcHMkPFVO+wvD7G qMUFw3h1zB+UY+KhYLwCOhLTpQvugLW99zVmTEo= X-Received: by 2002:a67:e006:0:b0:457:c52e:deda with SMTP id c6-20020a67e006000000b00457c52ededamr4300092vsl.34.1697610865597; Tue, 17 Oct 2023 23:34:25 -0700 (PDT) MIME-Version: 1.0 References: <20231017154439.3036608-1-chengming.zhou@linux.dev> In-Reply-To: <20231017154439.3036608-1-chengming.zhou@linux.dev> From: Hyeonggon Yoo <42.hyeyoo@gmail.com> Date: Wed, 18 Oct 2023 15:34:14 +0900 Message-ID: Subject: Re: [RFC PATCH 0/5] slub: Delay freezing of CPU partial slabs To: chengming.zhou@linux.dev Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, roman.gushchin@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Chengming Zhou Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 23:34:40 -0700 (PDT) On Wed, Oct 18, 2023 at 12:45=E2=80=AFAM wrote: > 4. Testing > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > We just did some simple testing on a server with 128 CPUs (2 nodes) to > compare performance for now. > > - perf bench sched messaging -g 5 -t -l 100000 > baseline RFC > 7.042s 6.966s > 7.022s 7.045s > 7.054s 6.985s > > - stress-ng --rawpkt 128 --rawpkt-ops 100000000 > baseline RFC > 2.42s 2.15s > 2.45s 2.16s > 2.44s 2.17s > > It shows above there is about 10% improvement on stress-ng rawpkt > testcase, although no much improvement on perf sched bench testcase. > > Thanks for any comment and code review! Hi Chengming, this is the kerneltesting.org test report for your patch seri= es. I applied this series on my slab-experimental tree [1] for testing, and I observed several kernel panics [2] [3] [4] on kernels without CONFIG_SLUB_CPU_PARTIAL. To verify that this series caused kernel panics, I tested before and after applying it on Vlastimil's slab/for-next and yeah, this series was the caus= e. System is deadlocked on memory and the OOM-killer says there is a huge amount of slab memory. So maybe there is a memory leak or it makes slab memory grow unboundedly? [1] https://git.kerneltesting.org/slab-experimental/ [2] https://lava.kerneltesting.org/scheduler/job/127#bottom [3] https://lava.kerneltesting.org/scheduler/job/131#bottom [4] https://lava.kerneltesting.org/scheduler/job/134#bottom > > Chengming Zhou (5): > slub: Introduce on_partial() > slub: Don't manipulate slab list when used by cpu > slub: Optimize deactivate_slab() > slub: Don't freeze slabs for cpu partial > slub: Introduce get_cpu_partial() > > mm/slab.h | 2 +- > mm/slub.c | 257 +++++++++++++++++++++++++++++++----------------------- > 2 files changed, 150 insertions(+), 109 deletions(-) > > -- > 2.40.1 >