Received: by 10.223.164.202 with SMTP id h10csp899969wrb; Thu, 23 Nov 2017 08:01:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMbxwz1CRpQIRSgSR4EBp+YENCjaF6KaLbHFZmt19FJA/0Lp6V34T0oGZleU0x7DeMA86/1s X-Received: by 10.84.217.150 with SMTP id p22mr13923060pli.427.1511452879558; Thu, 23 Nov 2017 08:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511452879; cv=none; d=google.com; s=arc-20160816; b=x2G953b+KvZ00lLrNpEFbGvffYZvtZobLdzCo9Z0Lz+Rw4JwDWfK3B39IMR8eEJovd s0K7VRWwhjzQJ+f7xcMTI7rlocqWrye0/7DUAeT9nh585mHdfcmS4C4gN83ry7PGxApq ENEnNUF+gXV+QviQzCGjQAIgu5jmoTNGVSpW1L0AgrK3jBR0K7BdSREQwaryMGmkzoiA FyLM0M3uiXqh0Dab1l7Hr9CJPc66cono05x/Ot9qVWQNh6GSvSJ/NTbk9NnG5P44wlKB 0/sYPhqFu9O66j43YTrg/AFkVi4w0+kBED2b8xowQkQz9VRhqBfjsVYSf6WX00seu3Y0 /kqw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Lx+wmOv9ZeBKCGWNBKS7FIRKf8yR1dOQhxcspCepav4=; b=XMzmlMCpT9Z5qmG9XPYjFI1vC6KMFESa0Mn0OXHEHC9yizGoG3x9L51gbI6FJdWAVn ZEIqg0MzE7htJLqIQGXDBqloMofBJQAV2gE07OnNxLQ4tk4VyU8rVsm/E2zdLT0loGng n/hWpj+rjVtduqgpIYCyxKlDOvhOaq9Pcr1ltZ/wHrv8uBzJEHtrIqrP5AwBwQSpG+tl BSY1SnnfuS8wRnmUmPJ/DB+Zok8fBdH/MQVhlOfSWaXVhXVfnBzl2NB7yzKOTcEDw+r5 1OVK//d4B5TSDTA05IbVifBbUW5npdWxTKhu7/Pw1SqfuTBA8fbCBH4VcYMM7yCpoGbb H9mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=wdq9Nxq4; 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 t8si6270512pfh.382.2017.11.23.08.01.08; Thu, 23 Nov 2017 08:01:19 -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; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=wdq9Nxq4; 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 S1753058AbdKWQAK (ORCPT + 76 others); Thu, 23 Nov 2017 11:00:10 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:38049 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753013AbdKWQAJ (ORCPT ); Thu, 23 Nov 2017 11:00:09 -0500 Received: by mail-qk0-f195.google.com with SMTP id a142so21488681qkb.5 for ; Thu, 23 Nov 2017 08:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Lx+wmOv9ZeBKCGWNBKS7FIRKf8yR1dOQhxcspCepav4=; b=wdq9Nxq4sZpeOsRVTKvEiUtc74jxeZ+NOWuloQt2uxw1gHFfVdTbQEr75lH6E3Q3y0 zGorzueOTFWB3ycVrLPgJ/wmWzwqbhbYJXs4HVgihI7ciyeIylhna/OAs+1iTwcxXUoJ GVuEVYTjO3Oi+6l9O8Xn6lvK77Gorqvt0T3/XyyVdxJsd2Kz5DCKlKhp2eHJh13odyTK RJ/mZnM08iFAmYCi7MVw8HWtNeyGlTqfEI0PVpKLv7fPRAJ8cH9vTl+Tf+qxLQRVLN25 PVq1HCDyZncT/ZfbMb5XIcsc1e5LgDgTy0DTqEkpIlNpl4Wu9pUqiAAqX+i+0tHkRcr/ x1dw== 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:content-transfer-encoding :in-reply-to:user-agent; bh=Lx+wmOv9ZeBKCGWNBKS7FIRKf8yR1dOQhxcspCepav4=; b=Vp1zOeS2FDXlfP3NbvDyVzjKkJOEgK2Gn4Gwm87lMeqcV3vblKHCCHsVdoFHis1nDA pEU5ZeAz1vU03Dd6TdjTZMjSZgN28VRts9TjPQDjJawAa005U1fbbqhPobZ3HYxE/nM3 gMt+4s13GWu+faFU89mOkbKlXtvA8QiCPPyuvIfR0SHgUqqTvBv06MY7uMTYYe26XQFz KBIDUSecXlGuJGk3lYPslD8p7hTiv1I1RtX+P4fpVIMZSV0jbz6B6JAOympfOFVQb/SI daGgvN39/Px3qre4jZ3eUpfYJ8IzDubN5+7b1EaYOpthqJ1ogi3OceXtqn5HsyDhAVSB AG6g== X-Gm-Message-State: AJaThX58oR80Ndn4xwev+tzrqqeo4dQuKztSy4YOcePu6qn1lw/fFeVn D5oIZDt0F0J2FGCfbqlvrPtFEW/NoTM= X-Received: by 10.55.70.77 with SMTP id t74mr10434396qka.342.1511452808636; Thu, 23 Nov 2017 08:00:08 -0800 (PST) Received: from localhost (cpe-2606-A000-4381-1201-225-22FF-FEB3-E51A.dyn6.twc.com. [2606:a000:4381:1201:225:22ff:feb3:e51a]) by smtp.gmail.com with ESMTPSA id 68sm13441124qkw.96.2017.11.23.08.00.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 08:00:08 -0800 (PST) Date: Thu, 23 Nov 2017 11:00:07 -0500 From: Josef Bacik To: Mike Galbraith Cc: Uladzislau Rezki , Atish Patra , Peter Zijlstra , Joel Fernandes , LKML , Brendan Jackman , Josef Bacik , Ingo Molnar Subject: Re: [PATCH RFC 1/2] sched: Minimize the idle cpu selection race window. Message-ID: <20171123160006.tik2loyzzlavf5ub@destiny> References: <1509427662-25114-1-git-send-email-atish.patra@oracle.com> <1509427662-25114-2-git-send-email-atish.patra@oracle.com> <20171031082009.rxxa57goto6q5xld@hirez.programming.kicks-ass.net> <49e98b00-80c7-b3a4-30fd-bccb382d002b@oracle.com> <20171123105247.wcl2fiypge2pvile@pc636> <1511442781.6505.26.camel@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1511442781.6505.26.camel@gmx.de> User-Agent: NeoMutt/20170714 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 23, 2017 at 02:13:01PM +0100, Mike Galbraith wrote: > On Thu, 2017-11-23 at 11:52 +0100, Uladzislau Rezki wrote: > > Hello, Atish, Peter, all. > > > > I have a question about if a task's nr_cpus_allowed is 1. > > In that scenario we do not call select_task_rq. Therefore > > even thought a task "p" is placed on idle CPU that CPU > > will not be marked as claimed for wake-up. > > > > What do you think about adding per_cpu(claim_wakeup, cpu) = 1; > > to select_task_rq() instead and possibly get rid of them from > > other places (increases a race window a bit)? > > My thoughts on all of this is that we need less SIS, not more. �Rather > than trying so hard for the absolute lowest wakeup latency, which > induces throughput/efficiency robbing bouncing, I think we'd be better > of considering leaving an already llc affine task where it is if the > average cycle time is sufficiently low that it will likely hit the CPU > RSN. �Completely ignoring low utilization kernel threads would go a > long way to getting rid of bouncing userspace (which tends to have a > meaningful footprint), all over hell and creation. > > You could also periodically send mobile kthreads down the slow path to > try to keep them the hell away from partially busy CPUs, as well as > anything else that hasn't run for a while, to keep background cruft > from continually injecting itself into the middle of a cross core > cyber-sex. > And on this thanksgiving I'm thankful for Mike, and his entertaining early morning emails. Josef From 1584862741249447957@xxx Thu Nov 23 13:14:51 +0000 2017 X-GM-THRID: 1582749826108377580 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread