Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp967636pxv; Fri, 25 Jun 2021 02:26:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGZIkQE6+8C7HAKazf/47IECIggnqz83NTEjUiHBWHIhQRrr0k33d9sUoe9aq91hM6EZPG X-Received: by 2002:a6b:3c01:: with SMTP id k1mr7817253iob.24.1624613182370; Fri, 25 Jun 2021 02:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624613182; cv=none; d=google.com; s=arc-20160816; b=T7c2wpgpK2zpNSbLxWwzjsdM1i8T8FjnjnIac0N5ju0etRRHYIruKbQ9MYcW3jeBOO hEbRaUglpYmXzJPqu4g+94PUMmLtEqDcRupdGDvr/1bN5kaFDA8Ow2lmjsRFK/R+v6CZ i9B1EXefQ7DISM5fjzn5kpgN8hzNGbCQe6qKICtI4lMpPMajZmxk9L2udT9Md+/r/+bf Dd2VXjbqN7Gun9O6Gejjd1KHvpyNIOLNs9OlWRCxgMBjKFqkqtICY+Q2MpOvpLgfGKsq XzL40b4QWBXTReBpIf7DbcHwzc8EnhKoNooYi86bD2uvsEiVQW/oki02jFeKnU0WtpeS /nYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dMY13I84dJhIYMfvS1RIUCTZQHlkbDFJwuVqw/xla9o=; b=UZS5C4Fq2oEEPNPIsQ8r4F1RYBcfGMWTrBbB2kTpWLiVaCq05ogjIJpGpUvcRUBOTG AOILAaeJgWc4caiqb8OGoGFr8rj7u+vDufjY/CdwOyUR8vVGs6kw4a6sgnZgU7YbBzTE 4KSKdC/GgKDogiSmU5t8DkVMdMxLtnpfbKXbSKNeKA4KyNk9FUyxTkPX4o/Y+Rc6wusa DpPjHAPAx3R1idvWbpG9+jN+rHXDsCyYQL432MG6ypAEn07l+Og+w6lwj6AZTYERORO8 FZUDFxlRlVh8mEKOMCGVouLdp9XBMy3Ts8HniPsFp5SZrF2n5qBKeaUNrZJVyr2wRvTs g7Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Bage5B+I; 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 d70si6591895iog.4.2021.06.25.02.26.10; Fri, 25 Jun 2021 02:26:22 -0700 (PDT) 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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Bage5B+I; 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 S231567AbhFYJ1Y (ORCPT + 99 others); Fri, 25 Jun 2021 05:27:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231501AbhFYJ1G (ORCPT ); Fri, 25 Jun 2021 05:27:06 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAB3EC061574 for ; Fri, 25 Jun 2021 02:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=dMY13I84dJhIYMfvS1RIUCTZQHlkbDFJwuVqw/xla9o=; b=Bage5B+IKEi/d2/kEmdBJUTaIL uduNNAFJLqp9bRKi2mrC5OrNptagawKlKMLhLahxCPCm8nyr5JuH4TZ8IUgyogE8lDw2Di7UplKXC qZ4DH1fSKtx3kbOksdqZVZAnjfHpX2PzYWSMVtqUKdQzXn1MPg+fefw53N3nqnsB86eWHl6U+gmkb U1fqob3AQbIErtLGCpWnDCPUfoUj8JopyTqGj/t5+HcVsnWy1v1JCo4Z4aFj/a026QHa6j25we8gB ySlJndqNAxalHky7S8evCZpQmLcwmRBrCIngc9KwG8f5XUHdlT1HbTiR/7A0ZZC4uAXIFZt3opRoo 70yepG2w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwi4P-00BWpS-6g; Fri, 25 Jun 2021 09:24:24 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 74DD0300252; Fri, 25 Jun 2021 11:24:22 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 51EAA200B392D; Fri, 25 Jun 2021 11:24:22 +0200 (CEST) Date: Fri, 25 Jun 2021 11:24:22 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: Josh Don , Ingo Molnar , Juri Lelli , Vincent Guittot , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Paul Turner , David Rientjes , Oleg Rombakh , Viresh Kumar , Steve Sistare , Tejun Heo , linux-kernel Subject: Re: [PATCH] sched: cgroup SCHED_IDLE support Message-ID: References: <20210608231132.32012-1-joshdon@google.com> <7222c20a-5cbb-d443-a2fd-19067652a38e@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 15, 2021 at 12:06:57PM +0200, Dietmar Eggemann wrote: > I agree. `cpu.idle = 1` is like setting the task policy to SCHED_IDLE. > And there is even the `cpu.weight.nice` to support the `task - tg` > analogy on nice values. > > I'm just wondering if integrating this into `cpu.weight` and friends > would be better to make the code behind this easier to grasp. Magic weight values are dodgy imo. Easiest to have an explicit idle knob which then disables the weight knobs.