From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C73C93D75BD for ; Tue, 5 May 2026 20:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778013639; cv=none; b=GDXUDgRpMLg+MKCOcrWBbR3y9sFP3CLTpWYebWMk0V9MVe+S5nbOkMSn9JEZEWggIIW9/XivvHMVrJw4FVL2OntPQq5ocuW8FSjHR0Lv/XejtNBNgCnLbIvudtfnlsFDVSE14HGUrriTPsoPwqW69RXhX76qacGwkcGvBMORWMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778013639; c=relaxed/simple; bh=TVzW7xY2Fml6cFS6IF+UIYISMDM20L25uWcXMvKWxgE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i5j+3noFWYBlKiVkB3++CEL2d3s+iCMIfQ0avaThmnjQsgsSzCZect4ca9aSz26gI0Su/M+DtxnfaYKaW5uhVexZF70dClObm/gF17XZPyR1AHhsGl4NZtJJc4LNVA16qlf+3CXZ0DG286ogz/ghW+7dW5YwqNxaFNc2NK7684I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=dUEwUfXG; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="dUEwUfXG" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6A9081BB0; Tue, 5 May 2026 13:40:31 -0700 (PDT) Received: from [192.168.178.100] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7B9593F763; Tue, 5 May 2026 13:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1778013636; bh=TVzW7xY2Fml6cFS6IF+UIYISMDM20L25uWcXMvKWxgE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dUEwUfXG+UWxY6VFYMso1HJFkO0N39qDeSxZLTbQ1rtZLTLfQQOicjk4tQKlzJiiH OS7S7kKy04YYjPWZRn9Ls5Qk2DltZKnfdpifRr9gWEqPZuQFMejAWuG3QK68L/s7GI jsxCL8Pg/9d4CiiidBYRV3RhF5fTuKrtUEJCgReo= Message-ID: <3b7b7081-f640-4386-b33f-045bddbd4334@arm.com> Date: Tue, 5 May 2026 22:40:33 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/5] sched/fair: SMT-aware asymmetric CPU capacity To: Andrea Righi , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Christian Loehle , Koba Ko , Felix Abecassis , Balbir Singh , Joel Fernandes , Shrikanth Hegde , linux-kernel@vger.kernel.org References: <20260428144352.3575863-1-arighi@nvidia.com> Content-Language: en-GB From: Dietmar Eggemann In-Reply-To: <20260428144352.3575863-1-arighi@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 28.04.26 16:41, Andrea Righi wrote: [...] > - DCPerf MediaWiki (all CPUs): > > +---------------------------------+--------+--------+--------+--------+ > | Configuration | rps | p50 | p95 | p99 | > +---------------------------------+--------+--------+--------+--------+ > | ASYM (mainline) + SIS_UTIL | 7994 | 0.052 | 0.223 | 0.246 | > | ASYM (mainline) + NO_SIS_UTIL | 7993 | 0.052 | 0.221 | 0.245 | > | | | | | | > | NO ASYM + SIS_UTIL | 8113 | 0.067 | 0.184 | 0.225 | > | NO ASYM + NO_SIS_UTIL | 8093 | 0.068 | 0.184 | 0.223 | > | | | | | | > | ASYM + SMT + SIS_UTIL | 8129 | 0.076 | 0.149 | 0.188 | > | ASYM + SMT + NO_SIS_UTIL | 8138 | 0.076 | 0.148 | 0.186 | > +---------------------------------+--------+--------+--------+--------+ > > In the MediaWiki case SMT awareness is less impactful, because for the majority > of the run all CPUs are used, but it still seems to provide some benefits at > reducing tail latency. > > Tests have also been conducted on NVIDIA Grace (which does not support SMT) to > ensure that SIS_UTIL support in select_idle_capacity() does not introduce > regressions and results show slight improvements under the same workloads. Somehow unrelated to this smt extension but I always wanted to know why even with !smt (e.g. Grace) we can see better values w/ ASYM. DCPerf Mediawiki: Grace 72 CPUs, ~800 tasks (last test run): +---------------------------------+--------+--------+--------+--------+ | Configuration | rps | p50 | p95 | p99 | +---------------------------------+--------+--------+--------+--------+ | v6.8 NO ASYM | 4470 | 0.026 | 0.040 | 0.046 | | v6.8 ASYM | 4636 | 0.022 | 0.037 | 0.043 | +---------------------------------+--------+--------+--------+--------+ values from run_details.json: Wrk RPS, Nginx P50 {, P90, P95, P99} time I always got 4%-5% higher rps and slightly better latencies w/ ASYM. Possible explanation: NO_ASYM * More local wakeups * sis()->select_idle_cpu() runs pretty fast into SIS_UTIL !nr_idle_scan -> falls back to pick this_cpu or prev_cpu * Causes more runqueue contention → more load balancing * More short idle periods + migrations ASYM * More remote wakeups * select_idle_capacity() always scans sd_asym * Less balancing needed; CPUs go idle less often but for longer * Better placement -> less contention -> higher rps AFAICS, in this high-load scenario, ASYM avoids the !nr_idle_scan bailout, spreading tasks more effectively and so reducing contention and balancing overhead. Do you have a chance to check this on mainline on your Grace machine? [...]