lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <xhsmhttzeq3zt.mognet@vschneid.remote.csb>
Date:   Tue, 21 Feb 2023 18:15:34 +0000
From:   Valentin Schneider <vschneid@...hat.com>
To:     tmmdh <921889738@...com>, hupu <921889738@...com>,
        peterz@...radead.org
Cc:     bristot@...hat.com, bsegall@...gle.com, dietmar.eggemann@....com,
        hupu@...o.com, ionela.voinescu@....com, juri.lelli@...hat.com,
        len.brown@...el.com, linux-kernel@...r.kernel.org, mgorman@...e.de,
        rafael.j.wysocki@...el.com, ravi.v.shankar@...el.com,
        ricardo.neri-calderon@...ux.intel.com, ricardo.neri@...el.com,
        rostedt@...dmis.org, srinivas.pandruvada@...ux.intel.com,
        tim.c.chen@...el.com, tim.c.chen@...ux.intel.com,
        vincent.guittot@...aro.org, x86@...nel.org
Subject: Re: [PATCH v3 06/10] sched/fair: Use the prefer_sibling flag of the
 current sched domain

On 21/02/23 17:49, tmmdh wrote:
> From: Valentin Schneider <vschneid@...hat.com>
> But I am still confused by Peter's description about prefer_sibling in the last email, linked at
> https://lore.kernel.org/all/Y+Z2b%2FOtZDk9cT53@hirez.programming.kicks-ass.net/
>> this morning -- conceptually, prefer siblings says you want to try
>> sibling domains before filling up your current domain.
>
> Why should we try sibling domains before filling up your current domain? Why does Peter think that sibling domains is better than current domain.
> My understanding about this problem is described as follows, but I am not
> sure if it is correct. I think the sibling domain is a domain lower than
> the current level. Just like SMT is the sibling of MC, while DIE is the
> sibling of NUMA.

That's the wrong way around; going up (or down) the sched_domain hierarchy is
done via parent (or child) pointers. Sibling means going sideways (i.e. the
same topology level but viewed from a different CPU)

> Is it because the cpus covered by sibling domains share more resources (such as cache), which can improve the performance of task running?
>

If sibling domains are in same cache hierarchy then spreading tasks between
them can improve overall performance. That doesn't work with NUMA or
big.LITTLE domains, so we don't have the flag on those.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ