Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.0.0, 6.0
-
None
Description
Hello dear Qt developers, an incorrect get count logical threads on Windows systems with NUMA multi-CPU configuration was accidentally noticed. I have 2 sockets on motherboard, I noticed that CPU load max only 50% in Windows version klogg Qt program, there is no such problem in Linux.
Problem is in incorrect define Qt function, I have already fixed a similar situation in x64dbg project: https://github.com/x64dbg/x64dbg/pull/3272/commits/eeab4c47ed07b8483509545ee972c27f382311ef
I was helped to make more perfect and optimized code in Clang LLVM project community: https://github.com/llvm/llvm-project/pull/72270/commits/d1fa25f37631b8b33a71fbe9eb4ea89e3a47b723
github klogg issue: https://github.com/variar/klogg/issues/689
QThreadPool::globalInstance()->maxThreadCount()
Using in code: https://github.com/variar/klogg/blob/edc7582077ebdadd2825da3fa7b1c2931f816bcf/src/crash_handler/src/issuereporter.cpp#L104
This problem occurs on both Qt5 and Qt6 versions.