Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1135172ybx; Wed, 30 Oct 2019 10:22:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyLPhpz3iLMn3vkVE6/EJLJ2wIQ1DC9ea82F2WM0iEjg8/V7VATsmEaQXFkfuLukidQ7De X-Received: by 2002:a50:fa94:: with SMTP id w20mr865967edr.85.1572456127092; Wed, 30 Oct 2019 10:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572456127; cv=none; d=google.com; s=arc-20160816; b=dpTN7ggUAO6J638M3o4+uA099P3RBIM3UT/PPvHwEaE1gucZwaFAuKTJy/+gG0DWVF WUysOR9lWNW94KS0A2RX37LvVQ+s3tsZX/glg54Bbq783fotgAu838eIB794kn5bM+0G r4wcmt2eABqERlF1zTorFcqgD4GiWW4yLTirG9QLQXBeaJnn9ddSmrvtPa29d4ZaThig 3UtKO3rrefffEfiD9g77U2r8d7pMiU7ntIil+9IfBj+uSKEoRT/8W/MezH4ADWqaEKZx S9qvo2sGMMVPqb6gPb+SrUEXQX8Uq/cAkkaonR12179Tv9bB3fMlD1m3YIBHO6ytJpcO horQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dYb5zRD7pK3sLStdyv5gkgP6u1qsYdzN5mSOo4AiXXU=; b=VoMZJZSwa61scxlPRG64DAnInTzGvHoIDfqPTp2MdsUPEVWp6faGO0gMUdIEwlwGcO BYR/ou1+9MJ4ymXM4T9Mm6tS0eoHDOB/w3FLOtHhiAlU95EJoxiQqAa/M1lFXAsDecOT pmhpWhg21XjiZlC4rP/BMuT2mpYBLPdRVo+eQ+WwliDu+zTx6AOpkWa1SHbZjd31Caq0 AXdh81j4X1UHTkh5MpBEaDg4AljexpThE1LSQIMAFlUG0MbrzC4ZXNZ47BLCXzCJ3DL5 E87I9YzJJeRSEV6SJQY3r64WNbE4htk9462VUjSSfTGeEr6EAjl9vJC7X9D+fTp+tAu5 kEDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CbKJM/EM"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t16si1653022eji.304.2019.10.30.10.21.42; Wed, 30 Oct 2019 10:22:07 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b="CbKJM/EM"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727281AbfJ3RT2 (ORCPT + 99 others); Wed, 30 Oct 2019 13:19:28 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:24897 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726602AbfJ3RT2 (ORCPT ); Wed, 30 Oct 2019 13:19:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572455966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dYb5zRD7pK3sLStdyv5gkgP6u1qsYdzN5mSOo4AiXXU=; b=CbKJM/EMfHROzeiOE+UTvuycxiLNVlRJ3rW2Yifg1T5+EPIALdD6R0vS2FmUo4AJquf9iJ GE3q4M3pdVKq6JMb6P9F5NMDeUzkpnv0UYuupAcfV+f4wEhXmYI3XBw+XJoO0QDcc542H1 eGRaoSC6qPf2aDm3djMXm4XMw9VR908= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-51-7ZDI3WjNNs6B979ETWTejQ-1; Wed, 30 Oct 2019 13:19:23 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0B71A800D49; Wed, 30 Oct 2019 17:19:21 +0000 (UTC) Received: from pauld.bos.csb (dhcp-17-51.bos.redhat.com [10.18.17.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 04E525C883; Wed, 30 Oct 2019 17:19:16 +0000 (UTC) Date: Wed, 30 Oct 2019 13:19:15 -0400 From: Phil Auld To: Valentin Schneider Cc: Dietmar Eggemann , Vincent Guittot , Ingo Molnar , Mel Gorman , linux-kernel , Ingo Molnar , Peter Zijlstra , Srikar Dronamraju , Quentin Perret , Morten Rasmussen , Hillf Danton , Parth Shah , Rik van Riel Subject: Re: [PATCH v4 00/10] sched/fair: rework the CFS load balance Message-ID: <20191030171914.GF1686@pauld.bos.csb> References: <20191021075038.GA27361@gmail.com> <20191024123844.GB2708@pauld.bos.csb> <20191024134650.GD2708@pauld.bos.csb> <20191025133325.GA2421@pauld.bos.csb> <20191030143937.GC1686@pauld.bos.csb> <564ca629-5c34-dbd1-8e64-2da6910b18a3@arm.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: 7ZDI3WjNNs6B979ETWTejQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Oct 30, 2019 at 05:35:55PM +0100 Valentin Schneider wrote: >=20 >=20 > On 30/10/2019 17:24, Dietmar Eggemann wrote: > > On 30.10.19 15:39, Phil Auld wrote: > >> Hi Vincent, > >> > >> On Mon, Oct 28, 2019 at 02:03:15PM +0100 Vincent Guittot wrote: > >=20 > > [...] > >=20 > >>>> When you say slow versus fast wakeup paths what do you mean? I'm sti= ll > >>>> learning my way around all this code. > >>> > >>> When task wakes up, we can decide to > >>> - speedup the wakeup and shorten the list of cpus and compare only > >>> prev_cpu vs this_cpu (in fact the group of cpu that share their > >>> respective LLC). That's the fast wakeup path that is used most of the > >>> time during a wakeup > >>> - or start to find the idlest CPU of the system and scan all domains. > >>> That's the slow path that is used for new tasks or when a task wakes > >>> up a lot of other tasks at the same time > >=20 > > [...] > >=20 > > Is the latter related to wake_wide()? If yes, is the SD_BALANCE_WAKE > > flag set on the sched domains on your machines? IMHO, otherwise those > > wakeups are not forced into the slowpath (if (unlikely(sd))? > >=20 > > I had this discussion the other day with Valentin S. on #sched and we > > were not sure how SD_BALANCE_WAKE is set on sched domains on > > !SD_ASYM_CPUCAPACITY systems. > >=20 >=20 > Well from the code nobody but us (asymmetric capacity systems) set > SD_BALANCE_WAKE. I was however curious if there were some folks who set i= t > with out of tree code for some reason. >=20 > As Dietmar said, not having SD_BALANCE_WAKE means you'll never go through > the slow path on wakeups, because there is no domain with SD_BALANCE_WAKE= for > the domain loop to find. Depending on your topology you most likely will > go through it on fork or exec though. >=20 > IOW wake_wide() is not really widening the wakeup scan on wakeups using > mainline topology code (disregarding asymmetric capacity systems), which > sounds a bit... off. Thanks. It's not currently set. I'll set it and re-run to see if it makes a difference.=20 However, I'm not sure why it would be making a difference for only the cgro= up case. If this is causing issues I'd expect it to effect both runs.=20 In general I think these threads want to wake up the last cpu they were on. And given there are fewer cpu bound tasks that CPUs that wake cpu should, more often than not, be idle.=20 Cheers, Phil --=20