Fix /proc/cpuinfo topology and cache size info
* autoload.cc (GetLogicalProcessorInformationEx): Import.
(SetThreadGroupAffinity): Import.
* fhandler_proc.cc (add_size): New macro.
(get_msb): New inline function.
(mask_bits): Ditto.
(format_proc_cpuinfo): Drop handling of old CPUs. Check if we're
running on a OS version supporting porcessor groups. If so, use
SetThreadGroupAffinity to set thread affinity. Improve cache info
to include 3rd level cache on Intel CPUs. Improve multi core info.
* wincap.h (wincaps::has_processor_groups): New element.
* wincap.cc: Implement above element throughout.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -5,11 +5,13 @@ What's new:
|
||||
What changed:
|
||||
-------------
|
||||
|
||||
- Revert the following patch from 2.2.0:
|
||||
When started from a non-Cygwin process, check if $HOME starts with a
|
||||
slash (absolute POSIX path). Otherwise ignore it.
|
||||
|
||||
|
||||
Bug Fixes
|
||||
---------
|
||||
|
||||
- Revert the following patch from 2.2.0:
|
||||
When started from a non-Cygwin process, check if $HOME starts with a
|
||||
slash (absolute POSIX path). Otherwise ignore it.
|
||||
|
||||
- Fix output of /proc/cpuinfo in terms of cpu topology and cache size for
|
||||
modern CPUs and modern Windows OSes supporting more than 64 logical CPUs.
|
||||
|
||||
Reference in New Issue
Block a user