From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756698AbbA2RRr (ORCPT ); Thu, 29 Jan 2015 12:17:47 -0500 Received: from smtprelay0191.hostedemail.com ([216.40.44.191]:33776 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752720AbbA2RRp (ORCPT ); Thu, 29 Jan 2015 12:17:45 -0500 X-Session-Marker: 6E657665747340676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2890:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:3871:3874:4042:4250:5007:6119:6261:7875:10004:10400:10450:10455:10848:10967:11026:11232:11658:11914:12296:12517:12519:12740:13069:13311:13357:14096:14097:19904:19999:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: coach30_7d312252c5b41 X-Filterd-Recvd-Size: 1974 Date: Thu, 29 Jan 2015 12:17:39 -0500 From: Steven Rostedt To: Xunlei Pang Cc: Peter Zijlstra , lkml , Juri Lelli Subject: Re: [PATCH 5/5] sched/rt: Optimize find_lowest_rq() to select a cache hot cpu Message-ID: <20150129121739.5a9b4b99@gandalf.local.home> In-Reply-To: References: <1421642980-10045-1-git-send-email-pang.xunlei@linaro.org> <1421642980-10045-5-git-send-email-pang.xunlei@linaro.org> <20150127142136.GE21418@twins.programming.kicks-ass.net> <20150127095626.707e434d@gandalf.local.home> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Jan 2015 00:42:47 +0800 Xunlei Pang wrote: > I think the responsiveness is the most important feature for RT tasks, > so I think: > response latency > cache > SMT in significance. Unfortunately, sometimes cache affects response latency. > > I was wondering if we can take the cpuidle state into account like > current find_idlest_cpu() for CFS? > cpupri_find() can be easily modified to indicate the CPUPRI_IDLE case, > then we can select > an optimal idle cpu to improve RT tasks' responsiveness. For other > cases(mostly non-idle cpu), Even if that idle cpu happens to be on another NUMA node? -- Steve > I think we can rely on the existent sched_domain iteraction to select > a cache-hot cpu without > caring too much about SMT.