Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp815463lql; Mon, 11 Mar 2024 20:24:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD8yyTRINwchauELQ27s9iPGpK2gxfoD3qimEORRZU3PiVH9M8IUhzynAbgifpwwDCl149wRlo56yuUlB6wpMutO6gQsAvj3AMk1VUEA== X-Google-Smtp-Source: AGHT+IHRBuPXgKMMIYHCKHj1DjOpQ0R33im61GMhmyUzVR8cppp0pFkMml2VqWNi71NWRj2xhwZg X-Received: by 2002:a05:6871:108:b0:220:bba1:5c92 with SMTP id y8-20020a056871010800b00220bba15c92mr9479042oab.38.1710213876120; Mon, 11 Mar 2024 20:24:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710213876; cv=pass; d=google.com; s=arc-20160816; b=jI9mEkc3YYBFBpEbPeCADTmXItXHDjtcGzRVUfosEL7mDh+ohEVH6wZGbs1HrNsS9s 6kDNtYnmNiY3xdbnnG8zpBTZx3qoxgXBCe9WO5TiDlNkHKQukpP7iBh9MhOAZ1CIkyLB m/byjiNor9QM+70qBOYUxtm0Tb1S+XXslhqT/GFUBkrCVY8CNvdGabU8qQ9Gele/7ds7 pZZeugmLQYaxRqKITvOS5GuUZ71jItpJ/xfigyBX1U2l4+fsg7N5xx8QtkaQTkrCuKfe xs0Eu7DCzTxJJyWUE6pU3SUN2pd/GkSLbbQ9kU8BevuKTcM89rk6PyYLSlgq8MZMUwtC trOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=zuZlZeeJSyLwb3VYggdW0U3QHr53BLifrVnBVoQd+7U=; fh=wbXXq/ePcptUcyHzUxFvi6LEs0MSK5Uwwr9y8nHzkp8=; b=kNeCN4kbhR2tHXBbMcKVZzAiqTBVWYLOx03kmUgz15ic6jjPBubrQwd4nHzpa+dj2Z 3SrYcelffcKCc57P/RG5hqze3imCuh1MMLcX6+dq9bkSYLKEN3CVBETeF+neJ8KHJrdr NhjL6obcNq9Y37svM+uR5H6+bVPo3a5XVBik+JPnhaBDseaG+NXeUQ87HLaoxPQpbXPS qsC4jM0Ack4udN5+X/h8vnu4MVSztuVxWSSE4Rs6ME1Rtvm26YzBzhCOPZ57m28Cnsa5 4gj1vPXFglSYeD/XNykPGSUMKXfpzZ3UQchMxji+7i+udp6FR3k/Hkx05/qxkcCEbkNv XdpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=rpY+IOhT; arc=pass (i=1 spf=pass spfdomain=joelfernandes.org dkim=pass dkdomain=joelfernandes.org); spf=pass (google.com: domain of linux-kernel+bounces-99794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99794-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jw20-20020a056a00929400b006e687ef7107si4437209pfb.375.2024.03.11.20.24.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 20:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=rpY+IOhT; arc=pass (i=1 spf=pass spfdomain=joelfernandes.org dkim=pass dkdomain=joelfernandes.org); spf=pass (google.com: domain of linux-kernel+bounces-99794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99794-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 57C6AB22372 for ; Tue, 12 Mar 2024 03:24:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C952EAD5C; Tue, 12 Mar 2024 03:24:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="rpY+IOhT" Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AB1DAD32 for ; Tue, 12 Mar 2024 03:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710213863; cv=none; b=IP5pI+4S4n723di7AgVjgrlnVcAmacK/ueC9I12iJk+Zdmug/Dw/GnNASoK2zBuZrM6iN6HdYwfKieXsBesIZxT3JPVzKwE2tcz6Kg/3/+3vuX8B8PJSQGWEcUgvWoBhKkxPlILr/gJpoaKE8h7TlBTsYOdDREFIOsitanss3YM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710213863; c=relaxed/simple; bh=ya0U1g9V0o6+rM4JHioaEtve3TkGYKYyIDMqwy3dDq4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DH6a2/96c++9TIv7yihKJ1yQqA1SlBHnoEqZq+uMwDzlPFDj7+ywGrnRe5+0ldDfbG/XLt1fEH79q64mvOrLQb2w7i6KQX6hmbXt/Z5sKlmtk5acb88wSDDhBUxbKtMv2putpAvVwT2J/ShyDZHX0GBErNWrvx6sb3GE3xwXHrM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org; spf=pass smtp.mailfrom=joelfernandes.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b=rpY+IOhT; arc=none smtp.client-ip=209.85.219.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=joelfernandes.org Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-6904a5d71abso36568396d6.1 for ; Mon, 11 Mar 2024 20:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1710213861; x=1710818661; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zuZlZeeJSyLwb3VYggdW0U3QHr53BLifrVnBVoQd+7U=; b=rpY+IOhTIXcaZauz1mVQ7KanabzjzmrBKUecJvauntl6inPUIA2C/jrq3XNoGp+OQn 9N9Al+RNeTsj5jIBDrAvn1V2zMpZpGPxmF5jsFJjT65i6flpNnYXTk3T06OERZFstuF9 xDMAQfEcT37mncbH3OWkuVU7+zrHa8apBVqFI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710213861; x=1710818661; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zuZlZeeJSyLwb3VYggdW0U3QHr53BLifrVnBVoQd+7U=; b=waTKTiwEvasdp15AE9gJcRUgh+VnWcLLWt2qlKB8bgFMbOYPurMBjXC7VbRBg+BJG1 6tY4vGySRUrhyVFG8KaefnVpefNZY12+xZ++ja5Q88HnTqSKkCoUUmjaioty0MdpKhuo iOFZu7nDti0FeOKHVFQqI44vwDb0QFovzSm6/16TFMs6+EHetnCo15UtcvkeNYNb9PhY 8E/OpT/sDT/sGL27IyA3tbxORn87KPxvsm0yKP3z7tsE6EL0uZTIxgneoZomir5HuWRj duU6xhUWnhMZvF77DXY5px93XrWW/zbj+jeGCsqidRp+nBCE08lq8lbP7INa0XoJj5AP AQlA== X-Forwarded-Encrypted: i=1; AJvYcCU0E04rOBHsCnwymC3hYoBbDmGUBu7B954X4W3tpAvOhvlSagHE0I8Yn3iGf58diJLAZ0E2wcAa2DHAcLpuJAruIGDxXIaA7wcqSqiH X-Gm-Message-State: AOJu0Yzrtubq3dXuG9R17SnULvBB/FEtkA4tA0zZP/mICtCPVNQqtdq5 hkfD3W/a8TVpNouNZcjhEYXtXiIZLnxZcvSkdifiC9x/gGKkGGGg24IfgYT/DAI= X-Received: by 2002:a05:6214:1392:b0:690:d13a:3851 with SMTP id pp18-20020a056214139200b00690d13a3851mr5162275qvb.1.1710213860981; Mon, 11 Mar 2024 20:24:20 -0700 (PDT) Received: from [10.5.0.2] ([91.196.69.182]) by smtp.gmail.com with ESMTPSA id o8-20020a056214180800b0068ff79d8d97sm3267551qvw.41.2024.03.11.20.24.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Mar 2024 20:24:20 -0700 (PDT) Message-ID: <7a26275f-7ed9-49a8-90ec-798f2f2de195@joelfernandes.org> Date: Mon, 11 Mar 2024 23:24:15 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 15/30] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y Content-Language: en-US To: Ankur Arora Cc: Thomas Gleixner , paulmck@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jpoimboe@kernel.org, mark.rutland@arm.com, jgross@suse.com, andrew.cooper3@citrix.com, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, rostedt@goodmis.org, David.Laight@aculab.com, richard@nod.at, mjguzik@gmail.com, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, rcu@vger.kernel.org References: <20240213055554.1802415-1-ankur.a.arora@oracle.com> <20240213055554.1802415-16-ankur.a.arora@oracle.com> <20240310100330.GA2705505@joelbox2> <87r0ghl51f.fsf@oracle.com> <66820daa-421b-469a-a7e8-ae7ae9dfa978@joelfernandes.org> <87wmq8pop1.ffs@tglx> <5b78a338-cb82-4ac4-8004-77a3eb150604@joelfernandes.org> <87msr4f8cj.fsf@oracle.com> From: Joel Fernandes In-Reply-To: <87msr4f8cj.fsf@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/11/2024 11:16 PM, Ankur Arora wrote: > > Joel Fernandes writes: > >> Hi, Thomas, >> Thanks for your reply! I replied below. >> >> On 3/11/2024 3:12 PM, Thomas Gleixner wrote: >>> On Mon, Mar 11 2024 at 11:25, Joel Fernandes wrote: > > [ ... ] > >>> What's wrong with the combination of PREEMPT_AUTO=y and PREEMPT_RCU=n? >>> Paul and me agreed long ago that this needs to be supported. >> >> There's nothing wrong with it. Its just a bit quirky (again just a point of >> view), that for a configuration that causes preemption (similar to >> CONFIG_PREEMPT=y), that PREEMPT_RCU can be disabled. After all, again with >> CONFIG_PREEMPT=y, PREEMPT_RCU cannot be currently disabled. > > I think the argument was that PREEMPT_RCU=y is suboptimal for certain > workloads, and those configurations might prefer the stronger > forward-progress guarantees that PREEMPT_RCU=n provides. > > See this: > https://lore.kernel.org/lkml/73ecce1c-d321-4579-b892-13b1e0a0620a@paulmck-laptop/T/#m6aab5a6fd5f1fd4c3dc9282ce564e64f2fa6cdc3 > > and the surrounding thread. Thanks for the link. Sorry for any noise due to being late to the party. Based on the discussions, I concur with everyone on the goal of getting rid of CONFIG_PREEMPT_DYNAMIC and the various cond_resched()/might_sleep() things. I'll also go look harder at what else we need to get CONFIG_PREEMPT_RCU=y/n working with CONFIG_PREEMPT_AUTO=y. thanks, - Joel