-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: OpenVINO will only use half of my available system threads on 2 socket configuration #27581
Comments
hi @BlohoJo, The default latency behavior had changed, as shown in the logs:
If you want to use 1 stream with 16 in 2024.4, please try |
Is there any way to automate the generation of those variables on different systems, so that applications that use OpenVINO (like Topaz Video AI) can automatically use all available cores & threads on the system in which it happens to be running? 😕 |
@BlohoJo -hint throughput will use all the available CPU cores on system. |
-api sync and -api async don't make a difference for any of the above. Dead in the water it seems for using all cores in OpenVINO 24.0.0 and above. 😞 |
I tried to get some additional info by running x64dbg (it sometimes shows something useful), but it won't work. The process terminates before benchmark_app can do anything. Batch file:
|
The oldest OpenVINO version that will work with any of the model_zoo files is 2023.0.1. As mentioned above, that version works in Topaz Video AI with all 16 cores. With benchmark_app, it crashes as above with With
With
What's interesting is that in 2023.0.1, it shows I'm not sure if any of that info is helpful or not. With OpenVINO versions 2024.0.0 and above (including the new 2024.5.0), it's as if it only sees the CPU in socket #1. |
@BlohoJo Could you run attached test_info.zip on your Windows platform and share log to us? |
Thanks very much for the reply and the help! 😄
(without line breaks)
|
|
### Details: - *support new windows platform which is a VM (VPS) running on a Hypervisor* - *using one stream on two sockets* ### Tickets: - *[issues-27581](#27581
@BlohoJo PR has been merged. Could you please try master branch? |
Sorry, things have gotten extremely busy and stressful for me lately! 🥴 I tried the new OpenVINO 2024.6.0. (Is that what I should be trying at this point? 😕) Unfortunately, it didn't work. It does no longer crash using But, apart from that, the rest is still the same. It still only uses half of my CPU cores (one 8 core socket instead of both 8 core sockets) using either And, it still crashes using I know it it possible for it to use all 16 cores because in OpenVINO 2023.0.1, it does use all 16 cores using Commands tried (below, output is in order listed):
|
### Details: - *support new windows platform which is a VM (VPS) running on a Hypervisor* - *using one stream on two sockets* ### Tickets: - *[issues-27581](openvinotoolkit#27581
@BlohoJo Please try master branch. The fix is not part of OpenVINO 2024.6.0. |
I greatly apologize, but compiling OpenVINO is beyond my skill set and capability. I can get as far as opening Git Bash and running If someone can build the master branch for me and link me to an archive (which has the contents of Unless there is a much more simple or automated command that will compile the master branch for me that I'm missing. Again I apologize for my lack of knowledge and skill. 🙁 |
@BlohoJo Could you please try nightly build from https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2025.0.0-17699-b0ff7090a30/? |
OpenVINO Version
2024.0.0 - Current
Operating System
Windows 10 Professional 2004 [Version 10.0.19041.1415]
Device used for inference
CPU (Intel Xeon E-2288G CPU [Coffee Lake / 9th Generation Core])
Framework
Any
Model used
Any
Issue description
This is related to my previous issue here:
#22678 (comment)
I'm an OpenVINO user of Topaz Video AI, and the current version uses only half of my total CPU. It uses OpenVINO 2024.3.0, but the problem I'm describing is specific to OpenVINO and started happening with 2024.0.0, and has history going back to at least 2023.0.1.
The system is a VM (VPS) running on a Hypervisor configured with two CPU sockets, each with 8 cores and 8 threads. The actual hardware and VM CPU is the Intel Xeon E-2288G CPU (Coffee Lake / 9th Generation Core).
The Intel Xeon E-2288G is listed as a supported processor for Windows 10 2004.
Intel Processor Diagnostic Tool v4.1.9.41 passes. TESTRESULTS.TXT contents: https://pastebin.com/zeWjbVur
CPU-Z Report: https://pastebin.com/uG071g8r
I used benchmark_app to track the history of when the problem started happening in OpenVINO. I beleive that the problem is that OpenVINO "thinks" that the total number of available threads on my system is only 8, when it is actually 16. I suspect it isn't currently able to interpret and handle more than 1 CPU socket.
Here is what I discovered:
In OpenVINO 2023.0.1, the system uses all available 16 threads (output shows
INFERENCE_NUM_THREADS: 16
) when the following command is used:benchmark_app -api sync -hint latency -t 10 -m "C:\OpenVINO\intel\face-detection-0206\FP16\face-detection-0206.xml"
. It hangs and does nothing if-api async
is used.In OpenVINO 2023.1.0 & 2023.2.0, OpenVINO doesn't work at all; it crashes (as noted in the above Github issue #22678).
In OpenVINO 2023.3.0, now both
-api sync
and-api async
work, but,-api sync
runs using only 8 threads (output showsINFERENCE_NUM_THREADS: 8
; using-hint none -nthreads 16
doesn't work and output still showsINFERENCE_NUM_THREADS: 8
).-api async
works correctly and uses all 16 threads.Starting with OpenVINO 2024.0.0, now both
api-sync
andapi-async
are only able to use 8 cores and there doesn't seem to be any way to get OpenVINO to use all 16 cores.Step-by-step reproduction
To reproduce someone will need a Windows 10 system that has the Intel Xeon E-2288G CPU configured as two sockets with 8 cores and 8 threads per socket. Alternatively, it's possible this problem will manifest on a system configured with two CPU sockets and any similar Intel Xeon CPU models with X number of both cores and threads in each socket.
Install Python 3.9
Create a directory for virtual environment, i.e.
C:\OpenVINO
, and open a command prompt in this directory.Relevant log output
Relevant log sections:
2023.3.0:
2024.4.0:
Issue submission checklist
The text was updated successfully, but these errors were encountered: