Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1909173ybz; Thu, 30 Apr 2020 07:35:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJYFHaox9lQv7Wa+4k3vygfZWME2K1BoM8mZk/v6yVtw9k9batKZYceZjK/sGcvkXBlORIx X-Received: by 2002:a17:906:4548:: with SMTP id s8mr2874256ejq.349.1588257341147; Thu, 30 Apr 2020 07:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588257341; cv=none; d=google.com; s=arc-20160816; b=HTUuFc0i6YgSKlIAfU0Xeq7A/wbc1S4bIPzbWKp/a1Sf2+v9EFMFZKMZmu7uxyWy8w 00gckgOioSJkvucVX5CSaObwyt4GYvWtuezy47AB7goUouBbu4M9j1dtQoRFsde28nRj xgfO3gffD8V9TBVB7vMtU9SJacojMH6yUToo9hnmMsXs7nIJfEYh1h5ZsgFuq4v5lY5Y 9rWQ6gdTI1enZ4jXqkNYVIcrUOJkSVX/pBYJ/W1FcQ3x+gezc2Y9lZJAC0Yu2AZ6TG0x z26l74DEnexPuqmCLkrICAheQ7wzfFWIlXdv/BgTrLCOHMYAkzO5RWKceS298GiFsvzS Joiw== 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=N8xma4Yscc7iDza7oyQum6uWh1rtaLaztn4IeQcl7t0=; b=pEL8DFLroKplvO6oQsjJhJIVTswzr/C1xTwTwEd8QZH73DfU7+RTduljUrMoe2adnn JfAJn7mGV2LPDj3c6ZefrowSYghIVV6z6dV8PfD+vyOrMp75jImDtlt+d8mM8Y1tfiEr P0KHXvhIYGVWs7aRnLd7L25jIvWODnrEf6j8YTSOipOXsGOmGhTt/ALOIJln3HN8cYRC jRNdiwf2rxW1t/h3S4cUbkB05vI7E0OAO0PmSAVD8j0O0dKSE1WV+Lhb7HLOaIfRf0ZE xQg9IsPxqhRv+xk5Notr5XvOhcKHYI4j4FIKgvpMFxhiREzYNSBQhFmyzvGvP4YVshlC EFoA== ARC-Authentication-Results: i=1; mx.google.com; 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 p1si5875972ejw.313.2020.04.30.07.35.15; Thu, 30 Apr 2020 07:35:41 -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; 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 S1728387AbgD3Odl (ORCPT + 99 others); Thu, 30 Apr 2020 10:33:41 -0400 Received: from foss.arm.com ([217.140.110.172]:56156 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgD3Odk (ORCPT ); Thu, 30 Apr 2020 10:33:40 -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 D8BAD1063; Thu, 30 Apr 2020 07:33:39 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DA72A3F68F; Thu, 30 Apr 2020 07:33:37 -0700 (PDT) References: <20200424114058.21199-1-benjamin.gaignard@st.com> <7657495.QyJl4BcWH5@kreacher> <30cdecf9-703a-eb2b-7c2b-f1e21c805add@st.com> <70e743cf-b88e-346a-5114-939b8724c83d@arm.com> <6b5cde14-58b3-045d-9413-223e66b87bf0@st.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Benjamin GAIGNARD Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , "viresh.kumar\@linaro.org" , Hugues FRUCHET , "mchehab\@kernel.org" , "mcoquelin.stm32\@gmail.com" , Alexandre TORGUE , "pavel\@ucw.cz" , "len.brown\@intel.com" , "linux-pm\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" , "linux-media\@vger.kernel.org" , "linux-stm32\@st-md-mailman.stormreply.com" , "linux-arm-kernel\@lists.infradead.org" , Patrick Bellasi Subject: Re: [RFC 0/3] Introduce cpufreq minimum load QoS In-reply-to: Date: Thu, 30 Apr 2020 15:33:35 +0100 Message-ID: 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 30/04/20 14:46, Benjamin GAIGNARD wrote: >> That's not what I meant. >> >> I suppose that the interrupt processing in question takes place in >> process context and so you may set the lower clamp on the utilization >> of the task carrying that out. > > I have try to add this code when starting streaming (before the first > interrupt) the frames from the sensor: > const struct sched_attr sched_attr = { > .sched_util_min = 10000, /* 100% of usage */ Unless you play with SCHED_CAPACITY_SHIFT, the max should be 1024 - i.e. SCHED_CAPACITY_SCALE. That's a really big boost, but that's for you to benchmark. > .sched_flags = SCHED_FLAG_UTIL_CLAMP_MIN, > }; > > sched_setattr(current, &sched_attr); > > I don't see any benefices maybe there is some configuration flags to set. > > How changing sched_util_min could impact cpufreq ondemand governor ? > Does it change the value returned when the governor check the idle time ? > You'll have to use the schedutil governor for uclamp to have an effect. And arguably that's what you should be using, unless something explicitly prevents you from doing that. >> >> Alternatively, that task may be a deadline one.