From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1631AC83000 for ; Thu, 30 Apr 2020 14:33:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DE69E20774 for ; Thu, 30 Apr 2020 14:33:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fKynlh2k" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DE69E20774 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date: In-reply-to:Subject:To:From:References:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lAGhK9hDxOi+gig5RCt8w4gw+AxAD6XOZwuE+MGpJZI=; b=fKynlh2kIQLs/QhG00MkFkgeeF cUnhQmEtlp7+jKEP0GxgwZeEISbtrD5hcCGpeYiZp34CrNRwpl2GaV6nMyNutyQwk1+pM94TU+pfG YvfC/8wiR7QUR6IPAg13oXDG8X6eebbWThVGuWko2wSgRa1jBn6L7iJBiB+i0FQLm2bJ+L6SluuFB QYKZF3Kd082febHTP5Aa5IVM+nd8q9d5RoJw2yMPHVu/vvDgvKu+4FeDcP4jOF0cf5MAlhb+38vcM NndZ3bIZ08zJMZk/OcXqhdWQdfV7q32UI3HDMfnLsHTOcTRlbRbUFnqAwleN/qrq/NqzsdROLUXRt SLQPODuQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jUAFz-0003yl-FC; Thu, 30 Apr 2020 14:33:43 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jUAFw-0003xk-PJ for linux-arm-kernel@lists.infradead.org; Thu, 30 Apr 2020 14:33:42 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200430_073340_863326_8CC24561 X-CRM114-Status: GOOD ( 10.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "len.brown@intel.com" , Alexandre TORGUE , "Rafael J. Wysocki" , "viresh.kumar@linaro.org" , "pavel@ucw.cz" , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" , Patrick Bellasi , "mcoquelin.stm32@gmail.com" , Hugues FRUCHET , "mchehab@kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-media@vger.kernel.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel