From: Valentin Schneider <vschneid@redhat.com>
To: Shrikanth Hegde <sshegde@linux.vnet.ibm.com>,
mingo@redhat.com, peterz@infradead.org,
vincent.guittot@linaro.org
Cc: sshegde@linux.vnet.ibm.com, dietmar.eggemann@arm.com,
linux-kernel@vger.kernel.org, qperret@google.com,
srikar@linux.vnet.ibm.com, mingo@kernel.org,
pierre.gondois@arm.com, yu.c.chen@intel.com,
tim.c.chen@linux.intel.com, pauld@redhat.com,
lukasz.luba@arm.com, linux-doc@vger.kernel.org
Subject: Re: [PATCH v6 2/2] sched/topology: change behaviour of sysctl sched_energy_aware based on the platform
Date: Mon, 09 Oct 2023 16:49:59 +0200 [thread overview]
Message-ID: <xhsmhmswronoo.mognet@vschneid.remote.csb> (raw)
In-Reply-To: <20231009060037.170765-3-sshegde@linux.vnet.ibm.com>
On 09/10/23 11:30, Shrikanth Hegde wrote:
> sysctl sched_energy_aware is available for the admin to disable/enable
> energy aware scheduling(EAS). EAS is enabled only if few conditions are
> met by the platform. They are, asymmetric CPU capacity, no SMT,
> schedutil CPUfreq governor, frequency invariant load tracking etc.
> A platform may boot without EAS capability, but could gain such
> capability at runtime. For example, changing/registering the CPUfreq
> governor to schedutil.
>
> At present, though platform doesn't support EAS, this sysctl returns 1
> and it ends up calling build_perf_domains on write to 1 and
> NOP when writing to 0. That is confusing and un-necessary.
>
> Desired behavior would be to have this sysctl to enable/disable the EAS
> on supported platform. On non-supported platform write to the sysctl
> would return not supported error and read of the sysctl would return
> empty. So
> sched_energy_aware returns empty - EAS is not possible at this moment
> This will include EAS capable platforms which have at least one EAS
> condition false during startup, e.g. not using the schedutil CPUfreq governor
> sched_energy_aware returns 0 - EAS is supported but disabled by admin.
> sched_energy_aware returns 1 - EAS is supported and enabled.
>
> User can find out the reason why EAS is not possible by checking
> info messages. sched_is_eas_possible returns true if the platform
> can do EAS at this moment.
>
> Tested-by: Pierre Gondois <pierre.gondois@arm.com>
> Signed-off-by: Shrikanth Hegde <sshegde@linux.vnet.ibm.com>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
next prev parent reply other threads:[~2023-10-09 14:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-09 6:00 [PATCH v6 0/2] sched: EAS changes for EM complexity and sysctl Shrikanth Hegde
2023-10-09 6:00 ` [PATCH v6 1/2] sched/topology: Remove EM_MAX_COMPLEXITY limit Shrikanth Hegde
2023-10-09 11:08 ` Ingo Molnar
2023-10-09 12:59 ` [tip: sched/core] sched/topology: Remove the " tip-bot2 for Pierre Gondois
2023-10-09 6:00 ` [PATCH v6 2/2] sched/topology: change behaviour of sysctl sched_energy_aware based on the platform Shrikanth Hegde
2023-10-09 14:49 ` Valentin Schneider [this message]
2023-10-09 15:48 ` [tip: sched/core] sched/topology: Move the declaration of 'schedutil_gov' to kernel/sched/sched.h tip-bot2 for Ingo Molnar
2023-10-09 15:48 ` [tip: sched/core] sched/topology: Change behaviour of the 'sched_energy_aware' sysctl, based on the platform tip-bot2 for Shrikanth Hegde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xhsmhmswronoo.mognet@vschneid.remote.csb \
--to=vschneid@redhat.com \
--cc=dietmar.eggemann@arm.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=mingo@kernel.org \
--cc=mingo@redhat.com \
--cc=pauld@redhat.com \
--cc=peterz@infradead.org \
--cc=pierre.gondois@arm.com \
--cc=qperret@google.com \
--cc=srikar@linux.vnet.ibm.com \
--cc=sshegde@linux.vnet.ibm.com \
--cc=tim.c.chen@linux.intel.com \
--cc=vincent.guittot@linaro.org \
--cc=yu.c.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®