Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp404231rbb; Sat, 24 Feb 2024 05:44:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXSRD9n7P/ea9nA6gB8wVHm/ePH/HQDwmISEufKCI1iP78EapbCiZQ1KE5whXiW5MZw++n70zTBBwAb+SRUS/XZHxo403E6OHpzCV12zQ== X-Google-Smtp-Source: AGHT+IERSb6JAcl/hEq9Dq5hIbNywreSJEzmze5uKx/vgFM55m+5ryBcOMuE1HFz8LZy+FIZxlyY X-Received: by 2002:a05:6870:b018:b0:21f:c699:cf96 with SMTP id y24-20020a056870b01800b0021fc699cf96mr2792361oae.45.1708782245236; Sat, 24 Feb 2024 05:44:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708782245; cv=pass; d=google.com; s=arc-20160816; b=S748+Cn7BiyDR7zlrXMyCbWKIwxYrt7mpRor8q454B9LFP2QvepkzuM5uO80VopWKp ukztG7azVCvMHeUCmldBZhXLI7eLoa/K9GVs/RkAv3Dq2CleTUoIC3D29am6e7KMCpR6 qW0z3XOmat1atDpEL248c7iaCOb3jD3uKn/SI/p8zKLHEsv5Bx6nZtK+dLflIzmnHYYX YbZlJ3YEJDZT7mkOnGR1EGbUQqgFFJGpulgSJFp9uQeu8ILKHR2LXGCE12vlUoigpW8J iMlIEQzlmBhIgtPxpRwLnR49qX1/KuIEOHZrldM34koTyPqXr1DEQek1Xm8XwY75GbLz dhag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=P8EsLr5E4u9owq2KvVUaP7toUEfklXs1dRyjPEaRMf8=; fh=jSRknapnzm5v/IADHqU0skNL5TsaiciUD8XpSuu79wQ=; b=yfDZYdrZOd92+zmOKw+NW8m1Z1gYr9sVmeXhU7eNzljplA6nMg0SKDBFNcJrW1iECd oxpsKxELsrjKooR964D/sBFXi/EJLDZ//H8K4Kk0s+xOkAFciUbpvoca4j0QbtGYzAV8 ffsy9cLkoshaGPtAc/OhfE1TcvgUwyDaYoQkmORCZIFOZuotzTSmh9jtGsMDLErMXmW+ xVeKjhCPEGFEFss3+AbhM1hpNf+fmEyERdSgpddId4j6pg9Jl7ynEaNC3MpW9pVq3SMf xOcqL+SMa5b+UMgzPeEwE50YgBfNMBbqJYbUz79/SEcm5/Mg5JvXoGhQZh1lv75cfoeV 2Row==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=i6NjKAbT; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-79642-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 33-20020a631461000000b005dc50f61543si918509pgu.427.2024.02.24.05.44.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:44:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79642-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=i6NjKAbT; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-79642-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B65F5282AD2 for ; Sat, 24 Feb 2024 13:44:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2905C41760; Sat, 24 Feb 2024 13:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="i6NjKAbT" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 96DEC3F9D9; Sat, 24 Feb 2024 13:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782237; cv=none; b=cVdA6FCzRWAurX5991fWDmRXk3b7HMqQaQEo5B4MquWxndDbVVBCsY8FVPy3xoviodI+3vnUqPtj/P/3LOYIYhXBX0oRKzyvxSYLBwnRy93pFsPmUgHhPl1y6jRAcD2gUfm+NXopmhPQVDzsNQU3/959uUp/UFqr+tqE/mYoPSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782237; c=relaxed/simple; bh=W53/vi7azCB+U45tpstfhL4ivvrXFwVqKWH5XqIlrfU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oE7vRXGbuoK31tG44LcOJ/D6zMH86ezxYVpyo5M3WXHssBQih6zEJpAHJQplZrljoAIvQ0s5U0A3tn6Qvwzo42lcPNbpM3U7L2PzyTfJe2PBsPnu2Jl1NZR1fwRgim7KwnIDyfGEdjZuz+6HH+5k+t6pYOoMYRkcJRfqfaJXR/c= 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=i6NjKAbT; arc=none smtp.client-ip=148.163.156.1 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 Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41ODC4FA004009; Sat, 24 Feb 2024 13:43:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=P8EsLr5E4u9owq2KvVUaP7toUEfklXs1dRyjPEaRMf8=; b=i6NjKAbTVU3IVjgFVlxk9QelquTNoRTcpBxbCHqxKZA5C1Ipz8gcwyd2+ZsKblf7N9mt Qet+Tw/Uz6+pa3+42ziotzUkRBfISoSAIQZDv+A3rWvMVk4TVCEVupdc/JKqRHtrHo1b Zc1jutiWVNBr285V6qXXW8bv7zgP3TCTXEuXQfEdkXGNmcq7lJ9l96B5EFzdwM8AS7FU fhGpyA93Gjx9jeoKfLT30w3E8RTK5oyc6Ux1rY2lxgj0XfN1PNBqE9LpZKGkiJgQoxhT u+xZideZH453155cElDlW445hx2+Wx+32kDFThIumPUa+4Xe8AMYROhy+Ae4pj3Ut40A pA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wffr31ege-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 24 Feb 2024 13:43:35 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 41ODFbJK012431; Sat, 24 Feb 2024 13:43:34 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 3wffr31eg6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 24 Feb 2024 13:43:34 +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 41OBPBpK012711; Sat, 24 Feb 2024 13:43:33 GMT Received: from smtprelay07.dal12v.mail.ibm.com ([172.16.1.9]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3wb74ucvgk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 24 Feb 2024 13:43:33 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay07.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41ODhU4C36569556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 24 Feb 2024 13:43:32 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B6C8058052; Sat, 24 Feb 2024 13:43:30 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 54AFC58056; Sat, 24 Feb 2024 13:43:26 +0000 (GMT) Received: from [9.43.40.229] (unknown [9.43.40.229]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Sat, 24 Feb 2024 13:43:26 +0000 (GMT) Message-ID: <1bb797ef-573b-4bda-98bf-1eb63f6f4ffe@linux.ibm.com> Date: Sat, 24 Feb 2024 19:13:24 +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: [PATCH v2 0/2] sched: blk: Handle HMP systems when completing IO Content-Language: en-US To: Qais Yousef Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Sudeep Holla , Wei Wang , Jaegeuk Kim , Bart Van Assche , Christoph Hellwig , Jens Axboe , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann References: <20240223155749.2958009-1-qyousef@layalina.io> From: Shrikanth Hegde In-Reply-To: <20240223155749.2958009-1-qyousef@layalina.io> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: _GFMsstkd62ipsM6BDL85LCXu6Umeg4Y X-Proofpoint-ORIG-GUID: ZsQmflBtFjgBkzkgguc4nSunQi6LASKT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-24_08,2024-02-23_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 mlxscore=0 clxscore=1011 adultscore=0 priorityscore=1501 mlxlogscore=769 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402240116 On 2/23/24 9:27 PM, Qais Yousef wrote: > Due to recent changes in how topology is represented on asymmetric multi > processing systems like big.LITTLE where all cpus share the last LLC, there is > a performance regression as cpus with different compute capacities appear under > the same LLC and we no longer send an IPI when the requester is running on > a different cluster with different compute capacity. > > Restore the old behavior by adding a new cpus_equal_capacity() function to help > check for the new condition for these systems. > > Changes since v1: > > * Split the patch per subsystem. > * Convert cpus_gte_capacity() to cpus_equal_capacity() > * Make cpus_equal_capacity() return immediately for SMP systems. > nit: Did you mean !SMP systems here? Because in changes i see its returning true directly if its in !CONFIG_SMP path. > Qais Yousef (2): > sched: Add a new function to compare if two cpus have the same > capacity > block/blk-mq: Don't complete locally if capacities are different > > block/blk-mq.c | 5 +++-- > include/linux/sched/topology.h | 6 ++++++ > kernel/sched/core.c | 11 +++++++++++ > 3 files changed, 20 insertions(+), 2 deletions(-) >