Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp546653lqb; Wed, 29 May 2024 03:55:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURWzpZ8Tvxgh5QUUWmDnIr1WTOSlb6nWJv9Nb/wFqjR3ccu7I0KNHk1UU/kG0+G3ajBoOMOSRKwpvb9wtria5I3oaLKhQmXOARrcAncg== X-Google-Smtp-Source: AGHT+IEpjUU8e6p5vLpXRC1lj/wuZto17vpSbjYvLvxajvk6yKEY/xCI8OaGsdnQwv/IeW6h5/fl X-Received: by 2002:a05:6a20:7f92:b0:1b2:487f:bb03 with SMTP id adf61e73a8af0-1b2487fc261mr8427024637.55.1716980143605; Wed, 29 May 2024 03:55:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716980143; cv=pass; d=google.com; s=arc-20160816; b=U3SatOUn3SEnZVCVLhv/PgaOLML6r2OFl6q8+TziduL9FI+0B7SnW3XcsPdvwDMlHA Pz9VzSTYZ6gKQAEDvXHbIYAc3cKIqmAbhFtEZhlb5A112BaMDklsFnebhSmItR19Df1k u0J2dCtdtHR4+h5yRNc3xEyQS9hqqErJkwBLqxllxIIjiFUvRfN9j5HolamD43hhfI8t sdHSRfGGgFT+gRuwPxDUhWF7xJ0MQ2Ry6tn7x2lK0CZZ9/uJf4t4ElNN7fsLiK4nuYK/ qVnIdSwtfIUs2zTxQi8DbcdCJksApzl7DS0Hr43UuphQCcwuRj6qH6aqAPHD1NkvZwi1 688Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=kA4MurLmU5SxwWcecswp4Ycsr4tLHf95RZmBe+KV4Os=; fh=PPZvyHn4NFTmc+39i1F+Zlldt/cCGqMNNOUKghc9hXQ=; b=BCpjEJkBpQkg4Li2gqJ3vJY5rQq9ZcuT+HqrPtqTljbxo7mnY/xzEskVrhNjZQdwpC 77mW+abJEbhJzGsOUK6tTR//3xsVghmkUsVh788ThBCLpnhnlemKBDryteJhExKHXZ8g 7ciLJEmexuVaidZvtmoM+5X464xRhk3n2WKej1t9kDmkmVRjLlw4XHI2+AuvaCTazZjT O8nKd/juZD/4MQLYUwEzTzguDou8xxx+/xuuyTji2vtfdACo4VUvkoJvSwwq1hLioBYP x9CsYBH47pEcAYKNnMCO4yh7K0u6Kg8iI1dkJ5B8ZmRuxocTqwOlbZde/MkG1ZaYZaBS fdwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LIiPydyI; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-193984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc36e59fsi9684932b3a.118.2024.05.29.03.55.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 03:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LIiPydyI; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-193984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D4717287CCB for ; Wed, 29 May 2024 10:55:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CEA717BB0E; Wed, 29 May 2024 10:55:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LIiPydyI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kWMmKXMo" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31021383A5; Wed, 29 May 2024 10:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716980134; cv=none; b=QD3/n8ugl0SioMPAnfrNFbLbFLI/raL7IrQmJL3pSBPNQl+rTpjIzYmT/wSvNvO5vW1BthMMqCLqByqDKMESKfMXZWnkJ31r/YyHn0kL9R18qLjUQyyQrtAuqwkHavluqn1x8VvKHWcJexAD4AiHUWo+oH3QPYqk9Fh/qhbUdJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716980134; c=relaxed/simple; bh=mAikLLuh69xtKMVd3whtMNnLuRnE3TGMOm2WH1S+BsU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SpfPFyTc3LxSTFkd/u2rkqocG9k3XqRVYKAySP7HCyEIh8NfwB4C+6E47zs88RVZoBKLnyQ3uvI1LnyQdnZF+xRMwipQCRevx+JLWYWanahYQEsXdHiyfl+WIsFt+fTWofzi6ZTkyS00GM2rHEd23sBw+KuIjjCvGjQC2b34Tdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LIiPydyI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kWMmKXMo; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 29 May 2024 12:55:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716980130; 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: in-reply-to:in-reply-to:references:references; bh=kA4MurLmU5SxwWcecswp4Ycsr4tLHf95RZmBe+KV4Os=; b=LIiPydyIabQcexxpMGlHDwk+xDOwD49YeVE2z3EFDkv4NOkGQWKrRMz/w0qwCEIgoia2TC Sj9iBqTx3uyhhHcZ81eGCrVLWNAX1fyEcOPvglWi30UXBO7kNnE3O5UmGQOpY9CCIZz4SL FrY4p9p08wpyliiYpKWf5vjQvjBglWco7ewffQ/HYuwMf/Z+jXBELPB7oRMarMSld5OVjM U0XQFWNmM4yXgKIPQab2vssaNZy1pxxnWWcYzwC8THlNIYQ62vPtwa1C7VWYdj0CfALXPk rogzb/UV4U7ehUWtgJi9Cmv0CcLnrH8mIRUuOGiENY1ybpmlhVnRYJ2nexXX1Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716980130; 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: in-reply-to:in-reply-to:references:references; bh=kA4MurLmU5SxwWcecswp4Ycsr4tLHf95RZmBe+KV4Os=; b=kWMmKXMouZlb+L2nNi1Gctnzl7Fmj8Wnd+alYWGuPzfsL8UgoSIOWdwof0ZhHtnnsOJBZ6 138VYhyCmiD3z4AQ== From: Sebastian Andrzej Siewior To: Qais Yousef Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Vincent Guittot , Daniel Bristot de Oliveira , Thomas Gleixner , Alexander Viro , Christian Brauner , Andrew Morton , Jens Axboe , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, Phil Auld Subject: Re: [PATCH v2] sched/rt: Clean up usage of rt_task() Message-ID: <20240529105528.9QBTCqCr@linutronix.de> References: <20240515220536.823145-1-qyousef@layalina.io> <20240521110035.KRIwllGe@linutronix.de> <20240527172650.kieptfl3zhyljkzx@airbuntu> <20240529082912.gPDpgVy3@linutronix.de> <20240529103409.3iiemroaavv5lh2p@airbuntu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240529103409.3iiemroaavv5lh2p@airbuntu> On 2024-05-29 11:34:09 [+0100], Qais Yousef wrote: > > behaviour. But then it is insistent which matters only in the RT case. > > Puh. Any sched folks regarding policy? > > I am not sure I understood you here. Could you rephrase please? Right now a SCHED_OTHER task boosted to a realtime priority gets slack=0. In the !RT scenario everything is fine. For RT the slack=0 also happens but the init of the timer looks at the policy instead at the possible boosted priority and uses a different clock attribute. This can lead to a delayed wake up (so avoiding the slack does not solve the problem). This is not consistent because IMHO the clock setup & slack should be handled equally. So I am asking the sched folks for a policy and I am leaning towards looking at task-policy in this case instead of prio because you shouldn't do anything that can delay. Sebastian