From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 51DC23FF1D8 for ; Fri, 15 May 2026 15:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778860621; cv=none; b=VthIk2i6tTKmVrcThjtHU2mVnQAH5lrpXWWqTxSC0HkXTC3oE/uoq2NoLgi/whRjOq5Ph39bnWudWnLlT/IBRJqQhRwF6iQbPLl/YkWHlyEMLmspSucT7WFf5gYc/aflVrrlwjgrxGhvi93pQn4zRgLeZq/yPnWF96C/ujJ4TyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778860621; c=relaxed/simple; bh=vCAhS13Q9dv+SXHw9KZiV7heuiU4/yn2shCPfJbS5bU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=IksIQ9n0NcLgSVTITCvga2G/J2aB8OImVzDwspg9JOVEc3nZ0+rvfyIWyh7T/wIS+iQC74mnkPnCTia/exqgXIWlKb/h77jLfWyai+z02YCi+aFonAOc1l4xh0UA8KcACE46wDs/eX852RZkmIDpHzV5LQ1FjXwBkUtAt8uiS+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WU5PisfB; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=EGSMEA3/; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WU5PisfB"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="EGSMEA3/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778860619; 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=LkmRzKWCOTaAIzAGakRFIeUrVYf02OXOPFbpElilTrU=; b=WU5PisfBakywsvJZ6YWVMQmwZy92A4oJtd0I7PN6HcD857CSLAPKwlaZlxTQ0qUIjuax/8 jPQQPJtuD9r5nAAmNCVoGCFWjKJVs0AayDiNKpMRGwMjUHR1AMBRbAdFqamifGY8LcVSXu 4ipAQsNEvpB+HN5GVOJh0/4EpPE+s3s= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-33-d4Wp-HlTPk-X_Hc9nYqQew-1; Fri, 15 May 2026 11:56:58 -0400 X-MC-Unique: d4Wp-HlTPk-X_Hc9nYqQew-1 X-Mimecast-MFC-AGG-ID: d4Wp-HlTPk-X_Hc9nYqQew_1778860617 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-48fd8162ed7so16013665e9.2 for ; Fri, 15 May 2026 08:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1778860617; x=1779465417; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=LkmRzKWCOTaAIzAGakRFIeUrVYf02OXOPFbpElilTrU=; b=EGSMEA3/9s/bYzjOmS7vjkOSb+vfcgt/VangZ0cjYuZgdq3AXxHtuJ1v3+mywrAAar +CCZlD/iH+hcpoKPlD6zR52KgKZdNxbq+qP6gX1ypm2fGFBOIXyEUXntbSVaAUx64+L9 rt/WX3VgGKQj/XW4v30Y7aPncnpkPUumm47tI8KLssEVDjRhGUMehMqfyzTeqkpylmNt IYgio6J2jvgKOaRBqED5Ff3rDFZ6s1XfphroS3Y6SMUnlXcyLg2roflEr0nFIuCaFehl /vAB5y55WoiHUE+r4uKEo4Y5v7yZiqKU6Le3Htzqox37y5u1FAh3TaW+YHOTZrc1kb3Y F50A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778860617; x=1779465417; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LkmRzKWCOTaAIzAGakRFIeUrVYf02OXOPFbpElilTrU=; b=qTxiMdQksGt8ElNltpBINwyLzZsCht6Y9e+eDUgYKr19JVAyVDVVqeCvRGq4iDPXwr L7+4Lb/OQmUnFT68nKHDYr1eLTFSe45cEIbei2aAM5Jvay3blWoP9QB0qv2uGqqoZAxx xZJwxdfmQEzZRtd7k5dbFN7/saBB2VdltgA89feLdOu8pZ5PFRqD/dIfKTN3ev1wJh8Q /8+viWjRfJ8jtQVjP4mH5tjvbc1eP9eHjcEG2GcGJ0iS+P2Jf/Qsr3U+X5oL0m8yIZY2 kP1N4zGJdThqbnbhLbQd6+1yabDgUtRUxg+SMbeEdIH7QfLSnL4soQ6tdQiwKIW9eiNq n3eg== X-Gm-Message-State: AOJu0Yzs/PxNc/qUSAFneBowvsiI6A/JV6yNXZwuvAKqD+VoN/3twBm1 TWTHZCtKpp/k+XVV/X2Qn6EHWoYCRj0XUmgoGB2PF5X1p8ltulnLjjslbnj9D/XZ5uzhI2zWJ4j AbuYrSzk4P1bGDsQ9RtprT0jHeyat4Q7B4KOrRntf5gpv78Yf8IFnnQ26jCf5Qs1YYg== X-Gm-Gg: Acq92OHa4D4vLKItPwQxCDNzUnYSBoYiM1FJF2rLACBvMRuYH5zvNkylzolzsAGU4gV qYscBiCUffmzfwwtZTpV+6MSRpgi4GgJ2KL/zwskdPNcCgt1VpGPqOUv6OCx9yPpf7BgVVGCtH6 /D8RY/bOriFrnVkA66dXeuSnh73iH7Itp7XRAkR9R0lvG+lSSO2f8+oSnIpNVXoDViZDgLhaPGj BnkHavh2qglfSjCIHSj1AFU9rcwHPbICItb+nC2ZE8DfbD4+o8Lh9NtVM98Q0D3hrVTbXAkvS8k S7FjbfWRRRh4w4418DQz9E65xDT1zXjvAFvPiSZK7fH47KNoIXVYjZnrgDV+4PwdtZpB5tog+77 sTiShi/BdyGWFMJGirvpo0vYLlj+Yl9SnJMeFU4+gRsutKSSBl1XlI9u3KZ792yDF82+/SS0dNj Jn8ABrz+E= X-Received: by 2002:a05:600c:6992:b0:48f:e230:2a20 with SMTP id 5b1f17b1804b1-48fe662a1b2mr63610895e9.31.1778860616843; Fri, 15 May 2026 08:56:56 -0700 (PDT) X-Received: by 2002:a05:600c:6992:b0:48f:e230:2a20 with SMTP id 5b1f17b1804b1-48fe662a1b2mr63610595e9.31.1778860616488; Fri, 15 May 2026 08:56:56 -0700 (PDT) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-135-146.abo.bbox.fr. [213.44.135.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe57944c1sm80649075e9.7.2026.05.15.08.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 08:56:55 -0700 (PDT) From: Valentin Schneider To: Juri Lelli , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , K Prateek Nayak , Andrea Righi , Frederic Weisbecker Cc: linux-kernel@vger.kernel.org, David Haufe , Cao Ruichuang , Furkan =?utf-8?B?w4dhbMSxxZ9rYW4=?= , Juri Lelli Subject: Re: [PATCH v2] sched/deadline: Make dl-server nohz full aware In-Reply-To: <20260513-upstream-fix-dlserver-nohzfull-b4-v2-1-d3e9cbe5c845@redhat.com> References: <20260513-upstream-fix-dlserver-nohzfull-b4-v2-1-d3e9cbe5c845@redhat.com> Date: Fri, 15 May 2026 17:56:54 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 13/05/26 11:13, Juri Lelli wrote: > The dl_server_timer() originally caused spurious IPIs on nohz_full > cores, breaking isolation guarantees. While such IPIs cannot be observed > on recent kernels, dl-server timers for tick-stopped isolated CPUs still > fire unnecessarily on housekeeping cores. > > The problem is that dl-servers are not coordinated with nohz_full tick > state. Even when the tick stops on an isolated CPU, its dl-server timer > continues to fire on housekeeping, wasting cycles and potentially > affecting housekeeping CPU performance. > > Fix by managing servers in sched_can_stop_tick(): > > - When RT tasks run with CFS/SCX tasks, start the appropriate server(s) > and keep the tick running > - When only RT tasks remain, stop all servers and allow tick to stop > (except for >1 RR tasks which need the tick for round-robin) > - When only CFS/SCX tasks remain, stop all servers before stopping tick > > Introduce dl_servers_stop_all() to reduce duplication and abstract > server management from core.c. Unify RT handling into one block that > handles both RR and FIFO cases. > > Note on SCX: While SCX is incompatible with isolcpus=domain, it does > support nohz_full. The ext_server handling in this patch targets > nohz_full configurations without domain isolation. > > Fixes: 557a6bfc662c ("sched/fair: Add trivial fair server") > Reported-by: David Haufe > Closes: https://lore.kernel.org/lkml/CAKJHwtOw_G67edzuHVtL1xC5Vyt6StcZzihtDd0yaKudW=rwVw@mail.gmail.com > Signed-off-by: Juri Lelli Reviewed-by: Valentin Schneider