linaro-pm-wg team mailing list archive
-
linaro-pm-wg team
-
Mailing list archive
-
Message #00526
[Bug 1348283] [NEW] Workload is pinned in just one CPU
Public bug reported:
To properly identify the initial PState of each CPU, the idlestat_wake_all
function is used to force an idle state exit on all CPUs by pinning idlestat
on each CPUs.
However, this routine forgets to recover the original mask at the end of
the pinning process. Thus, the workload is being executed on just the
highest CPU.
Moreover, a CPU mask could be configured before idlestat is run, thus
it will be more safe to ensure a workload execution just on the CPUs
preconfigured by the original pinning.
The patch in attachment solves this issue by properly recovering the
original CPU affinity mask.
Moreover, as a little optimization, it avoids to wake up CPUs that will
not be used to run the workload.
** Affects: linaro-power-idlestat
Importance: Undecided
Status: New
** Patch added: "Fix CPU affinity mask"
https://bugs.launchpad.net/bugs/1348283/+attachment/4162064/+files/0001-Fix-CPU-affinity-mask.patch
--
You received this bug notification because you are a member of Linaro
Power Management Working Group, which is subscribed to Linaro Power
Idlestat.
Matching subscriptions: PMWG-idlestat
https://bugs.launchpad.net/bugs/1348283
Title:
Workload is pinned in just one CPU
Status in Idlestat - optimise CPU idling:
New
Bug description:
To properly identify the initial PState of each CPU, the idlestat_wake_all
function is used to force an idle state exit on all CPUs by pinning idlestat
on each CPUs.
However, this routine forgets to recover the original mask at the end of
the pinning process. Thus, the workload is being executed on just the
highest CPU.
Moreover, a CPU mask could be configured before idlestat is run, thus
it will be more safe to ensure a workload execution just on the CPUs
preconfigured by the original pinning.
The patch in attachment solves this issue by properly recovering the
original CPU affinity mask.
Moreover, as a little optimization, it avoids to wake up CPUs that will
not be used to run the workload.
To manage notifications about this bug go to:
https://bugs.launchpad.net/linaro-power-idlestat/+bug/1348283/+subscriptions
Follow ups
References