CPU utilization
AnsweredHi all,
I have a problem, my server configuration is Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz 2.10 GHz. When the code runs,I find the use of CPU is only 4% and the use of memory is only 16%. is it possible to use the resources as much as possible when using gurobi?
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi!
Gurobi always tries to use all available cores as much as possible. There are situations in the solving process with simply "not enough work" at the same time to keep all cores busy but you should always see at least one core running at about 100%. I suspect that your observed CPU usage is for all cores/threads and this specific CPU has 20 cores and 40 threads - probably you're just using a single thread at this point in time.
Please note that you can also limit the number of threads that Gurobi uses via the Threads parameter.Concerning memory usage: You can compare this to the heat of an engine. There is no benefit in trying to max this out. On the contrary, as soon as the memory is full, everything breaks down, and often not even a clean termination state is reached.
I hope that helps to better interpret those percentages.
Cheers,
Matthias0 -
Thank you for your answers, Matthias.
0
Post is closed for comments.
Comments
3 comments