Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp748221ybe; Thu, 5 Sep 2019 05:28:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqySrlh/svknGDOyh9eSo7Huy+mCcJmrS0m+ZGuq0/xerx9zy+S3NZyYIfgXP21W3e4e/3Uw X-Received: by 2002:a63:2a87:: with SMTP id q129mr2966711pgq.101.1567686498913; Thu, 05 Sep 2019 05:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567686498; cv=none; d=google.com; s=arc-20160816; b=aztp2N+6Z1zvUYN16kt+lRbYlNwWvXqG1FCBwme4vNmy07rGQ5utTKrhy7CNd5ezSp TeZ5vfUu79GmY5BR2ycsEy7LMM1A//+549EgOMeknYhsBR3dTfkJU7Dh9qKKLNmaQIsp 24UnnZrzM6J0Fth1M78klRhZh2d+a7Uyzm8v0crXXXznpoAAVYKnN55ezTzpY71ZXir4 aNz7uN4z/WAiYILDKX1jO1DPZKIzO48BgoV/07fgABj3fFc2aIiRaOl/65H3JKfEAbH7 dDSyco2FKvsGsxNqsOhiEV0YfaogDzr4wMbKfuc/T3EiY2qvl6rCSPozXwZRI4xeEaQx Pt6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=tU+SJwoipk44cfpUvK8tU+VfrL5j0TuQBnevCAsyIrg=; b=ia3GsUyHriAlO3tEnjrEjGlFlHKXV7JZFr5NjX/MG1TqTyUpL6s5Ce04rHlU9RHlvI n2I1FQ/XIQMUsWgk9CqLvtjQA5+ig7pHOU3T7MGtQCVQ4BJy8BOINx13fUQjJNSz04IT 7M14HcB4QD3VLPFrrZoDxp1TMFYM/GbpV4wQByLlHf2XS0aGJFgKJDU6/uiZaDoZnhY6 Nb+L9n3qcG8+l+D25U/8pu0uCwen+sBEVJCqdM2QKePo3JuyIfu0igvU3s5QRPaDXPOO UqZ/GoJOkc1tVhNLlUaRW9cbJrWjIj46c5p/j4wH3QmNsLbrdfkxSWJlfxB3N8ZxBANO oS+w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si1575883pge.301.2019.09.05.05.28.03; Thu, 05 Sep 2019 05:28:18 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387405AbfIEKbU (ORCPT + 99 others); Thu, 5 Sep 2019 06:31:20 -0400 Received: from foss.arm.com ([217.140.110.172]:41376 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731058AbfIEKbU (ORCPT ); Thu, 5 Sep 2019 06:31:20 -0400 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 930881576; Thu, 5 Sep 2019 03:31:19 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DF32D3F718; Thu, 5 Sep 2019 03:31:17 -0700 (PDT) References: <20190830174944.21741-1-subhra.mazumdar@oracle.com> User-agent: mu4e 1.3.3; emacs 26.2 From: Patrick Bellasi To: subhra mazumdar Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, tglx@linutronix.de, steven.sistare@oracle.com, dhaval.giani@oracle.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, viresh.kumar@linaro.org, tim.c.chen@linux.intel.com, mgorman@techsingularity.net, parth@linux.ibm.com Subject: Re: [RFC PATCH 0/9] Task latency-nice In-reply-to: <20190830174944.21741-1-subhra.mazumdar@oracle.com> Date: Thu, 05 Sep 2019 11:31:15 +0100 Message-ID: <87k1an2fws.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 18:49:35 +0100, subhra mazumdar wrote... > Introduce new per task property latency-nice for controlling scalability > in scheduler idle CPU search path. As per my comments in other message, we should try to better split the "latency nice" concept introduction (API and mechanisms) from its usage in different scheduler code paths. This distinction should be evident from the cover letter too. What you use "latency nice" for is just one possible use-case, thus it's important to make sure it's generic enough to fit other usages too. > Valid latency-nice values are from 1 to > 100 indicating 1% to 100% search of the LLC domain in select_idle_cpu. New > CPU cgroup file cpu.latency-nice is added as an interface to set and get. > All tasks in the same cgroup share the same latency-nice value. Using a > lower latency-nice value can help latency intolerant tasks e.g very short > running OLTP threads where full LLC search cost can be significant compared > to run time of the threads. The default latency-nice value is 5. > > In addition to latency-nice, it also adds a new sched feature SIS_CORE to > be able to disable idle core search altogether which is costly and hurts > more than it helps in short running workloads. I don't see why you latency-nice cannot be used to implement what you get with NO_SIS_CORE. IMHO, "latency nice" should be exposed as a pretty generic concept which progressively enables different "levels of biasing" both at wake-up time and load-balance time. Why it's not possible to have SIS_CORE/NO_SIS_CORE switch implemented just as different threshold values for the latency-nice value of a task? Best, Patrick -- #include Patrick Bellasi