Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4830785pxu; Thu, 10 Dec 2020 06:34:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5VP2Wh5L6gZRPvuMI1ToLTNfH9eZUb9UFH1s0rmyduS63Cw01SR640cGxTNfZO33K7FTb X-Received: by 2002:a17:906:814a:: with SMTP id z10mr6484647ejw.96.1607610877028; Thu, 10 Dec 2020 06:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607610877; cv=none; d=google.com; s=arc-20160816; b=lQ16JMtK9XcyQIhNqGnUQbXhN84wsBSujcFmS1mIomgCZ2itWQ28lP8rZQjjb8qSu2 3h8/yPVD86rxHc3LryktfVsOss2kgjbjOrXWbxWs1cXPz1FgwEvnY6+McsyMJ33BeWF/ 6iTMqetQxHdq0v4mysbKcEHcRNHNcf1elNspNmAPiD2lHi3dj63tWCFw2fCpHv3hPFOv n+bTGgDg8Y6j2Xank+nltwIP7GpMoP79FatMd5Hr296ABMzVnfe+nlMT4tSvWJZMUlsG pQFxfD+jBmUeVEq/lRhVI+MPjVQ34MICqeyoKY7d6+P4617RgI+Tt9v+j1j1161hSIo2 RWIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=TjNv/fxR74RGWryGKF126aNUac0bvHYy69s8G+u2FBw=; b=KNRd6aiViwxL1HwPzfGZvO37tYWdg0U6ShJG42pOWTV33xIhdHL2Ue4Wo/nsMxHq3J O86ocUrpA3kfxIofk4JP/VPMT0DzgGsp8XTgqX3ng5dY6AYy+UiYyVLGcIRti0DM9QW5 qG1YYgiXWHfseG7DfTWNqzsY5AWHKBUkhot5C38T/rCzrlq6N8OS0copQjFMzfn/9By4 /psa1EHKDovwg63hGU2BPGP9Las5iNTsaRAsb7fEYss4hO3q7NjNwDzKyfCEL3rYD2Jw 23c/x4rtF6xq3zj1v9OxfnyrB5akpKIRKmFahuWt9GJK6loXg6ANnPKrintjwc0EYkyE m5/w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si2719403ejk.428.2020.12.10.06.34.09; Thu, 10 Dec 2020 06:34:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389529AbgLJLbJ (ORCPT + 99 others); Thu, 10 Dec 2020 06:31:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389510AbgLJLaw (ORCPT ); Thu, 10 Dec 2020 06:30:52 -0500 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508FCC061793 for ; Thu, 10 Dec 2020 03:30:34 -0800 (PST) Received: by ozlabs.org (Postfix, from userid 1034) id 4CsBYF1ksbz9shj; Thu, 10 Dec 2020 22:30:24 +1100 (AEDT) From: Michael Ellerman To: Srikar Dronamraju , Michael Ellerman Cc: Phil Auld , Gautham R Shenoy , Waiman Long , Peter Zijlstra , Juri Lelli , Nathan Lynch , Valentin Schneider , Nicholas Piggin , linuxppc-dev , LKML In-Reply-To: <20201202050456.164005-1-srikar@linux.vnet.ibm.com> References: <20201202050456.164005-1-srikar@linux.vnet.ibm.com> Subject: Re: [PATCH v2 0/4] Powerpc: Better preemption for shared processor Message-Id: <160756606176.1313423.10082301769067590963.b4-ty@ellerman.id.au> Date: Thu, 10 Dec 2020 22:30:24 +1100 (AEDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Dec 2020 10:34:52 +0530, Srikar Dronamraju wrote: > Currently, vcpu_is_preempted will return the yield_count for > shared_processor. On a PowerVM LPAR, Phyp schedules at SMT8 core boundary > i.e all CPUs belonging to a core are either group scheduled in or group > scheduled out. This can be used to better predict non-preempted CPUs on > PowerVM shared LPARs. > > perf stat -r 5 -a perf bench sched pipe -l 10000000 (lesser time is better) > > [...] Applied to powerpc/next. [1/4] powerpc: Refactor is_kvm_guest() declaration to new header https://git.kernel.org/powerpc/c/92cc6bf01c7f4c5cfefd1963985c0064687ebeda [2/4] powerpc: Rename is_kvm_guest() to check_kvm_guest() https://git.kernel.org/powerpc/c/16520a858a995742c2d2248e86a6026bd0316562 [3/4] powerpc: Reintroduce is_kvm_guest() as a fast-path check https://git.kernel.org/powerpc/c/a21d1becaa3f17a97b933ffa677b526afc514ec5 [4/4] powerpc/paravirt: Use is_kvm_guest() in vcpu_is_preempted() https://git.kernel.org/powerpc/c/ca3f969dcb111d35674b66bdcb72beb2c426b9b5 cheers