Skip to main content

CPU utilization

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    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?.
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    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,
    Matthias

    0
  • yansong bai
    Gurobi-versary
    Conversationalist
    Curious

    Thank you for your answers, Matthias.

    0

Post is closed for comments.