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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8e44a5e1-35b0-7895-f313-c9a765e20b11@fb.com>
Date:   Wed, 17 May 2017 10:49:46 -0400
From:   Chris Mason <clm@...com>
To:     Peter Zijlstra <peterz@...radead.org>, <mingo@...nel.org>,
        <tglx@...utronix.de>, <riel@...hat.com>, <hpa@...or.com>,
        <efault@....de>, <linux-kernel@...r.kernel.org>,
        <torvalds@...ux-foundation.org>, <lvenanci@...hat.com>
CC:     <xiaolong.ye@...el.com>, <kitsunyan@...ox.ru>,
        <matt@...eblueprint.co.uk>
Subject: Re: hackbench vs select_idle_sibling; was: [tip:sched/core]
 sched/fair, cpumask: Export for_each_cpu_wrap()

On 05/17/2017 06:53 AM, Peter Zijlstra wrote:
> On Mon, May 15, 2017 at 02:03:11AM -0700, tip-bot for Peter Zijlstra wrote:
>> sched/fair, cpumask: Export for_each_cpu_wrap()
>
>> -static int cpumask_next_wrap(int n, const struct cpumask *mask, int start, int *wrapped)
>> -{
>
>> -	next = find_next_bit(cpumask_bits(mask), nr_cpumask_bits, n+1);
>
>> -}
>
> OK, so this patch fixed an actual bug in the for_each_cpu_wrap()
> implementation. The above 'n+1' should be 'n', and the effect is that
> it'll skip over CPUs, potentially resulting in an iteration that only
> sees every other CPU (for a fully contiguous mask).
>
> This in turn causes hackbench to further suffer from the regression
> introduced by commit:
>
>   4c77b18cf8b7 ("sched/fair: Make select_idle_cpu() more aggressive")
>
> So its well past time to fix this.
>
> Where the old scheme was a cliff-edge throttle on idle scanning, this
> introduces a more gradual approach. Instead of stopping to scan
> entirely, we limit how many CPUs we scan.
>
> Initial benchmarks show that it mostly recovers hackbench while not
> hurting anything else, except Mason's schbench, but not as bad as the
> old thing.
>
> It also appears to recover the tbench high-end, which also suffered like
> hackbench.
>
> I'm also hoping it will fix/preserve kitsunyan's interactivity issue.
>
> Please test..

We'll get some tests going here too.

-chris

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ