From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15E752E9EBB for ; Wed, 19 Nov 2025 12:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763556847; cv=none; b=DtJJqECR3QLH56xXDOCwGl9MhiCMQfvuIJ67W571iCT/OrSu8CTULynO/Q1imIhLjsh3r/NcjZRyh34BdRCT8Mc8hkVPZmiYZ2Ddz4tqlL61rswDh0fdfBBRsXwGVyxPtp9btLnj3QMWUQRiYmCJoH94urUaGmS3icKcwi0U/8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763556847; c=relaxed/simple; bh=Jkv75vjsks+2I3yq1panG7UzSxB6eSzBfRyEwKl0fRE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=k88cU36u/o4Ki2n5nsbtaQ1eE+G8S+KYN4ZvNTqFCauX45HVBGP4pEXL11QtG0jyvgxHUhWywGskO3NY94+/dvl6mViC1WMvIiZlPKfgmgUzOmK48kU+Xei3H3mRE+InDng7Xsn9QHPeHHo2p9wzHIOo8aaYcmkumTeOsZAtSwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=E6m6Jr3P; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="E6m6Jr3P" Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5AJ9NBK4001887; Wed, 19 Nov 2025 12:53:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=RUkFnK Fn/OE/Pv+QE71cglYHh9/NYz4niGoSXEaodwE=; b=E6m6Jr3PuHFotopv/QNxXy RcnXIIfSNyIwFDVLAl5xBRzmNOEQ7Suglm8iGivziuuEVq5IiQUEmzG1qscO1xrd UvoxYp4TDKddpsANWvivTnDCEzpeIOX6EVdZYzIgVauiF90jbTCesbbUQ8DumRnJ mEtYErZ5v2OeRHanYbkLoVjw5jWD7XgRjsmMY8sZa6bjAAsaclFeBcF+WOHx8tYy 2DkMlw6B30xl1rfnwQiQbdAdWZnScIYMYCVrJj3/L32U0TOGnmuwlRw+KnUAgyWv XwQk73KO3RA9yrkXonh8q/gGWQwjDjVEBhDw5A4LdWb39v+4kaJsjnuwVn3JT4CQ == Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4aejjtymep-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Nov 2025 12:53:42 +0000 (GMT) Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.18.1.12/8.18.0.8) with ESMTP id 5AJCrgd1010627; Wed, 19 Nov 2025 12:53:42 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 4aejjtymem-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Nov 2025 12:53:42 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 5AJB9HtP010506; Wed, 19 Nov 2025 12:53:41 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4af3us8txn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Nov 2025 12:53:41 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 5AJCrbb025297276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Nov 2025 12:53:37 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8728420040; Wed, 19 Nov 2025 12:53:37 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E5F3520043; Wed, 19 Nov 2025 12:53:33 +0000 (GMT) Received: from [9.39.25.220] (unknown [9.39.25.220]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 19 Nov 2025 12:53:33 +0000 (GMT) Message-ID: Date: Wed, 19 Nov 2025 18:23:33 +0530 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: [RFC PATCH v4 00/17] Paravirt CPUs and push task for less vCPU preemption To: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, gregkh@linuxfoundation.org, christophe.leroy@csgroup.eu Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, tglx@linutronix.de, yury.norov@gmail.com, maddy@linux.ibm.com, srikar@linux.ibm.com, pbonzini@redhat.com, seanjc@google.com, kprateek.nayak@amd.com, vschneid@redhat.com, iii@linux.ibm.com, huschle@linux.ibm.com, rostedt@goodmis.org, dietmar.eggemann@arm.com References: <20251119062100.1112520-1-sshegde@linux.ibm.com> From: Shrikanth Hegde Content-Language: en-US In-Reply-To: <20251119062100.1112520-1-sshegde@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: jNM7PZpv00Dfc7PPG9KvyQC4p4AvRGBC X-Proofpoint-ORIG-GUID: wh1nhdpadEQFd8dGH0QXNTHWScvNvbyu X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTE1MDAzMiBTYWx0ZWRfX2iW4gQ4pUNtW n6B/i2d6o/W8wT11Dw7L4mgpNuZrDJfMajENMMRVWHZIsqwoRNyHF2/6BWuILghUB7cChkKgD7s y2JIdi6JoOIz1dMOkqTu/dCnHsSIirmMjRASApGJMSgxiilskmh7UR406g9GTdAz2j4bIry9R0Z 4iATnUCFf3WCxeEiq/u24+VqmURMHAfHftzdYPByR4EMRJTyUig5hL0hC4q7Mg76GKvZsjUyl0t LA7YvzDB7i/NRXxv4C+bRy9sBM9E4G3coMU0jjYaNzV+HVXIyJQ7HPnvwlKO/2PGvqP+gXrxVCq OyzcT300iRlEVDV2v7bz0yrW9wGfHPEdojOtGuzAaegG/+qJB1/JmBOSnu1mkjoRg2J3Mlo57bJ XS3gIOTDEuYHTdvt9DLVPq11i/8TTQ== X-Authority-Analysis: v=2.4 cv=SvOdKfO0 c=1 sm=1 tr=0 ts=691dbdd6 cx=c_pps a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8 a=Pi4crXe-Rn3qxXpBZEsA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-19_03,2025-11-18_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 clxscore=1015 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2510240000 definitions=main-2511150032 On 11/19/25 11:50 AM, Shrikanth Hegde wrote: > Detailed problem statement and some of the implementation choices were > discussed earlier[1]. > > [1]: https://lore.kernel.org/all/20250910174210.1969750-1-sshegde@linux.ibm.com/ > > This is likely the version which would be used for LPC2025 discussion on > this topic. Feel free to provide your suggestion and hoping for a solution > that works for different architectures and it's use cases. > > All the existing alternatives such as cpu hotplug, creating isolated > partitions etc break the user affinity. Since number of CPUs to use change > depending on the steal time, it is not driven by User. Hence it would be > wrong to break the affinity. This series allows if the task is pinned > only paravirt CPUs, it will continue running there. > > Changes compared v3[1]: > > - Introduced computation of steal time in powerpc code. > - Derive number of CPUs to use and mark the remaining as paravirt based > on steal values. > - Provide debugfs knobs to alter how steal time values being used. > - Removed static key check for paravirt CPUs (Yury) > - Removed preempt_disable/enable while calling stopper (Prateek) > - Made select_idle_sibling and friends aware of paravirt CPUs. > - Removed 3 unused schedstat fields and introduced 2 related to paravirt > handling. > - Handled nohz_full case by enabling tick on it when there is CFS/RT on > it. > - Updated helper patch to override arch behaviour for easier debugging > during development. Sorry for creating confusion around last two patches. Sent out new version. https://lore.kernel.org/all/20251119124449.1149616-1-sshegde@linux.ibm.com/