Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp41148lql; Fri, 12 Apr 2024 03:08:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm5NXaPYyMuwNCnifXMTPAjEtcPLDAkDUvKd9M7W6Dgqk59I8tZE6Ow7RXh3lZFg9AiLCGlMZ7S8kRcEMsqAzb1iGeqoD3q/+LS4eX7g== X-Google-Smtp-Source: AGHT+IEFJbdc2+A2Vzk+olZCsOwV1XNaehdgUy8rbnMyVSbjcB/f/SYSIroIrK+XGvvyeyVrXemS X-Received: by 2002:a17:907:7f9e:b0:a51:95f1:4308 with SMTP id qk30-20020a1709077f9e00b00a5195f14308mr1806516ejc.51.1712916483500; Fri, 12 Apr 2024 03:08:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712916483; cv=pass; d=google.com; s=arc-20160816; b=Gm6iIBlJmuQPQktTsct0ctay9OT6KA+7PYqopLk17SqfweGVkIoTzcg5+H3eVGrPiM 23uQSpM7ikT1rM1ty4IAJNrghugJQ+TpBeLRK2Wbl7pcQy2N5iKUTIWpI1KThs92VuQ2 paalaRwco/WUBp2bsIXOApm02puYucjjkgW4lvi3chdKJpNpdxxKEDwza4RO2/+0YkL9 uZQvkphMTodHEVpdfDZjZEvLUZmSX1nRiKGmst+gLHFp6i+2uD6Dao5JiBrSRUqVIl0o YHvj5fOygCAWB3btijeXWAc7YAk15tvcxaMHNZ1/VeJcqi7S9e9bfTHgmohS1ddgRVtD X23A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gIqeReF95pXfXYhYP0AXo2CDiHUnEU8JxPisJt7r5No=; fh=2PibyTstpVtCoHq+u2CpA7y8nSEehZA7+GncQiz+F0k=; b=qP1/qmPUfbSniLcfG63dN25ISVq3YdV53fAVDwGv1aFvkDpfFn0tpsj1URlX2dZK/V LGMcjU7tS8j6A9267kwyPHGqtuLIr1WM0EhrqSKgC1v7iw48267xiniHbx0QyEwJEI6G Rz+Nso7wmWhs8HHD9CWwPgunQkDTtbmNUoSAZkq/6FjE4Tmtx9ISzVLhHQ86kXR4x43H Y7qPZBjB+0V0XCTLcdEmJdd6ZmllxJNPX2aaamUDWOLCrbhdCthTF1N5m3gryvookAZ+ CXUQBNyFIHmZi3s52DvK3bZiJQwcrfHFTpuw6NNK0wuyg8unBVaT4RbjuDgV1/aIYm8W IZTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="dS/yLfWb"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-142468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gb35-20020a170907962300b00a51c4d61266si1573514ejc.308.2024.04.12.03.08.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 03:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="dS/yLfWb"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-142468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 145DB1F223B6 for ; Fri, 12 Apr 2024 10:08:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F1E5535C9; Fri, 12 Apr 2024 10:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="dS/yLfWb" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 0ECC7502AC; Fri, 12 Apr 2024 10:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712916473; cv=none; b=lyBv4w5Ah4HwBFmcN0E6Spa5fBbSsuxK7pQ4ePWkE3udz0k05CCK1AtblnK9Ny1wPjnfZaKpmpXohS71DdLvO2eku7OVMV6h2rZ69NAWHlg84FDwQ8R8W+ArvIUcSgKtqVBeFROOKPeBuXKm2RGa7JTsiiYv3mFCMB/xfPeiCc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712916473; c=relaxed/simple; bh=rsBOxr6Gjs4j8AYZEtfDkxXxCRpzRRY6DRRlTtZbPbY=; h=Message-ID:Date:MIME-Version:Subject:From:To:CC:References: In-Reply-To:Content-Type; b=ee05clSVrn747Yjp4ZyrYClS7OWRx+axdtLl4cgBVT8FbvrZceJLYlTMMR5oBQjAIPgDO4YxFJD3v+rup5HeBafSRh9zbPBrSfvGMfHglwr8RQXoEr69wL6iaR0mhwqvRNIgzwmXnZKv+69j9zKmO+VxSRMewQUjsgZUL9xAG+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=dS/yLfWb; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43C6F8Y0005367; Fri, 12 Apr 2024 10:07:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:cc:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=gIqeReF95pXfXYhYP0AXo2CDiHUnEU8JxPisJt7r5No=; b=dS /yLfWbwCT4HcoWPWVa+9gC7uA8ID6SHKt+fGS0Mdz/duNOtcVVMblAHudzfoNb+D X7VFSSwYZ4xDBoZ/XN0gz0lVdQBUZ1qy5xhb1qC3qyRFVE3ghZZmTodu/V/YN3Lg +IkOzd41hRAIljpwEAcjWiwFp306AjsrSpppGIYM1uruq4jxKufnQsFCuKuKS5wr cD132wgz1Hlr+Hl6TNhLv9wu3lpWyBMuICXr/Nucdoif8AKUIbVEQYNT8Awz27zS sFMaLvnhUWJefhzWsoDdVCZqeo323mG3Nga5j9I3deNvk9RB/NKZmHL/c4tACPv7 v0fJB0kvGKjIBKkzEWDw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xev74ruej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Apr 2024 10:07:29 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43CA7S2s002736 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Apr 2024 10:07:28 GMT Received: from [10.216.43.23] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 12 Apr 2024 03:07:20 -0700 Message-ID: Date: Fri, 12 Apr 2024 15:36:43 +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 8/8] sched/pelt: Introduce PELT multiplier From: Ashay Jaiswal To: Vincent Guittot , Qais Yousef CC: Ingo Molnar , Peter Zijlstra , "Rafael J. Wysocki" , Viresh Kumar , Dietmar Eggemann , , , Lukasz Luba , Wei Wang , Rick Yiu , Chung-Kai Mei , , , , , , , References: <20231208002342.367117-1-qyousef@layalina.io> <20231208002342.367117-9-qyousef@layalina.io> <20240121000444.ghue2miejmiair6l@airbuntu> <8dfb5db7-6da0-4f6f-30ef-8966428e4a1c@quicinc.com> <2270ebb6-3830-d667-1b9e-2efc96746b94@quicinc.com> Content-Language: en-US In-Reply-To: <2270ebb6-3830-d667-1b9e-2efc96746b94@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: A51eqVVYQa2YnVSeNW0ANGELHT1P6_b9 X-Proofpoint-ORIG-GUID: A51eqVVYQa2YnVSeNW0ANGELHT1P6_b9 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-04-12_06,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 clxscore=1011 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 priorityscore=1501 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404120073 On 2/6/2024 10:37 PM, Ashay Jaiswal wrote: > > > On 1/30/2024 10:58 PM, Vincent Guittot wrote: >> On Sun, 28 Jan 2024 at 17:22, Ashay Jaiswal wrote: >>> >>> Hello Qais Yousef, >>> >>> Thank you for your response. >>> >>> On 1/21/2024 5:34 AM, Qais Yousef wrote: >>>> Hi Ashay >>>> >>>> On 01/20/24 13:22, Ashay Jaiswal wrote: >>>>> Hello Qais Yousef, >>>>> >>>>> We ran few benchmarks with PELT multiplier patch on a Snapdragon 8Gen2 >>>>> based internal Android device and we are observing significant >>>>> improvements with PELT8 configuration compared to PELT32. >>>>> >>>>> Following are some of the benchmark results with PELT32 and PELT8 >>>>> configuration: >>>>> >>>>> +-----------------+---------------+----------------+----------------+ >>>>> | Test case | PELT32 | PELT8 | >>>>> +-----------------+---------------+----------------+----------------+ >>>>> | | Overall | 711543 | 971275 | >>>>> | +---------------+----------------+----------------+ >>>>> | | CPU | 193704 | 224378 | >>>>> | +---------------+----------------+----------------+ >>>>> |ANTUTU V9.3.9 | GPU | 284650 | 424774 | >>>>> | +---------------+----------------+----------------+ >>>>> | | MEM | 125207 | 160548 | >>>>> | +---------------+----------------+----------------+ >>>>> | | UX | 107982 | 161575 | >>>>> +-----------------+---------------+----------------+----------------+ >>>>> | | Single core | 1170 | 1268 | >>>>> |GeekBench V5.4.4 +---------------+----------------+----------------+ >>>>> | | Multi core | 2530 | 3797 | >>>>> +-----------------+---------------+----------------+----------------+ >>>>> | | Twitter | >50 Janks | 0 | >>>>> | SCROLL +---------------+----------------+----------------+ >>>>> | | Contacts | >30 Janks | 0 | >>>>> +-----------------+---------------+----------------+----------------+ >>>>> >>>>> Please let us know if you need any support with running any further >>>>> workloads for PELT32/PELT8 experiments, we can help with running the >>>>> experiments. >>>> >>>> Thanks a lot for the test results. Was this tried with this patch alone or >>>> the whole series applied? >>>> >>> I have only applied patch8(sched/pelt: Introduce PELT multiplier) for the tests. >>> >>>> Have you tried to tweak each policy response_time_ms introduced in patch >>>> 7 instead? With the series applied, boot with PELT8, record the response time >>>> values for each policy, then boot back again to PELT32 and use those values. >>>> Does this produce similar results? >>>> >>> As the device is based on 5.15 kernel, I will try to pull all the 8 patches >>> along with the dependency patches on 5.15 and try out the experiments as >>> suggested. >> >> Generally speaking, it would be better to compare with the latest >> kernel or at least close and which includes new features added since >> v5.15 (which is more than 2 years old now). I understand that this is >> not always easy or doable but you could be surprised by the benefit of >> some features like [0] merged since v5.15 >> >> [0] https://lore.kernel.org/lkml/249816c9-c2b5-8016-f9ce-dab7b7d384e4@arm.com/ >> > Thank you Vincent for the suggestion, I will try to get the results on device running > with most recent kernel and update. > > Thanks, > Ashay Jaiswal Hello Qais Yousef and Vincent, Sorry for the delay, setting up internal device on latest kernel is taking more time than anticipated. We are trying to bring-up latest kernel on the device and will complete the testing with the latest cpufreq patches as you suggested. Regarding PELT multiplier patch [1], are we planning to merge it separately or will it be merged altogether with the cpufreq patches? [1]: https://lore.kernel.org/all/20231208002342.367117-9-qyousef@layalina.io/ Thanks and Regards, Ashay Jaiswal >>> >>>> You didn't share power numbers which I assume the perf gains are more important >>>> than the power cost for you. >>>> >>> If possible I will try to collect the power number for future test and share the >>> details. >>> >>>> >>>> Thanks! >>>> >>>> -- >>>> Qais Yousef