Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp5518925lfu; Mon, 28 Mar 2022 15:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB+hG3G5Qp4IW7+QYsIRuRO+4XJ98gQyZQfLG9Fw0Ryl1b3wiVE7C6EXgFs9bxxR5tHYDh X-Received: by 2002:a05:6870:61d4:b0:df:b74:8de5 with SMTP id b20-20020a05687061d400b000df0b748de5mr711216oah.37.1648507904274; Mon, 28 Mar 2022 15:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648507904; cv=none; d=google.com; s=arc-20160816; b=mlNuw8PQUZ7YtJz4Oh+tWpvda1I2Ife4NCDzz0VbsGDtHp0rvwF+5qqpH0pfBJuiCM mbl27evTl2sT73+AdVobibEo+QplSOYFiy7NN+Wk7I3UoqLPFrdnXXJ5WrJSimOtqlxm 3KxWCDf+srMIEHMJvusY8M56g8uymRb4Bvw2FaK7Hhrk2wbSuhT19hV7SdY8ZMb5DXZo ryn+LAjHUWTvI5ZvM63rqE+RttNmK2O2cFRC2/n2O5ZFOonrg6Ec/L28fAyxkLd+SW7Q wuhqx8qvaMY8ZBe3Mi0PA0UrF0hOth96tWwA1hAVRTg0o1VCOJLoSWfQuerGUOZPCfCn PzOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=+OGJBQ4Sb3gok1JscrEO0vfF9V4KHoeCdn+jAeDKoqg=; b=RG7twPgAidfq6Vo2EtY1r4/Llbz8VV7aPPJxtywEIrU5G1yo/aW0qzrXfq62ajWK2x fvkbq4+YYSU6ygM0u+LjpoX0LOQpU4dylgynqNPcHz1dfR/szvEbObYMJU3TFLp3Di+Q DzkuiEE0S9SDrQLFL3XlhtZDuMQKGXyjecEgGBXb6u45Ck4FPpv2rhH2MI9vgXP78rHB NyvGnH+JS+eYCwpHjancHeX5P5hTI5zNRUCqeLenN5RONtXNedF5PhJnS2lL792DX97d Liu7visEA7IEE7c4/LdEpbGVXui+6L0qDAwGaMJUvZMxcQiN1LfvXfPt/U7NKJvxKeok 3dLg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q11-20020aca5c0b000000b002ef0c34765esi10419849oib.222.2022.03.28.15.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:51:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 78E4C1DA5E; Mon, 28 Mar 2022 14:54:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233102AbiC1J0F (ORCPT + 99 others); Mon, 28 Mar 2022 05:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239804AbiC1J0A (ORCPT ); Mon, 28 Mar 2022 05:26:00 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 68D6E1659C for ; Mon, 28 Mar 2022 02:24:20 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 221D7150C; Mon, 28 Mar 2022 02:24:20 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 372273F66F; Mon, 28 Mar 2022 02:24:17 -0700 (PDT) Message-ID: <7a7e1e21-df3d-4623-d9cd-51f5272919d5@arm.com> Date: Mon, 28 Mar 2022 11:24:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 0/6] Add latency_nice priority Content-Language: en-US To: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org, parth@linux.ibm.com Cc: qais.yousef@arm.com, chris.hyser@oracle.com, pkondeti@codeaurora.org, valentin.schneider@arm.com, patrick.bellasi@matbug.net, David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz, tj@kernel.org, dhaval.giani@oracle.com, qperret@google.com, tim.c.chen@linux.intel.com References: <20220311161406.23497-1-vincent.guittot@linaro.org> From: Dietmar Eggemann In-Reply-To: <20220311161406.23497-1-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/03/2022 17:14, Vincent Guittot wrote: > This patchset restarts the work about adding a latency nice priority to > describe the latency tolerance of cfs tasks. > > The patches [1-4] have been done by Parth: > https://lore.kernel.org/lkml/20200228090755.22829-1-parth@linux.ibm.com/ > > I have just rebased and moved the set of latency priority outside the > priority update. I have removed the reviewed tag because the patches > are 2 years old. > > The patches [5-6] use latency nice priority to decide if a cfs task can > preempt the current running task. Patch 5 gives some tests results with > cyclictests and hackbench to highlight the benefit of latency nice > priority for short interactive task or long intensive tasks. The Android specific `latency_nice` (in Android `latency_sensitive` [latency_nice < 0]) use case `Skip energy aware task placement` favors an idle CPU over the EAS search path for a `latency_sensitive` task. https://lkml.kernel.org/r/2aa4b838-c298-ec7d-08f3-caa50cc87dc2@arm.com This is Android proprietary code similar to what we have in find_idlest_group_cpu() in mainline. We talked to the Android folks last week and IMHO they are not convinced that they can switch this to the proposed `latency_nice->tweak preemption` use case.