Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1600049rda; Mon, 23 Oct 2023 19:02:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEk+f7rjRP+XzT+5ZRAcS/ZAuqPBru+DVIooIodiPydBR80h0OMuZC+TftCEvSNIyRdXMgn X-Received: by 2002:a17:90a:540a:b0:277:5cd5:6f80 with SMTP id z10-20020a17090a540a00b002775cd56f80mr20159102pjh.16.1698112964646; Mon, 23 Oct 2023 19:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698112964; cv=none; d=google.com; s=arc-20160816; b=IGmxcILOQq2KReOXggcZEjhyCZYeBPFQ1NPrTmehk2KknhODnJbP6nMMX/VUM+2xhA lov181b3BGS3/b/YfCorPeMdi/KO69++s0OA3y9nbnfznWsicza3vFW7n6o7l5sXnm96 Mouowa1g4nyPgb/M8tU+GlWuWcD1SiQ3EdaFMa4XaC0120me5IzQpdrK6ta+X5r+xzJQ UGZO5d3YErLxXjg/3143dpfDpo1e6jtFw9CnOaKoDBjP6Jxje5Pl3VZ9WuWO2tKXREPs mzirt/X+WGJIVK/j6f7jEcCapIaJJynsaUTS2ijTcJBY2/6qEsX/HraUAwE6uaQ3uxY5 CAbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=bJh3VcxlCB6JG6FhFj/zexR9NXgDMv0p5GP4dzs8Byc=; fh=4K3EN8rebVFnUyo7dZWlhFPkPEXEZu5Cz/XVPez1FJY=; b=jjmMQrTBC0PtZNYY1V7aNXAktGYTJSVPDerlWZ2S4rzzhTspK7aR5WC0XUesnAjVRS 2jIEZ+zhKEcUVUC/c3ZA0eEvgj+hqZLUIm1hr2Q5b1qWAMehnCmi2MWccUhE9UVuWCPV 9Cah5whkbM/Cn+uUZFA8sT7hAvrlbGCWw8TcoHr1lWkJZafns97Rw2T34/K5BDu1VN8T GR3A5tOTMsZC8mSZTLFllx9ohpQ1s0OqK/eWc6d+M+iH4aNHPVG44QuIfCOWAd1wHQno BrGlfPGmiqdeJcbDNwqnf7fZqcOcYEYEvszvuPMrCamX60/JB0+xGuAQDk3088fmPGrk q33g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=h3WFxfSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ce21-20020a17090aff1500b00274274bf0ecsi7165060pjb.61.2023.10.23.19.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 19:02:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=h3WFxfSJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C800C80C5F9A; Mon, 23 Oct 2023 19:02:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbjJXCCk (ORCPT + 99 others); Mon, 23 Oct 2023 22:02:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbjJXCCj (ORCPT ); Mon, 23 Oct 2023 22:02:39 -0400 Received: from out-207.mta0.migadu.com (out-207.mta0.migadu.com [IPv6:2001:41d0:1004:224b::cf]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 431F410C3 for ; Mon, 23 Oct 2023 19:02:33 -0700 (PDT) Message-ID: <08a9ee64-c27d-4eed-8762-1514c6eb1c88@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1698112951; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bJh3VcxlCB6JG6FhFj/zexR9NXgDMv0p5GP4dzs8Byc=; b=h3WFxfSJ6i9QZyGiLFqFgnx6zo1QpSffo0BypECG+9QLwDvjzXEqYauVXJFzKZi1PgLOBQ SxiNqjxZvBNKMBhXqI3rpm8V4LJykKxjOTrm8DXV/FsIRsxkVbVd2fDicJE/bj9+sJ7Ahv lSfuf9pscZqrtw1fWjCkTP+pC/zCUh4= Date: Tue, 24 Oct 2023 10:02:24 +0800 MIME-Version: 1.0 Subject: Re: [RFC PATCH v2 0/6] slub: Delay freezing of CPU partial slabs Content-Language: en-US To: Hyeonggon Yoo <42.hyeyoo@gmail.com> 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, willy@infradead.org, pcc@google.com, tytso@mit.edu, maz@kernel.org, ruansy.fnst@fujitsu.com, vishal.moola@gmail.com, lrh2000@pku.edu.cn, hughd@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Chengming Zhou References: <20231021144317.3400916-1-chengming.zhou@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 19:02:43 -0700 (PDT) On 2023/10/22 22:52, Hyeonggon Yoo wrote: > On Sat, Oct 21, 2023 at 11:43 PM wrote: >> >> From: Chengming Zhou >> >> Changes in RFC v2: >> - Reuse PG_workingset bit to keep track of whether slub is on the >> per-node partial list, as suggested by Matthew Wilcox. >> - Fix OOM problem on kernel without CONFIG_SLUB_CPU_PARTIAL, which >> is caused by leak of partial slabs when get_partial_node(). >> - Add a patch to simplify acquire_slab(). >> - Reorder patches a little. >> - v1: https://lore.kernel.org/all/20231017154439.3036608-1-chengming.zhou@linux.dev/ > > I've picked [1] and tested this patch series and it passed a simple MM > & slab test > in 30 different SLUB configurations [2]. > > Also there's code coverage information [3] if you're interested :P > > For the series, > Tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Thank you! These are very helpful to me, I will also do more workloads stress testing with more configurations. > > Will review when I have free time ;) Ok, thanks for your time. > Thanks! > > [1] https://git.kerneltesting.org/slab-experimental/log/ > [2] https://jenkins.kerneltesting.org/job/slab-experimental/ > [3] https://coverage.kerneltesting.org/slab-experimental-6283c415/mm/index.html > >> Chengming Zhou (6): >> slub: Keep track of whether slub is on the per-node partial list >> slub: Prepare __slab_free() for unfrozen partial slab out of node >> partial list >> slub: Don't freeze slabs for cpu partial >> slub: Simplify acquire_slab() >> slub: Introduce get_cpu_partial() >> slub: Optimize deactivate_slab() >> >> include/linux/page-flags.h | 2 + >> mm/slab.h | 19 +++ >> mm/slub.c | 245 +++++++++++++++++++------------------ >> 3 files changed, 150 insertions(+), 116 deletions(-) >> >> -- >> 2.20.1 >>