Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1605588

Re: [PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology

From Daniel Bristot de Oliveira <bristot@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] sched/deadline: Make find_later_rq() choose a closer cpu in topology
Date 2017-03-21 14:30 +0100
Message-ID <tns1j-3SO-9@gated-at.bofh.it> (permalink)
References <tnmRX-fw-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

-- Daniel

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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