Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp70351pxt; Wed, 4 Aug 2021 06:12:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwENdJGC26sKfY3BbWwAAAA10Ofhd3AIEltklIWNauSF46oS4XZBBGAAH1WSj7z58jGZNTE X-Received: by 2002:a17:906:839a:: with SMTP id p26mr25975454ejx.547.1628082726016; Wed, 04 Aug 2021 06:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628082726; cv=none; d=google.com; s=arc-20160816; b=wmcDYmSssxfa0rtKEks8tZh3JRwGYRW5Ga/jzyNAuHNv0DxEO6s+f2pj70TIuS2FT+ ReKAmMuMiAWdsoUPIkj99Kf4+j/ZGxfzAX1zsAel8CicifpSd5hgQ4C3MD0H7yaxAYuO VkjEQ9SD0/yeDBMQR0J4vkY/Km0De4x9J3hmiexx+wdCAElR7UvGt2QfOeyQKznj1kID 6rWH9FLq8eZxkXt8kAtlkb09nd3PetQrG+6P9NOwIaQ/9DURoThN/qky2jLnIYGTxUwA hMOvIHNGkvjMlD5R+lxAYPPOLrFXdIK3TO5HFeRhzouJDYs5Jr5z9Ztus4csfhip7L0C Gtmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4um6Wvo8czP+xUFfbRcXUWMaKk6z2hC1DW4LnnM5LCg=; b=hoqFRLE53jlmK+OsKdyI1OyE3HR5r8LIW+o8RuGP11piiDqkGMTjaoSxy3Od6CODFu toNbH8fM9EdKRC9Dw847pAxdAMF2kDO4HCHqXiEBJfs7IiRrgr4/D9sEVRJC8E2PH998 eLifwFDRYN8eb2TvMqYlP0PyUWgyCa61HlZxwsEZFo1Znnlv3deECpbgO6faAi7JH/Xn 7Ma+4IcadZFIp9eVCCR+caouqP2k1BlHbTzIW8YaL6VRKqx42GkWD8x1Wn646sZQktXS IGEAJRZSjmXJCIz4fWGoFau5d92cN9VjcU7v6uEM751RaovCdgnB5ONQzHsjs83/ZKfP JPiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si2180271ejv.301.2021.08.04.06.11.41; Wed, 04 Aug 2021 06:12:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237372AbhHDMFj (ORCPT + 99 others); Wed, 4 Aug 2021 08:05:39 -0400 Received: from outbound-smtp01.blacknight.com ([81.17.249.7]:49513 "EHLO outbound-smtp01.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234765AbhHDMFi (ORCPT ); Wed, 4 Aug 2021 08:05:38 -0400 Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp01.blacknight.com (Postfix) with ESMTPS id BE0F3C4A88 for ; Wed, 4 Aug 2021 13:05:24 +0100 (IST) Received: (qmail 17282 invoked from network); 4 Aug 2021 12:05:24 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 4 Aug 2021 12:05:24 -0000 Date: Wed, 4 Aug 2021 13:05:22 +0100 From: Mel Gorman To: Vlastimil Babka Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim , Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner , Jesper Dangaard Brouer , Jann Horn Subject: Re: [PATCH v3 00/35] SLUB: reduce irq disabled scope and make it RT compatible Message-ID: <20210804120522.GD6464@techsingularity.net> References: <20210729132132.19691-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210729132132.19691-1-vbabka@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 03:20:57PM +0200, Vlastimil Babka wrote: > Changes since v2 [5]: > * Rebase to 5.14-rc3 > * A number of fixes to the RT parts, big thanks to Mike Galbraith for testing > and debugging! > * The largest fix is to protect kmem_cache_cpu->partial by local_lock instead > of cmpxchg tricks, which are insufficient on RT. To avoid divergence > between RT and !RT, just do it everywhere. Affected mainly patch 25 and a > new patch 33. This also addresses a theoretical race raised earlier by Jann > Horn. > * Smaller fixes reported by Sebastian Andrzej Siewior and Cyrill Gorcunov > > Changes since RFC v1 [1]: > * Addressed feedback from Christoph and Mel, added their acks. > * Finished RT conversion, adopting 2 patches from the RT tree. > * The local_lock conversion has to sacrifice lockless fathpaths on PREEMPT_RT > * Added some more cleanup patches to the front. > > This series was initially inspired by Mel's pcplist local_lock rewrite, and > also interest to better understand SLUB's locking and the new primitives and RT > variants and implications. It should make SLUB more preemption-friendly, > especially for RT, hopefully without noticeable regressions, as the fast paths > are not affected. > > Series is based on 5.14-rc3 and also available as a git branch: > https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git/log/?h=slub-local-lock-v3r1 > FWIW, I ran a corrected version of this series through a few tests. Some small gains, no major regressions in terms of performance on a !PREEMPT_RT configuration across 6 different machines. -- Mel Gorman SUSE Labs