Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2230926rdb; Wed, 21 Feb 2024 00:43:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5esRS1e2aJl+rZJhU5NhNPWmRdvMOiDvdHsGSF3ajrCSNuERX2l+f4zS66IEAnXq3z+uDel1cp37JlsXCYdSnmrm15c02HFZg6y6OEw== X-Google-Smtp-Source: AGHT+IGX7A7oBcXN3BPuBwUvcrTt0VDNM9LR0cv8z22qyd0rTeKx3ruxzbo3uMyZrTgsBBHhkJD1 X-Received: by 2002:a05:690c:d96:b0:608:2324:129a with SMTP id da22-20020a05690c0d9600b006082324129amr10528680ywb.27.1708505019963; Wed, 21 Feb 2024 00:43:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708505019; cv=pass; d=google.com; s=arc-20160816; b=ATcHk3O46Np1kOorrpND7mwKJ5+UNLPAJtTlQ5I4i4Q3SdQCl9rokf6fNDerqJ+HpJ RjWAAWr2yRZKJF8NO1EP7JpwIqNi4BuLfOIeJorHUwKPSljw/9nW8Ecols/UxtwhmpLb iQewrMreQdU1qadH6YlYo1I3wuw+Sj6Wqmez+o42S72g8O7HqSHOY33Twqp45QwSF3HK nJxbn42otJ6aR6mavpqfQAOMXTnYpvPNIVTMGByL9A865rmNUwKQuDlGmreeTkmgZq4O sLD+/eeHMPAOfQIHtCUouzpAq03XaCQ91RBzey5OQu6ttM4TQ9PamCnsjNcqVbhFDifr 5oGA== 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=yOO1jn5FlcHLjD2SbjQR7wjrXAyZAgfcEkviPlszCt8=; fh=7cLh4w+L9JXivuiTEu/ytzzmZjl6l4c/FYPafW/MUpI=; b=Nz8H+IOfBAzBWnTZoGU5Bzg1w/a0iR15/xeCTwr+guuZ9FsGivt6Nb6VTS0V+jhITZ /jJeWEJpZAyRVixzgOMplRxFfXBKYKjd/nQyPv7CgsStwcPMlfMiEDZV0taBuJWkrIQi 8hSoT/4yCVzjtz/WnoiQ+WWl+RFzfo26NMziZmdZyx3nxXrQjUilmuF8x9nibN4I/DPG AWOP+6qe7ac30pW5v+ccO279rZybzNZVILNn+++qloFudcrUoyHgVQ88hgSzdWtXSFQr 0VASdkJbEy/TccejYkFaVOZYzd4HE2N67jWZpvqDuS6cc7WmkOc/yGlg8/RZZIz93xkC cI5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VFfFOmAT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e22-20020a656796000000b005dc6cbf8440si7946409pgr.99.2024.02.21.00.43.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 00:43:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VFfFOmAT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 B8594B24C05 for ; Wed, 21 Feb 2024 08:40:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADC3F3C680; Wed, 21 Feb 2024 08:40:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VFfFOmAT" 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 A264E23C9 for ; Wed, 21 Feb 2024 08:40:07 +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=1708504809; cv=none; b=Jcdp7qtibLClEEarh/G8lV8XFEE/3dgx+4EQkUqPvyghKJEgvfkBphxv3eK5wX1uOT/7IqFNKy5ccmtTGABYYpRjlqfmXQKz7QoHIQrcjt9g1Cd+g4PTjK9M+ylqcHFwHqbAVbB1cvskIYoibDmsBY5fcVU/B11orQ9ixgHD3KA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708504809; c=relaxed/simple; bh=pUEl11BcCsOIEWi6Mzedew/TXQso5EQeV2AjKG2VvmY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cB1e03MZ9IxR6j6/uJXt1QfyLPCp+ZlK85fkI7IaWA1ldo/qFwKj7FkM2lNpLAWFFZOQ4xCDeTEKIMQR4A6uVAwBhvxsg3FLtQhYJqYpXexZuDjiYCInyghcwqi7Fp8u7gLVqhsp2FsunIlhWcLyA0Ggs1HHC1kDBkUS2v3JSJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=VFfFOmAT; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708504806; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yOO1jn5FlcHLjD2SbjQR7wjrXAyZAgfcEkviPlszCt8=; b=VFfFOmATsyNcraA/hw0gwSZrbBtYnFKgJtm5r2IGK1k9esugXL6P3TAK2n5s/oHZwyk08+ UGrxIpB4vEWT8YKfPe2xMSmzOeIriFS9gyG1wImai6sF3lif8zMq8Ar9zpNmUEp9XO2wW5 DJ7/4ti8AvTCWuAesX82OymbPdqZx1k= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-153-B8GAVw51PcWyN7lDy9uLCQ-1; Wed, 21 Feb 2024 03:40:03 -0500 X-MC-Unique: B8GAVw51PcWyN7lDy9uLCQ-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a3f3c382ba9so22468966b.2 for ; Wed, 21 Feb 2024 00:40:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708504802; x=1709109602; 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=yOO1jn5FlcHLjD2SbjQR7wjrXAyZAgfcEkviPlszCt8=; b=nDs/Lw7wEFQ8iiG+lj8CWGEwjjGRf7SiiEjdJAaT2Jb+bKEPAq4cW6+ZX65HuQYACK 8bvhpmYX0B/i59qzNk2qSfQiUYVQSgO2pl5iry6eVjt37qd9qpf41QMn0+3DrFoJqDZE VYz7p+6HsfN7Y8NyipEhy1ptQT94a+JnWmCw6G0IwU7JpDtwXh0v4+UVVO7AXx3VDU+q Zfrk0d2ODOFdQZsubuZGf8wCsgjlO0RZfcdXhGyRZZ/UnFrZPeXAFxuYyGma8WZPtg14 uOpHhu/TaefYI+DW8lKEdriomJBqDTAXZGdN36DCvVwthIy8jqTlp4YWNQjCRpFQzm7z LclQ== X-Forwarded-Encrypted: i=1; AJvYcCUysFRFraskZK4xEh5RtMpwY7wrQvRVBBruVqint6x+KGiMtcaOuNWce0NA44fslYPuwIRo+tDZU8eGYx8xc1lJv0LAIqjN5gDDkDge X-Gm-Message-State: AOJu0YyD3VuiGhaLixU4mq/o9MpHzIDfMMq1sAsv9djiGKs2QO1tiRVj HDa6RyNtl9in56jeSHdbfU8wtMbPsprDlldxdRVKB9yDdshe4Kb1WV0YlEgVxn1BYDgkHr40G/6 ULHIjRVlXcWSUa4Ioqyk1dqSRjcvIJ+DNs4yBtOSQ03wwSHoeXJQgJiutQokioA== X-Received: by 2002:a17:906:3d3:b0:a3e:e3a9:57e5 with SMTP id c19-20020a17090603d300b00a3ee3a957e5mr3605800eja.58.1708504802252; Wed, 21 Feb 2024 00:40:02 -0800 (PST) X-Received: by 2002:a17:906:3d3:b0:a3e:e3a9:57e5 with SMTP id c19-20020a17090603d300b00a3ee3a957e5mr3605786eja.58.1708504801857; Wed, 21 Feb 2024 00:40:01 -0800 (PST) Received: from [192.168.0.214] (host-79-42-200-4.retail.telecomitalia.it. [79.42.200.4]) by smtp.gmail.com with ESMTPSA id s6-20020a17090699c600b00a3efe1a2878sm1329238ejn.137.2024.02.21.00.40.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 00:40:01 -0800 (PST) Message-ID: <4acce183-b486-44d0-b9e5-affb957ee366@redhat.com> Date: Wed, 21 Feb 2024 09:39:59 +0100 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 06/10] sched: server: Don't start hrtick for DL server tasks Content-Language: en-US, pt-BR, it-IT To: "Joel Fernandes (Google)" , linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: Suleiman Souhlal , Youssef Esmat , David Vernet , Thomas Gleixner , "Paul E . McKenney" , joseph.salisbury@canonical.com, Luca Abeni , Tommaso Cucinotta , Vineeth Pillai , Shuah Khan , Phil Auld , Ben Segall , Mel Gorman , Valentin Schneider , Dietmar Eggemann , Steven Rostedt References: <20240216183108.1564958-1-joel@joelfernandes.org> <20240216183108.1564958-7-joel@joelfernandes.org> From: Daniel Bristot de Oliveira In-Reply-To: <20240216183108.1564958-7-joel@joelfernandes.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/16/24 19:31, Joel Fernandes (Google) wrote: > From: Suleiman Souhlal > > Otherwise, we might start it even for tasks in a sched class that should > have it off. If the task is fair, but it is running inside a DL reservation, we want the hrtick for the dl reservation. This is one of the reasons why we are moving to the DL server, having microseconds granularity for the boost duration (runtime). -- Daniel > > Signed-off-by: Suleiman Souhlal > --- > kernel/sched/deadline.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c > index 8fafe3f8b59c..5adfc15803c3 100644 > --- a/kernel/sched/deadline.c > +++ b/kernel/sched/deadline.c > @@ -2325,11 +2325,12 @@ static struct task_struct *pick_next_task_dl(struct rq *rq) > if (!p) > return p; > > - if (!p->dl_server) > + if (!p->dl_server) { > set_next_task_dl(rq, p, true); > > - if (hrtick_enabled(rq)) > - start_hrtick_dl(rq, &p->dl); > + if (hrtick_enabled(rq)) > + start_hrtick_dl(rq, &p->dl); > + } > > return p; > }