From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AFD87C43603 for ; Mon, 9 Dec 2019 09:19:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A6732072D for ; Mon, 9 Dec 2019 09:19:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727522AbfLIJTI (ORCPT ); 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. [...]