Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4341255pxb; Tue, 2 Mar 2021 12:34:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCQZyLEXMNnC83HXmqf11+/xcqaKyq4kpG3Sk6NXrQaCMk7XRju3pm7UZguWfcs9ZPJd/p X-Received: by 2002:a05:6402:c88:: with SMTP id cm8mr11197877edb.62.1614717261974; Tue, 02 Mar 2021 12:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614717261; cv=none; d=google.com; s=arc-20160816; b=q+30MOqI4fuyO2c70I39yUU+q1jb/PH80HQ+5YPDxmi+CmRaGyhyZXRERWFFlcyyzx cHYiEZDRsKA3ANl0LO1JSda/rvU4fvItEdDtjkY8unQmFghsW74ZuQ3w2IQooWKOQ3kS 0uohUMij3HtQm96p+D/mbeg5JwuxUJhUK+qpzuREE2/2xFJqaOM2noZNXjtL0845yw08 YFJcjrNoYBRdlmLbrqai7t6OUHErAQ5kD5P6jKiibBCvWTO2XYKaDa9p8ZNnhe3wQUDJ whs1gvOF8Zwk6SsobgkrfN+p10I4z3T+/7sTGvJANAfksGphZCcMl+UwNYW1tNdInV6t fKaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lrZcISqZlyjQ40cCRjTE9prULVW+QHQqsjGSgVrqev8=; b=kOIJPqrsXZcGx2yg2mIcxbbXARzqN8QOTBb80gjqtNN6Yu2I8lTTyOP41oDTCK++Gu 8uKOkoWW8Mh0qsTW+w0tB2ZKq5dvHON+SS0ZX7O0s+H4jzieZyTaospzfNcnnOYPW8Ml 1cTLjx0JPSoRhLmli/y+LyeiR9Wvx5VMvZ20IGeYdrGnZjHY5esGoNX8hOk/dbINkYHW ABe3X1be689U1yYKUVktmNrVZxP7ldi5s4qOQ5TnU+uIYPcO0zjaXQGpFjxMViCarkK7 XrssoO7tBQUdGrMwcxNYgVjW91zKCIOXb4B/rF0gG28DWvq1zRPhznEUSRMvG9h88t/D ARcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=EBTsud59; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e4si13935639ejd.689.2021.03.02.12.33.58; Tue, 02 Mar 2021 12:34:21 -0800 (PST) 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=@ibm.com header.s=pp1 header.b=EBTsud59; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446320AbhCBHx2 (ORCPT + 99 others); Tue, 2 Mar 2021 02:53:28 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57264 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1837224AbhCBHkz (ORCPT ); Tue, 2 Mar 2021 02:40:55 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1227YPRJ064896; Tue, 2 Mar 2021 02:39:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : reply-to : references : mime-version : content-type : in-reply-to; s=pp1; bh=lrZcISqZlyjQ40cCRjTE9prULVW+QHQqsjGSgVrqev8=; b=EBTsud59/1ScgrTVac0p870oZmh5kgSZp4oOGci9bSF3RkFsocVljwEQ2AnDCGlpX/MZ ecMWRg6xZwKZnaIX4NJHunnA3aqB/LacYiV8EalJZ+AC9GRGVkIkeMFzqGRmWY+c66r5 uQVzOcDajJVPYEQz2Tn6WO6S9MbysiFzSRZ2O6BcBCPHuY3SOhD2eDlJso7o+hNelqH3 uXVC24j1TdyVfIXhdqzNgZdprQ4Fsz3BNhgjjSHMCFG186rQg332NnqsxJlK/2TS+Ced uuwBNdlgw6ichtafoK/S7qXbQ/6jG3EEF3nKc04awXxHI8v9bQD55zJk2qUnQGZ4YmQH og== Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com with ESMTP id 371gvtgmgc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Mar 2021 02:39:53 -0500 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 1227XP27022917; Tue, 2 Mar 2021 07:39:52 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma02fra.de.ibm.com with ESMTP id 36yj53192p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Mar 2021 07:39:51 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1227dZdP37617966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Mar 2021 07:39:35 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 862794203F; Tue, 2 Mar 2021 07:39:49 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3650A42049; Tue, 2 Mar 2021 07:39:47 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av24.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 2 Mar 2021 07:39:47 +0000 (GMT) Date: Tue, 2 Mar 2021 13:09:46 +0530 From: Srikar Dronamraju To: Peter Zijlstra Cc: Rik van Riel , Ingo Molnar , LKML , Mel Gorman , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Dietmar Eggemann , Michael Ellerman , Michael Neuling , Gautham R Shenoy , Parth Shah Subject: Re: [PATCH] sched/fair: Prefer idle CPU to cache affinity Message-ID: <20210302073946.GL2028034@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20210226164029.122432-1-srikar@linux.vnet.ibm.com> <20210301170601.GJ2028034@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-02_02:2021-03-01,2021-03-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 impostorscore=0 bulkscore=0 mlxscore=0 suspectscore=0 mlxlogscore=961 spamscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103020061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra [2021-03-01 18:18:28]: > On Mon, Mar 01, 2021 at 10:36:01PM +0530, Srikar Dronamraju wrote: > > * Peter Zijlstra [2021-03-01 16:44:42]: > > > > > On Sat, Feb 27, 2021 at 02:56:07PM -0500, Rik van Riel wrote: > > > > On Fri, 2021-02-26 at 22:10 +0530, Srikar Dronamraju wrote: > > > > > > > > > > Maybe we could use "tnr_busy * 4 < > > > > tllc_size * 3" or > > > > something like that? > > > > > > How about: > > > > > > tnr_busy < tllc_size / topology_max_smt_threads() > > > > > > ? > > > > Isn't topology_max_smt_threads only for x86 as of today? > > Or Am I missing out? > > Oh, could be, I didn't grep :/ We could have core code keep track of the > smt count I suppose. Could we use cpumask_weight(cpu_smt_mask(this_cpu)) instead? -- Thanks and Regards Srikar Dronamraju