lkml.org 
[lkml]   [2023]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v18 5/7] kexec: exclude hot remove cpu from elfcorehdr notes
From

On 13/02/23 18:22, Thomas Gleixner wrote:
> On Mon, Feb 13 2023 at 10:10, Sourabh Jain wrote:
>> The sysconf document says _SC_NPROCESSORS_CONF is processors configured,
>> isn't that equivalent to possible CPUs?
> glibc tries to evaluate that in the following order:
>
> 1) /sys/devices/system/cpu/cpu*
>
> That's present CPUs not possible CPUs
>
> 2) /proc/stat
>
> That's online CPUs
>
> 3) sched_getaffinity()
>
> That's online CPUs at best. In the worst case it's an affinity mask
> which is set on a process group

Thanks for the clarification Thomas.

- Sourabh

\
 
 \ /
  Last update: 2023-03-27 00:23    [W:0.122 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site