Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1606171
| From | Byungchul Park <byungchul.park@lge.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology |
| Date | 2017-03-22 03:50 +0100 |
| Message-ID | <tnEvw-3Xg-25@gated-at.bofh.it> (permalink) |
| References | <tnmRX-fw-1@gated-at.bofh.it> <tns1j-3SO-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Mar 21, 2017 at 02:28:50PM +0100, Daniel Bristot de Oliveira wrote:
> On 03/21/2017 08:52 AM, Byungchul Park wrote:
> > When cpudl_find() returns any among free_cpus, the cpu might not be
> > closer than others, considering sched domain. For example:
> >
> > this_cpu: 15
> > free_cpus: 0, 1,..., 14 (== later_mask)
> > best_cpu: 0
> >
> > topology:
> >
> > 0 --+
> > +--+
> > 1 --+ |
> > +-- ... --+
> > 2 --+ | |
> > +--+ |
> > 3 --+ |
> >
> > ... ...
> >
> > 12 --+ |
> > +--+ |
> > 13 --+ | |
> > +-- ... -+
> > 14 --+ |
> > +--+
> > 15 --+
> >
> > In this case, it would be best to select 14 since it's a free cpu and
> > closest to 15(this_cpu). However, currently the code select 0(best_cpu)
> > even though that's just any among free_cpus. Fix it.
>
> That is a nice patch! But I wonder what would be the behavior with your
> patch in the following hw:
>
> # numactl --hardware
> available: 2 nodes (0-1)
> node 0 cpus: 0 2 4 6 8 10 12 14
> node 0 size: 16159 MB
> node 0 free: 15308 MB
> node 1 cpus: 1 3 5 7 9 11 13 15
> node 1 size: 16384 MB
> node 1 free: 15028 MB
> node distances:
> node 0 1
> 0: 10 21
> 1: 21 10
Hi,
In this case, I guess the topology looks like:
0 --+
+--+
2 --+ |
+-- ... --+
4 --+ | |
+--+ |
6 --+ |
... ...
9 --+ |
+--+ |
11 --+ | |
+-- ... -+
13 --+ |
+--+
15 --+
And sched_domain would also reflect that. So the dl's push works well.
Do I miss something?
In addition, IMHO, it's not an issue for dl's push but one for building
sched_domains. Wrong?
Thanks,
Byungchul
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology Byungchul Park <byungchul.park@lge.com> - 2017-03-21 09:00 +0100
Re: [PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology Daniel Bristot de Oliveira <bristot@redhat.com> - 2017-03-21 14:30 +0100
Re: [PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology Byungchul Park <byungchul.park@lge.com> - 2017-03-22 03:50 +0100
Re: [PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology Peter Zijlstra <peterz@infradead.org> - 2017-03-22 13:40 +0100
Re: [PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology Byungchul Park <byungchul.park@lge.com> - 2017-03-23 00:30 +0100
csiph-web