Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp451776pxb; Thu, 21 Oct 2021 02:54:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXS9FHVQsMBm0xB3rzhfqNleYPziPNPrHxSMWnwpiJiLyeM4V2ErwofwA6Zb1mBYegsjdQ X-Received: by 2002:a17:907:f83:: with SMTP id kb3mr6332352ejc.453.1634810078774; Thu, 21 Oct 2021 02:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634810078; cv=none; d=google.com; s=arc-20160816; b=JqoKR7ZcJ/QpD6rVC9OSeEhI/N2Xj+pRLa8LYhXOyde14MK8uRGOkdxdYu65A40GJG iwywnT5sXxhtWpAurNulF/j+Ui9T/QEOAej0IhBkYB/lenrl1rCQ9D22jjWXMQQBktIu w5t1mObhFQCRc9lWfgF3udvPL2m3yqxPDQc7qxZOY/juxy1mAlimzy+eWgivSRHuWaJl v0SDQNdl4Fld+i934M/PCUak7MHR91lbdeznpqXi6X8y9lspQEjscPAroqXdIiRP7Q56 lsZGnaSXKvlA0Cnh9Q9+/kZ6zHdwi0wYrxXGGLNpFsqUvCdOnG4QQOypKoMq27W3Cd7w mxww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=0KdzeFJeckjZ6yg7SNE2atCwcXrvZ+9D6Kkun4PyhMw=; b=psC7wpDtp8drrd10CoKpNr0PPfBd2P3RR9OrQsLyRwOOHjZBWdnzcU3Q1aUVsl+m5H JVG2mKMPsqCQY/7zcGfpUVH3y6J+LOzFCuguOtFdmudD+2uGMnp4p8CiytyZfy6JpBui m62vqvuYUm6bXg2Q3W/IvuFNcnmppapc8Pk4Fqg0NzXFWl+F3xu7I2Q0/y3c+14sSbkn d2+ZlB2Fq+Ff5ylesMhvo4d9srxH1XW+zSnjQpMBqaXdE7CqmUZm/5cHzVMCWA+s/LvV 1acuN4rBVY5bA1qXymil2UTg9BF4UbjzAb31usMUZJ1ZzsIWfG1iy3FXH8elwDlgUGZ8 w3DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=OLL+l1PT; dkim=neutral (no key) header.i=@suse.de header.b=KL7NCxZ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd6si9372208ejc.716.2021.10.21.02.54.14; Thu, 21 Oct 2021 02:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=OLL+l1PT; dkim=neutral (no key) header.i=@suse.de header.b=KL7NCxZ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbhJUJyj (ORCPT + 99 others); Thu, 21 Oct 2021 05:54:39 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:58376 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231371AbhJUJyi (ORCPT ); Thu, 21 Oct 2021 05:54:38 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 43E951FDAB; Thu, 21 Oct 2021 09:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634809942; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0KdzeFJeckjZ6yg7SNE2atCwcXrvZ+9D6Kkun4PyhMw=; b=OLL+l1PTXYcqexoy527+i4/+9ZBLzkPHE8c0zz9Xn3+AVE0RuppEGbyCLcqHIanO16oaHi cgbdj++h604NBNAJ2iawRw4jlQiyg5T0NbJZ/dnO/S03hxsQjwn06gWj+3qBBhewHZpW68 j+Ozi4Mn9hBzQjOwIzXf8JiMXulFEJE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634809942; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0KdzeFJeckjZ6yg7SNE2atCwcXrvZ+9D6Kkun4PyhMw=; b=KL7NCxZ1SqsZIVX62AdPwebp6z7XSG46MTENM8dxX4ziacOCrCxq1H6RDO5hOJ+Wpwur54 SGT3h+nqRLRN5fBg== Received: from suse.de (unknown [10.163.32.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 54B03A3B87; Thu, 21 Oct 2021 09:52:21 +0000 (UTC) Date: Thu, 21 Oct 2021 10:52:19 +0100 From: Mel Gorman To: Vincent Guittot Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com Subject: Re: [PATCH v3 0/5] Improve newidle lb cost tracking and early abort Message-ID: <20211021095219.GG3891@suse.de> References: <20211019123537.17146-1-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20211019123537.17146-1-vincent.guittot@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 02:35:32PM +0200, Vincent Guittot wrote: > This patchset updates newidle lb cost tracking and early abort: > > The time spent running update_blocked_averages is now accounted in the 1st > sched_domain level. This time can be significant and move the cost of > newidle lb above the avg_idle time. > > The decay of max_newidle_lb_cost is modified to start only when the field > has not been updated for a while. Recent update will not be decayed > immediatlybut only after a while. > > The condition of an avg_idle lower than sysctl_sched_migration_cost has > been removed as the 500us value is quite large and prevent opportunity to > pull task on the newly idle CPU for at least 1st domain levels. > > Monitoring sd->max_newidle_lb_cost on cpu0 of a Arm64 system > THX2 (2 nodes * 28 cores * 4 cpus) during the benchmarks gives the > following results: > min avg max > SMT: 1us 33us 273us - this one includes the update of blocked load > MC: 7us 49us 398us > NUMA: 10us 45us 158us > > > Some results for hackbench -l $LOOPS -g $group : > group tip/sched/core + this patchset > 1 15.189(+/- 2%) 14.987(+/- 2%) +1% > 4 4.336(+/- 3%) 4.322(+/- 5%) +0% > 16 3.654(+/- 1%) 2.922(+/- 3%) +20% > 32 3.209(+/- 1%) 2.919(+/- 3%) +9% > 64 2.965(+/- 1%) 2.826(+/- 1%) +4% > 128 2.954(+/- 1%) 2.993(+/- 8%) -1% > 256 2.951(+/- 1%) 2.894(+/- 1%) +2% > I read the patches earlier but had queued tests and waiting on the results before Acking. The hackbench results were not bad, not a universal win, but wins more than it loses with small decreaseds in system CPU usage. Most other results showed small gains or losses, nothing overly dramatic and mostly within the noise. -- Mel Gorman SUSE Labs