Open xiaoweiChen opened 3 days ago
@xiaoweiChen Thanks for reporting the issue.
The reported memory used at and your application end it doesn't OpenVINO not correctly de-allocated it. It shows how much process is using memory but still inside this value there could be some unused memory but just not collected by OS.
I've done similar test but using Release version of OpenVINO the values were different in Windows system monitor:
When createNetwork();
is removed from the code nothing from OpenVINO is used and this is reason of low memory usage.
The usage at End
of test application are because some of thinks used in OpenVINO and others which OpenVINO and user application has limited control and depends from OS.
OpenVINO dependent:
OpenVINO not dependent:
If you don't see any memory leaks (de/allocations by OpenVINO) is not bug but how OS works. To solve it maybe is possible to find some Windows API and tune Windows memory manger to reclaim memory in different way but it can decrease the performance.
OpenVINO Version
2024.4.0-16579-c3152d32c9c-releases/2024/4
Operating System
Windows System
Device used for inference
AUTO
Framework
None
Model used
custom
Issue description
When the program finish at
return 0;
, the memory is not free well, I think.CPU: 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
GPU 0: Intel(R) Iris(R) Xe Graphics driver version: 31.0.101.5388
Step-by-step reproduction
The model in this package model.zip
Code :
CPU
orAUTO
as device, when I put a breakpoint atreturn 0;
in main function. The Task Manager would show the memory is 27.5MB still using. But, I think would not too many memory need at this timeWhen I comment out the
createNetwork();
line. At same breakpoint position, the memory is 0.6MB still using. I think this is right and what I want.Relevant log output
No response
Issue submission checklist