WSL core count wrong
powersj opened this issue · comments
It appears that the core count is reported as 1 on WSL 1 and WSL 2. The /sys/devices/system/cpu/cpu*/toplogy/
directory has the following files available:
core_id core_siblings core_siblings_list physical_package_id thread_siblings thread_siblings_list
Example output:
$ cat cpu/cpu0/topology/*
0
ffffffff
0-31
0
00000003
0-1
$ cat cpu/cpu1/topology/*
0
ffffffff
0-31
0
00000003
0-1
$ cat cpu/cpu2/topology/*
1
ffffffff
0-31
0
0000000c
2-3
At one point I was using core_id
to help determine the number of cores, but switched to core_cpus_list
. However, WSL does not have that file.