Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp227374rwb; Thu, 18 Aug 2022 02:46:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4hSwYp0FtHSLp98mb3Y5G01nUuF0h3j2if024IZUILsdorXpWFypeSYcmlGcGe9N6dqsWb X-Received: by 2002:a17:902:d2cf:b0:16d:d57d:af49 with SMTP id n15-20020a170902d2cf00b0016dd57daf49mr1941310plc.45.1660815970600; Thu, 18 Aug 2022 02:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660815970; cv=none; d=google.com; s=arc-20160816; b=nsAY3931jbKi57toNewwYaYpwxzfnoxsXMCofYFYFROIAxYLOgjM2HiKo/fxYlUn1K K/xAup0MoowqLk/IrQ1xSXZEDb3HrDHz31qXMhhGnLxEilz2aM9AuC3F7zS+KO6/QoXR OOHcs31uLjbOrZc129QspZt9/lCqhg19RfGAzEyYA518uBP8DyDlzuQ95xfztnYZQybp EZAirWCWykLux7TX2uMAQFY8+4iD6+lhwevzSEQI1+U+c3OgCWDIW45yz7Su1M1Pi6Oc b21HaExjgicFM6Hzs2oheDIqhpulTsMaBRsx3QycDlXUtLGpLkhJdzMm8qu4bRozvZsS ml1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=sXcbbJ6oTTf0VpQ4qRfY0DnpBrem73eDysEBswlNX18=; b=hYgOVpZKrCz6YCANQdNsVb3uCj4ySRIwft9Oe5CJmMIYSfMRuPj7q/kFx5fJ57c9HY afYep1KDlD1FnEmUltprZEGPyGkOkUQMmrX8+3y4oBysmurEgZCaWXYn0lxL+Ndl4Sc/ +UuVA6xrZv7ibc1Vf13V97bbOI0ZNLrPr4mwHy417tHiEtlQo/BcPrP7uO5j3TIQ6FD2 6WRtHU7NG4ss5UfhleXj5opkxkiPBL/ThbYFJFlUaSROSkRXlzTHUePVYqmy7d22T58O F9qkXn0retqzJtmYm9Pn58INhoiZXsehGKNNlqyWJDb903cpGLBqYrENQlDGxg/D5d71 BgDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gentwo.de header.s=default header.b=MOziH+YX; 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=gentwo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a17090301c400b0016c7ab0194fsi1013911plh.6.2022.08.18.02.45.58; Thu, 18 Aug 2022 02:46:10 -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=@gentwo.de header.s=default header.b=MOziH+YX; 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=gentwo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237775AbiHRJmK (ORCPT + 99 others); Thu, 18 Aug 2022 05:42:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236969AbiHRJmH (ORCPT ); Thu, 18 Aug 2022 05:42:07 -0400 Received: from gentwo.de (gentwo.de [IPv6:2a02:c206:2048:5042::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E18B14EE for ; Thu, 18 Aug 2022 02:42:03 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id E8493B002B2; Thu, 18 Aug 2022 11:42:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.de; s=default; t=1660815720; bh=zhSk3gUIK+mDi9XiV4NGeRbdkgpqWbv2DEwABjWuxDQ=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=MOziH+YXigIkZ5JoZLci/yn9Gsmc5kVya7ebi8NlUx2Mk+PUFJzY6Pd9zDtq2u4ge HL5vzZwPLJJbtVtfiJHfbNJ2ZMX2wiIYJHr0EsvZMMIpl8eOJI52sU/DEScOsn6PSl X2ZGEaOwB7usppzCAszgv2dEF8pieXdlntgSGnVUL/OecgcrnoeM0akruQbsrtdFPC Qx6OWJtinEgPo28VEmfu3aB8KF4jfe31R3f9Ty00MssEDM4iYDbEhBgkvmxE0yaHcy kMFwttrnRmayXK04n4Seo5h32BPHNRDkP+M5p37qrByLFNc3SKkqLM0U3JXtFH+Gba u5pkcG1JMDpZw== Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id E48CDB00210; Thu, 18 Aug 2022 11:42:00 +0200 (CEST) Date: Thu, 18 Aug 2022 11:42:00 +0200 (CEST) From: Christoph Lameter To: Sebastian Andrzej Siewior cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Peter Zijlstra , Steven Rostedt , Linus Torvalds , Matthew Wilcox , Andrew Morton , David Rientjes , Joonsoo Kim , Pekka Enberg , Vlastimil Babka , linux-mm@kvack.org Subject: Re: [PATCH 1/9] slub: Make PREEMPT_RT support less convoluted In-Reply-To: <20220817162703.728679-2-bigeasy@linutronix.de> Message-ID: References: <20220817162703.728679-1-bigeasy@linutronix.de> <20220817162703.728679-2-bigeasy@linutronix.de> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, 17 Aug 2022, Sebastian Andrzej Siewior wrote: > + * On PREEMPT_RT, the local lock neither disables interrupts nor preemption > + * which means the lockless fastpath cannot be used as it might interfere with > + * an in-progress slow path operations. In this case the local lock is always > + * taken but it still utilizes the freelist for the common operations. The slub fastpath does not interfere with slow path operations and the fastpath does not require disabling preemption or interrupts if the processor supports local rmv operations. So you should be able to use the fastpath on PREEMPT_RT. If the fastpath is not possible then you need to disable preemption and eventually take locks etc and then things may get a bit more complicated.