Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2258640ybv; Mon, 24 Feb 2020 02:07:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw9hUO0jS2EJfU1PJB37jeIOGf+H8Xcgh8Jk/xcAzM0sSN1XE0GyZUxqdabojGfsc3Al+m6 X-Received: by 2002:a54:4e8d:: with SMTP id c13mr11738657oiy.27.1582538825243; Mon, 24 Feb 2020 02:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582538825; cv=none; d=google.com; s=arc-20160816; b=fPZ5O2rvb31XFYedUcufiAnw7e4BQ6Xm7ELRO/kRTP6BFk9jxN4ULvpOd8syDltI2S P1gi7QwxwaVJ5U171IR3DXFoDFG/vOM3relUQVcDZkRyxZiZOfnMTcFYAfJNP35hAh1E hO+LG3gQeCUyksPkqP81fToocwtlYiXAB7ZWWI9Z+H2Jeezq2R638I7CcHePgzwel86M d/aFm+0U3UMeVzRLIZuu+OZs8BL9G/sXTjlcONxHuhQ1APHfSfxNmyMxnzacvs7UnRqU qQCGhadxbXwQMXS8k3Hy7b1DMZ/yx2L3eGa+3WVkz8SZSgt0IFx3D9F+Hi5jjKSywCTh pelA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=liN0DoLFI0dmIl4RswmkDJ9rb80crEelPOohvZC9FMY=; b=LLJIjnv5YYfwmjz4BGfHN77xKL0S+NKZqvNMdcTYRDy5Ckbe7eoKRoBd8hLYt+hAGA 4cqucK2eabhM7FNsdYjPoRc/51gXOOOY6Pyxwl1addCtU66rCY90ihagSV2syyboXLzZ 9E7SfDP+PC+6+Q/D/zy/bALWQS/nV240M0mcqNoT7Vz9FEQSnCmo9krFcm92FLdII4cJ 1wDc4kUcq3k0MtK3z2AUnwum9hekgX8AEIE4gxyGo6F6g6HpotQvKXVN30+UkstAB0zm tFsF4mP2Bqs2zKTn3h9gGptdQo5Md14fnmSsB5SW81v10MQb71Fa2NppGDtWuEW3RyQq Vl6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si6379522otm.256.2020.02.24.02.06.52; Mon, 24 Feb 2020 02:07:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbgBXKFl (ORCPT + 99 others); Mon, 24 Feb 2020 05:05:41 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38492 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgBXKFl (ORCPT ); Mon, 24 Feb 2020 05:05:41 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01OA4jlq144248 for ; Mon, 24 Feb 2020 05:05:40 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2yax37eew5-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Feb 2020 05:05:40 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 24 Feb 2020 10:05:38 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 24 Feb 2020 10:05:34 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01OA5XwJ43057346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Feb 2020 10:05:33 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3699A52050; Mon, 24 Feb 2020 10:05:33 +0000 (GMT) Received: from localhost.localdomain (unknown [9.124.35.160]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 57B3B5204E; Mon, 24 Feb 2020 10:05:31 +0000 (GMT) Subject: Re: [PATCH v4 4/5] sched/pelt: Add a new runnable average signal To: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Cc: pauld@redhat.com, valentin.schneider@arm.com, hdanton@sina.com References: <20200221132715.20648-1-vincent.guittot@linaro.org> <20200221132715.20648-5-vincent.guittot@linaro.org> From: Parth Shah Date: Mon, 24 Feb 2020 15:35:30 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20200221132715.20648-5-vincent.guittot@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20022410-0020-0000-0000-000003AD0AED X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20022410-0021-0000-0000-000022051B71 Message-Id: <1bf450ee-a731-794c-452c-654a508365b5@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-24_02:2020-02-21,2020-02-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxlogscore=793 priorityscore=1501 lowpriorityscore=0 clxscore=1015 phishscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002240087 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/21/20 6:57 PM, Vincent Guittot wrote: > Now that runnable_load_avg has been removed, we can replace it by a new > signal that will highlight the runnable pressure on a cfs_rq. This signal > track the waiting time of tasks on rq and can help to better define the > state of rqs. [...] > @@ -5389,6 +5444,11 @@ static unsigned long cpu_load_without(struct rq *rq, struct task_struct *p) > return load; > } > > +static unsigned long cpu_runnable(struct rq *rq) > +{ > + return cfs_rq_runnable_avg(&rq->cfs); > +} Why not move cpu-runnable definition to Patch 5? to get rid of warning: ‘cpu_runnable’ defined but not used [-Wunused-function] static unsigned long cpu_runnable(struct rq *rq) [...] - Parth