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]
Date:   Fri, 13 Dec 2019 09:10:33 +0100
From:   Peter Zijlstra <peterz@...radead.org>
To:     "chengjian (D)" <cj.chengjian@...wei.com>
Cc:     mingo@...nel.org, linux-kernel@...r.kernel.org,
        chenwandun@...wei.com, xiexiuqi@...wei.com, liwei391@...wei.com,
        huawei.libin@...wei.com, bobo.shaobowang@...wei.com,
        juri.lelli@...hat.com, vincent.guittot@...aro.org
Subject: Re: [PATCH] sched/fair: Optimize select_idle_cpu

On Fri, Dec 13, 2019 at 09:51:30AM +0800, chengjian (D) wrote:
> Hi, Peter
> 
>     I saw the same work in select_idle_core, and I was wondering why the
> per_cpu variable was
> 
> needed for this yesterday. Now I think I probably understand : cpumask may
> be too large,
> 
> putting it on the stack may cause overflow. Is this correct ?

Yes, for instance when NR_CPUS=4096, struct cpumask ends up being 512
bytes, and that is _far_ too large for an on-stack variable, remember we
have relatively small fixed size stacks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ