Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4705932yba; Wed, 8 May 2019 01:04:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq17UUvPVLWxWX7wgYGfS/g5hC8heGVCkKoN9LpgruBsrPKIggBDrTL+qpv2hfquf002LK X-Received: by 2002:a63:d615:: with SMTP id q21mr25754399pgg.401.1557302679818; Wed, 08 May 2019 01:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302679; cv=none; d=google.com; s=arc-20160816; b=q9+zGUwd+2lt/XKXOZZZAdV85gNASi5VwoajRq0JQtmEPidiFPCzIEDe7mUSWMQyFr glsAeDwhoFfbaXoN95vKsOTDKFTOvVxqWCDwLhIckiNVHAOKtKOWH5ry5+bQRbdmk6rY 8Op/9lkfTijmWouHQykhJzRn1X7ITYLm/cZbPdbwIbp8nX5CANYijGwwkRSO5pDCaZN4 qQymqgusU18iTfn/BUSMOpysitlNNhibxNTnX+n2s23Mm2Nb7SjGDHJ3fqxjhiypfAG2 XdAqU3iFOoJYUnsDuHuOlniXUCBdk+GcxVJY2Ct29glfygUIboQcqSQsvXe2xUd+4IpA JWUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qA0Yc9JEsajyNVp94ZanoqlO08a0Z8R0wevUOSzCv6s=; b=U+6xKFqthcEny69suMwC+iGb5NYSQTYkNRT4Gij5Bb6MQg4+ECaDXPrdBnpdZ8Fokq NOmjQOD/6wUeeOeRz7dPmrR5M1zY4ixurrY30LVfbDJcNJF5CY4CvHEdHkc768jjV3dE LPy8+WvZPZ7CXr4DqeMVPFFX1G8lcVfsZLWm5Emou+8/07ZE0x8pp9CncwJr90bCRsnv BxEiic1B3sEuoBpfWf1s0f9KXm3ihdQbQB13YyE5Ibe8/N8YaADMkYTJTWpBZDRWv5+J o6h4Ty/Kpp/1QLBiVxrpi2xbnGfXtWVIkMKHoJqaSjEIsDuIkfCsEUSbBivX9+fH2tTA AaYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21si359338pga.403.2019.05.08.01.04.22; Wed, 08 May 2019 01:04:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbfEHIBV (ORCPT + 99 others); Wed, 8 May 2019 04:01:21 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38484 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725910AbfEHIBV (ORCPT ); Wed, 8 May 2019 04:01:21 -0400 Received: by mail-wr1-f68.google.com with SMTP id v11so5747673wru.5 for ; Wed, 08 May 2019 01:01:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qA0Yc9JEsajyNVp94ZanoqlO08a0Z8R0wevUOSzCv6s=; b=X6/6/6CYXSi6D69TLdGxrocX1NA3NLXmbcziv1gSzx5YUzyneHsWj2DbyN/gezyI01 CpWQxG5lMPViHNSUbNZJLB/Z/BzMcXHoTtiCISM4yYribga3kdnLelLQCfGREAtksD8A 0oUEXJMU2qCABqTenl5ufXahcXlnGDd+5A9YO3UeZiWqmYF+LKdhBZqnlouWvZwWy/vs 7PoinFjXSdILA2uLUoymPvwOttaI21w0suq6On7M6a9QwTo3KAgkoWKggeOtbnr1X/MS DENTZHSuiTdDvwDMNOP7KspGI9v19tABu5hqlhKySROnJ631GqknYAwsERwnWBb9xC2H 4ieA== X-Gm-Message-State: APjAAAXJq/lsf5WWqc2RWKhmijrTQlBo2rGmMQKMEDfuXH0qvmWIXOT8 6mXAHQfvx6kN7MDuJdmnEC6o6A== X-Received: by 2002:adf:fc51:: with SMTP id e17mr1814707wrs.243.1557302479659; Wed, 08 May 2019 01:01:19 -0700 (PDT) Received: from localhost.localdomain ([151.29.174.33]) by smtp.gmail.com with ESMTPSA id b10sm27630443wrh.59.2019.05.08.01.01.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 01:01:18 -0700 (PDT) Date: Wed, 8 May 2019 10:01:16 +0200 From: Juri Lelli To: Luca Abeni Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J . Wysocki" , Ingo Molnar , Peter Zijlstra , Vincent Guittot , "Paul E . McKenney" , Joel Fernandes , Quentin Perret , Luc Van Oostenryck , Morten Rasmussen , Daniel Bristot de Oliveira , Patrick Bellasi , Tommaso Cucinotta Subject: Re: [RFC PATCH 3/6] sched/dl: Try better placement even for deadline tasks that do not block Message-ID: <20190508080116.GE6551@localhost.localdomain> References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-4-luca.abeni@santannapisa.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190506044836.2914-4-luca.abeni@santannapisa.it> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luca, On 06/05/19 06:48, Luca Abeni wrote: > From: luca abeni > > Currently, the scheduler tries to find a proper placement for > SCHED_DEADLINE tasks when they are pushed out of a core or when > they wake up. Hence, if there is a single SCHED_DEADLINE task > that never blocks and wakes up, such a task is never migrated to > an appropriate CPU core, but continues to execute on its original > core. > > This commit addresses the issue by trying to migrate a SCHED_DEADLINE > task (searching for an appropriate CPU core) the first time it is > throttled. Why we failed to put the task on a CPU with enough (max) capacity right after it passed admission control? The very first time the task was scheduled I mean. Thanks, - Juri