Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1612426 > unrolled thread
| Started by | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| First post | 2017-03-30 00:50 +0200 |
| Last post | 2017-03-31 11:20 +0200 |
| Articles | 7 — 4 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-03-30 00:50 +0200
Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Juri Lelli <juri.lelli@arm.com> - 2017-03-30 11:00 +0200
Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Vincent Guittot <vincent.guittot@linaro.org> - 2017-03-30 15:30 +0200
Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq "Rafael J. Wysocki" <rafael@kernel.org> - 2017-03-30 22:20 +0200
Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Juri Lelli <juri.lelli@arm.com> - 2017-03-31 09:40 +0200
Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq "Rafael J. Wysocki" <rafael@kernel.org> - 2017-03-31 11:10 +0200
Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq Juri Lelli <juri.lelli@arm.com> - 2017-03-31 11:20 +0200
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Date | 2017-03-30 00:50 +0200 |
| Subject | Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq |
| Message-ID | <tquzE-5dc-13@gated-at.bofh.it> |
On Friday, March 24, 2017 02:08:59 PM Juri Lelli wrote: > No assumption can be made upon the rate at which frequency updates get > triggered, as there are scheduling policies (like SCHED_DEADLINE) which > don't trigger them so frequently. > > Remove such assumption from the code. But the util/max values for idle CPUs may be stale, no? Thanks, Rafael
[toc] | [next] | [standalone]
| From | Juri Lelli <juri.lelli@arm.com> |
|---|---|
| Date | 2017-03-30 11:00 +0200 |
| Subject | Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq |
| Message-ID | <tqE5Y-3Mi-11@gated-at.bofh.it> |
| In reply to | #1612426 |
Hi, On 30/03/17 00:41, Rafael J. Wysocki wrote: > On Friday, March 24, 2017 02:08:59 PM Juri Lelli wrote: > > No assumption can be made upon the rate at which frequency updates get > > triggered, as there are scheduling policies (like SCHED_DEADLINE) which > > don't trigger them so frequently. > > > > Remove such assumption from the code. > > But the util/max values for idle CPUs may be stale, no? > Right, that might be a problem. A proper solution I think would be to remotely update such values for idle CPUs, and I believe Vincent is working on a patch for that. As mid-term workarounds, changing a bit the current one, come to my mind: - consider TICK_NSEC (continue) only when SCHED_CPUFREQ_DL is not set - remove CFS contribution (without triggering a freq update) when a CPU enters IDLE; this might not work well, though, as we probably want to keep in blocked util contribution for a bit What you think is the way to go? Thanks, - Juri
[toc] | [prev] | [next] | [standalone]
| From | Vincent Guittot <vincent.guittot@linaro.org> |
|---|---|
| Date | 2017-03-30 15:30 +0200 |
| Subject | Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq |
| Message-ID | <tqIjg-6VF-13@gated-at.bofh.it> |
| In reply to | #1612746 |
On 30 March 2017 at 10:58, Juri Lelli <juri.lelli@arm.com> wrote: > Hi, > > On 30/03/17 00:41, Rafael J. Wysocki wrote: >> On Friday, March 24, 2017 02:08:59 PM Juri Lelli wrote: >> > No assumption can be made upon the rate at which frequency updates get >> > triggered, as there are scheduling policies (like SCHED_DEADLINE) which >> > don't trigger them so frequently. >> > >> > Remove such assumption from the code. >> >> But the util/max values for idle CPUs may be stale, no? >> > > Right, that might be a problem. A proper solution I think would be to > remotely update such values for idle CPUs, and I believe Vincent is > working on a patch for that. Yes. I'm working on a patch that will regularly update the blocked load/utilization of idle CPU. This update will be done on a slow pace to make sure that utilization and load will be decayed regularly > > As mid-term workarounds, changing a bit the current one, come to my > mind: > > - consider TICK_NSEC (continue) only when SCHED_CPUFREQ_DL is not set > - remove CFS contribution (without triggering a freq update) when a CPU > enters IDLE; this might not work well, though, as we probably want > to keep in blocked util contribution for a bit > > What you think is the way to go? > > Thanks, > > - Juri
[toc] | [prev] | [next] | [standalone]
| From | "Rafael J. Wysocki" <rafael@kernel.org> |
|---|---|
| Date | 2017-03-30 22:20 +0200 |
| Subject | Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq |
| Message-ID | <tqOI2-3e5-23@gated-at.bofh.it> |
| In reply to | #1612746 |
On Thu, Mar 30, 2017 at 10:58 AM, Juri Lelli <juri.lelli@arm.com> wrote: > Hi, Hi, > On 30/03/17 00:41, Rafael J. Wysocki wrote: >> On Friday, March 24, 2017 02:08:59 PM Juri Lelli wrote: >> > No assumption can be made upon the rate at which frequency updates get >> > triggered, as there are scheduling policies (like SCHED_DEADLINE) which >> > don't trigger them so frequently. >> > >> > Remove such assumption from the code. >> >> But the util/max values for idle CPUs may be stale, no? >> > > Right, that might be a problem. A proper solution I think would be to > remotely update such values for idle CPUs, and I believe Vincent is > working on a patch for that. > > As mid-term workarounds, changing a bit the current one, come to my > mind: > > - consider TICK_NSEC (continue) only when SCHED_CPUFREQ_DL is not set > - remove CFS contribution (without triggering a freq update) when a CPU > enters IDLE; this might not work well, though, as we probably want > to keep in blocked util contribution for a bit > > What you think is the way to go? Well, do we want SCHED_DEADLINE util contribution to be there even for idle CPUs? Thanks, Rafael
[toc] | [prev] | [next] | [standalone]
| From | Juri Lelli <juri.lelli@arm.com> |
|---|---|
| Date | 2017-03-31 09:40 +0200 |
| Subject | Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq |
| Message-ID | <tqZk6-1xW-13@gated-at.bofh.it> |
| In reply to | #1613452 |
On 30/03/17 22:13, Rafael J. Wysocki wrote: > On Thu, Mar 30, 2017 at 10:58 AM, Juri Lelli <juri.lelli@arm.com> wrote: > > Hi, > > Hi, > > > On 30/03/17 00:41, Rafael J. Wysocki wrote: > >> On Friday, March 24, 2017 02:08:59 PM Juri Lelli wrote: > >> > No assumption can be made upon the rate at which frequency updates get > >> > triggered, as there are scheduling policies (like SCHED_DEADLINE) which > >> > don't trigger them so frequently. > >> > > >> > Remove such assumption from the code. > >> > >> But the util/max values for idle CPUs may be stale, no? > >> > > > > Right, that might be a problem. A proper solution I think would be to > > remotely update such values for idle CPUs, and I believe Vincent is > > working on a patch for that. > > > > As mid-term workarounds, changing a bit the current one, come to my > > mind: > > > > - consider TICK_NSEC (continue) only when SCHED_CPUFREQ_DL is not set > > - remove CFS contribution (without triggering a freq update) when a CPU > > enters IDLE; this might not work well, though, as we probably want > > to keep in blocked util contribution for a bit > > > > What you think is the way to go? > > Well, do we want SCHED_DEADLINE util contribution to be there even for > idle CPUs? > DEADLINE util contribution is removed, even if the CPU is idle, by the reclaiming mechanism when we know (applying GRUB algorithm rules [1]) that it can't be used anymore by a task (roughly speaking). So, we shouldn't have this problem in the DEADLINE case. [1] https://marc.info/?l=linux-kernel&m=149029880524038
[toc] | [prev] | [next] | [standalone]
| From | "Rafael J. Wysocki" <rafael@kernel.org> |
|---|---|
| Date | 2017-03-31 11:10 +0200 |
| Subject | Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq |
| Message-ID | <tr0Jd-2AS-61@gated-at.bofh.it> |
| In reply to | #1613698 |
On Fri, Mar 31, 2017 at 9:31 AM, Juri Lelli <juri.lelli@arm.com> wrote: > On 30/03/17 22:13, Rafael J. Wysocki wrote: >> On Thu, Mar 30, 2017 at 10:58 AM, Juri Lelli <juri.lelli@arm.com> wrote: >> > Hi, >> >> Hi, >> >> > On 30/03/17 00:41, Rafael J. Wysocki wrote: >> >> On Friday, March 24, 2017 02:08:59 PM Juri Lelli wrote: >> >> > No assumption can be made upon the rate at which frequency updates get >> >> > triggered, as there are scheduling policies (like SCHED_DEADLINE) which >> >> > don't trigger them so frequently. >> >> > >> >> > Remove such assumption from the code. >> >> >> >> But the util/max values for idle CPUs may be stale, no? >> >> >> > >> > Right, that might be a problem. A proper solution I think would be to >> > remotely update such values for idle CPUs, and I believe Vincent is >> > working on a patch for that. >> > >> > As mid-term workarounds, changing a bit the current one, come to my >> > mind: >> > >> > - consider TICK_NSEC (continue) only when SCHED_CPUFREQ_DL is not set >> > - remove CFS contribution (without triggering a freq update) when a CPU >> > enters IDLE; this might not work well, though, as we probably want >> > to keep in blocked util contribution for a bit >> > >> > What you think is the way to go? >> >> Well, do we want SCHED_DEADLINE util contribution to be there even for >> idle CPUs? >> > > DEADLINE util contribution is removed, even if the CPU is idle, by the > reclaiming mechanism when we know (applying GRUB algorithm rules [1]) > that it can't be used anymore by a task (roughly speaking). So, we > shouldn't have this problem in the DEADLINE case. > > [1] https://marc.info/?l=linux-kernel&m=149029880524038 OK Why don't you store the contributions from DL and CFS separately, then (say, as util_dl, util_cfs, respectively) and only discard the CFS one if delta_ns > TICK_NSEC?
[toc] | [prev] | [next] | [standalone]
| From | Juri Lelli <juri.lelli@arm.com> |
|---|---|
| Date | 2017-03-31 11:20 +0200 |
| Subject | Re: [RFD PATCH 4/5] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq |
| Message-ID | <tr0SR-2Gc-1@gated-at.bofh.it> |
| In reply to | #1613773 |
On 31/03/17 11:03, Rafael J. Wysocki wrote: > On Fri, Mar 31, 2017 at 9:31 AM, Juri Lelli <juri.lelli@arm.com> wrote: > > On 30/03/17 22:13, Rafael J. Wysocki wrote: > >> On Thu, Mar 30, 2017 at 10:58 AM, Juri Lelli <juri.lelli@arm.com> wrote: > >> > Hi, > >> > >> Hi, > >> > >> > On 30/03/17 00:41, Rafael J. Wysocki wrote: > >> >> On Friday, March 24, 2017 02:08:59 PM Juri Lelli wrote: > >> >> > No assumption can be made upon the rate at which frequency updates get > >> >> > triggered, as there are scheduling policies (like SCHED_DEADLINE) which > >> >> > don't trigger them so frequently. > >> >> > > >> >> > Remove such assumption from the code. > >> >> > >> >> But the util/max values for idle CPUs may be stale, no? > >> >> > >> > > >> > Right, that might be a problem. A proper solution I think would be to > >> > remotely update such values for idle CPUs, and I believe Vincent is > >> > working on a patch for that. > >> > > >> > As mid-term workarounds, changing a bit the current one, come to my > >> > mind: > >> > > >> > - consider TICK_NSEC (continue) only when SCHED_CPUFREQ_DL is not set > >> > - remove CFS contribution (without triggering a freq update) when a CPU > >> > enters IDLE; this might not work well, though, as we probably want > >> > to keep in blocked util contribution for a bit > >> > > >> > What you think is the way to go? > >> > >> Well, do we want SCHED_DEADLINE util contribution to be there even for > >> idle CPUs? > >> > > > > DEADLINE util contribution is removed, even if the CPU is idle, by the > > reclaiming mechanism when we know (applying GRUB algorithm rules [1]) > > that it can't be used anymore by a task (roughly speaking). So, we > > shouldn't have this problem in the DEADLINE case. > > > > [1] https://marc.info/?l=linux-kernel&m=149029880524038 > > OK > > Why don't you store the contributions from DL and CFS separately, then > (say, as util_dl, util_cfs, respectively) and only discard the CFS one > if delta_ns > TICK_NSEC? Sure, this should work as well. I'll try this approach for next version. Thanks, - Juri
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web