Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp806869rdb; Thu, 19 Oct 2023 22:46:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKVtI1wnj6B/Q5wHuXK/29dppPzK/BFk7x6wNSVZLUchTVOlt2js4s6XQVgyvd0Hxi0+Sc X-Received: by 2002:a05:6a00:a13:b0:6b2:6835:2a82 with SMTP id p19-20020a056a000a1300b006b268352a82mr842492pfh.13.1697780768726; Thu, 19 Oct 2023 22:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697780768; cv=none; d=google.com; s=arc-20160816; b=n4erkkqkOzSC2/kde1idt7OFUNLza9KrlWFgcZ1m1edsm/IiY3Us3BrDmnek9xIund rHWj3BQZcH3RExpWOl0sdWSIRmeDtGETJl04QsgbP2rHv4+bJNNI2z3D33gc2/x2E0oq SereH+SWALiy3hTdLrRBJ9TiI+PtMoAqj+fXyV3Wa77uSlD4NMXNLL0eQ2MnslZjN3ES Z4wzm+m8VW1kafiP5ZmElicxMNzkxyJ9HAzQ2OHZeXuAtKmOLYUxYLuCp9bWx7aDvoVk UjXf23ytE+zfpHr8sKVWI+AhhBoaJNKuGr80Gikl13OEWdVzsdH4sgPd+ZCVHBrl9sBc ZY5A== 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=nqrnMCe98ci6txoaU8IrERG77izBRJ91QlE6fdoyJJo=; fh=fGMjqwzleXsbzzZlcpgTQsVXEzlaggCiiiYzKKWp53I=; b=fEt12pEustQOF3+ZRPVpmqy1Z8qveB/vmprvE1E5dmjNKhVAKJ6TR58hS0rnDhFu4C 5k8NelRd62B+8F4JciTCiyuCbfWgINfVVYXBkfpbWDpJlZ8lYiTv4yYP/PAFnKRGWicY pHS6k95USkN0NaBV+limSA5vViYYHppnE/HIAyg09XauTdiIqw6wjvRZ4iGVQ5KwtSFN g9Uid8FOW369skq1UTmA6+djzr0HcTbvOAzfGoODFO+rA+A0689mndamNH9g0IJs7j+u qzswgKbjZNaPlGgEC7PqA3GoCsf01NaQkLf08rIt1efcWg1S2T/+jMHgr9Wj5TSouGt0 qX5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gCulxrZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id z11-20020aa7990b000000b0068e3950c705si1185431pff.24.2023.10.19.22.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 22:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gCulxrZE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 96171807DE37; Thu, 19 Oct 2023 22:45:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346301AbjJTFpX (ORCPT + 99 others); Fri, 20 Oct 2023 01:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235599AbjJTFpW (ORCPT ); Fri, 20 Oct 2023 01:45:22 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3F8C1A6 for ; Thu, 19 Oct 2023 22:45:15 -0700 (PDT) Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39K5gQ3N008048; Fri, 20 Oct 2023 05:44:52 GMT 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=nqrnMCe98ci6txoaU8IrERG77izBRJ91QlE6fdoyJJo=; b=gCulxrZEN8WbmydSY1btCVRTI4wA8LQ9XbIh2mdbG6otH8hScolJCWcgxb7yLZ1A8I+S JWFK6p3BEVlMUaj3pEEtAi3d+MxTY+B9+91tdqJyUbzquoBOfZGuKWOFfCCJ13nIgADb sLQwn0XHEOGJadP55Ylkj2eo0O/vWrP+lCBp2HWY6sNzVIIy4yOIjOIVV/tfAiyOLs7g MsvH44fKXwzsLbUJdxYK/A25Kga/X77tXj+/xP9mhxGV6O+2DWeSBEkQOK0Dq738dAXv 4cG3J2K/FULJFs7k5hYOk/mGHsGtNmHYHCklUw8WZnndRXaPkR+Gcntip+OvvM0Jl37c bA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tukmq03mf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Oct 2023 05:44:52 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39K5hEuV011798; Fri, 20 Oct 2023 05:44:51 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tukmq03kk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Oct 2023 05:44:51 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39K2oC9d002683; Fri, 20 Oct 2023 05:44:50 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3tuc44ahx5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Oct 2023 05:44:50 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39K5imUY56295772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Oct 2023 05:44:48 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 588E920043; Fri, 20 Oct 2023 05:44:48 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 37F4920040; Fri, 20 Oct 2023 05:44:46 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by smtpav01.fra02v.mail.ibm.com (Postfix) with SMTP; Fri, 20 Oct 2023 05:44:46 +0000 (GMT) Date: Fri, 20 Oct 2023 11:14:45 +0530 From: Srikar Dronamraju To: Shrikanth Hegde Cc: Mark Rutland , Valentin Schneider , Peter Zijlstra , linux-kernel@vger.kernel.org, Rohan McLure , Nicholas Piggin , linuxppc-dev , Josh Poimboeuf , Michael Ellerman Subject: Re: [PATCH v2 2/6] powerpc/smp: Enable Asym packing for cores on shared processor Message-ID: <20231020054445.GL2194132@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20231018163751.2423181-1-srikar@linux.vnet.ibm.com> <20231018163751.2423181-3-srikar@linux.vnet.ibm.com> <45a14ebb-91e7-489d-ad5d-6d39a48bc1f5@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <45a14ebb-91e7-489d-ad5d-6d39a48bc1f5@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: va9b7wCKRExEmjcCpA5TKGv1kXoUMz0J X-Proofpoint-GUID: K7lH2W5Asytm59uDHQ4YNKDr4Vn7yyok X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-20_04,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 adultscore=0 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxlogscore=914 bulkscore=0 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310200049 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 19 Oct 2023 22:45:32 -0700 (PDT) * Shrikanth Hegde [2023-10-19 21:26:56]: > > > On 10/18/23 10:07 PM, Srikar Dronamraju wrote: > > If there are shared processor LPARs, underlying Hypervisor can have more > > virtual cores to handle than actual physical cores. > > > > Starting with Power 9, a core has 2 nearly independent thread groups. > > On a shared processors LPARs, it helps to pack threads to lesser number > > of cores so that the overall system performance and utilization > > improves. PowerVM schedules at a core level. Hence packing to fewer > > cores helps. > > > > For example: Lets says there are two 8-core Shared LPARs that are > > actually sharing a 8 Core shared physical pool, each running 8 threads > > each. Then Consolidating 8 threads to 4 cores on each LPAR would help > > them to perform better. This is because each of the LPAR will get > > 100% time to run applications and there will no switching required by > > the Hypervisor. > > > > To achieve this, enable SD_ASYM_PACKING flag at CACHE, MC and DIE level. > > This would have a conflict with tip/master. > DIE has been renamed to PKG and Both changelog and code below should > change DIE to PKG. Once the changes are part of powerpc/merge, will rebase and accomodate the changes from DIE to PKG. -- Thanks and Regards Srikar Dronamraju