Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3873805ybl; Mon, 9 Dec 2019 01:21:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxkA26+pZv78Jr6MIPijsrXGDs3z4uzZ/kjqbGBr79NfOx2aYcnFxtEWgqbpjNCoomDjs/A X-Received: by 2002:a05:6830:1e7c:: with SMTP id m28mr21209276otr.131.1575883261813; Mon, 09 Dec 2019 01:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575883261; cv=none; d=google.com; s=arc-20160816; b=R+bVceLPd6CLDyy5XJM4869A3bKI8Dn7JNj3fIMHfZud6pMpDNI+fSBRJ9k4zqebE8 FZasbrtuZ7jkbWqGBDuXdHQegtCcyL61CbatiTJ6PAtvJct6R3k0tQeRp4ia/Ut4Hel/ EAiQdgMUNyyysJEO5PlCzzr7VUpuNbU4H/mgVP1OAlUyVuXRLIA/Hu7OPhr4OpIcOr2M WRWu/DYPiuyMHMTpxEd9VJ8/p/yRIKWdvPMa7OomDPkZ8XpP6mWwgpwc+pvRCZvfuznt T7spVFE+XA6Z0r6HGEcLVhwilfFAJ0QqaKLjZOVY9CU98iWS9zrbz7SAGkzJ1HjtV/FP UqdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GZ7rDHKgEU3s5GWFkrnQ0U8BSFPpBg/2OUC6AG4NlLI=; b=VUdXlrWrb/aOEUjRNPhQLZaE6QWXiKU1S+ZDONExEEBr2Qk3LWan0T77MmWc/ctYhc s3a+UbE+Julo0mClwlpMOzwiLQ9Fhn+QZEIUOXCwmvKs78CcNOXM/JMvT9lY8lXOBEa+ hj4737nq7gX6iGtlxE+eRcMYYLQXMby1d1jycxUrpuIFeZf+EGDilHvsQSpfXmTVklY2 vlPJJiPZEhxQkQqmoKjiuiuM8GVNnM2fj4NaTyXkj2DmtcecmPA8pi98V78oPw4g4Sks 8DdCyTZlCD6resB6rmlkDzaLUSvZjSjr47AF8EvujxgPe1mG0NCs3EiIDH99XyTHs+Zo rqhw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si4410707otk.84.2019.12.09.01.20.50; Mon, 09 Dec 2019 01:21:01 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727517AbfLIJTI (ORCPT + 99 others); Mon, 9 Dec 2019 04:19:08 -0500 Received: from foss.arm.com ([217.140.110.172]:52738 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbfLIJTH (ORCPT ); Mon, 9 Dec 2019 04:19:07 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2DAB3328; Mon, 9 Dec 2019 01:19:07 -0800 (PST) Received: from [192.168.1.13] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1766F3F6CF; Mon, 9 Dec 2019 01:19:04 -0800 (PST) Subject: Re: [PATCH v2] sched/fair: Do not set skip buddy up the sched hierarchy To: Josh Don , Vincent Guittot Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel , Paul Turner References: <20191204200623.198897-1-joshdon@google.com> From: Dietmar Eggemann Message-ID: Date: Mon, 9 Dec 2019 10:18:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.12.19 23:13, Josh Don wrote: [...] > On Thu, Dec 5, 2019 at 11:57 PM Vincent Guittot > wrote: >> >> Hi Josh, >> >> On Wed, 4 Dec 2019 at 21:06, Josh Don wrote: >>> >>> From: Venkatesh Pallipadi >>> >>> Setting skip buddy all the way up the hierarchy does not play well >>> with intra-cgroup yield. One typical usecase of yield is when a >>> thread in a cgroup wants to yield CPU to another thread within the >>> same cgroup. For such a case, setting the skip buddy all the way up But with yield_task{_fair}() you have no way to control which other task gets accelerated. The other task in the taskgroup (cgroup) could be even on another CPU. It's not like yield_to_task_fair() which uses next buddy to accelerate another task p. What's this typical usecase? >>> the hierarchy is counter-productive, as that results in CPU being >>> yielded to a task in some other cgroup. >>> >>> So, limit the skip effect only to the task requesting it. [...]