Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935095AbdCWWqm (ORCPT ); Thu, 23 Mar 2017 18:46:42 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:50579 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932164AbdCWWqi (ORCPT ); Thu, 23 Mar 2017 18:46:38 -0400 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: byungchul.park@lge.com X-Original-SENDERIP: 165.244.249.25 X-Original-MAILFROM: byungchul.park@lge.com X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com Date: Fri, 24 Mar 2017 07:45:59 +0900 From: Byungchul Park To: Steven Rostedt CC: Peter Zijlstra , , , , Subject: Re: [PATCH v3 3/3] sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq() Message-ID: <20170323224559.GT11100@X58A-UD3R> References: <1490235169-370-1-git-send-email-byungchul.park@lge.com> <1490235169-370-3-git-send-email-byungchul.park@lge.com> <20170323094445.qatkzhafbhpsm6vs@hirez.programming.kicks-ass.net> <20170323103651.GQ11100@X58A-UD3R> <20170323070824.5f0ead54@vmware.local.home> MIME-Version: 1.0 In-Reply-To: <20170323070824.5f0ead54@vmware.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB06/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/24 07:46:35, Serialize by Router on LGEKRMHUB06/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/24 07:46:35, Serialize complete at 2017/03/24 07:46:35 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1306 Lines: 30 On Thu, Mar 23, 2017 at 07:08:24AM -0700, Steven Rostedt wrote: > On Thu, 23 Mar 2017 19:36:51 +0900 > Byungchul Park wrote: > > > On Thu, Mar 23, 2017 at 10:44:45AM +0100, Peter Zijlstra wrote: > > > On Thu, Mar 23, 2017 at 11:12:49AM +0900, Byungchul Park wrote: > > > > It would be better to avoid pushing tasks to other cpu within > > > > a SD_PREFER_SIBLING domain, instead, get more chances to check > > > > other siblings. > > > > > > Did you forget to post the rt equivalent to patch 1? > > > > No. Fortunately, rt currently works as patch 1 does. > > I'm thinking that the rt and deadline search for lowest rq functions > should be merged as one. > > What they are doing is looking for the rq with the lowest priority. > deadline currently doesn't care if it picks an rq with an rt task > running on it, even when there's an rq with no rt tasks that the dl task > can migrate to. The same goes with rt. It could place an RT task on an > rq running a deadline task without knowing the rt task wont be able to > run on that cpu immediately. I also think so. And IMHO there are more things to care wrt rt/dl migration. As you said, the cases should be considered and fixed. I wonder if the rt and dl seartch should be merged as one though.. Thank you, Byungchul