Optimization: server_on_change_hosts_pstate and server_on_turn_onoff_hosts early drops machines which already are at the target pstate.#76
Conversation
…hosts early drops machines which already are at the target pstate.
|
Hi @marcodamico, thanks for rebasing your PR to the I am not sure this only an optimization: by not forwarding the seemingly useless pstate change, it seems to me we are changing what is simulated, and the visible behavior. Could you detail why you think this change should be made here rather than checking in the EDC if an actual pstate change is required? |
|
The idea is to skip the |
|
EDC is the External Decision Component, usually it is the scheduler process. |
|
Even if we filter the pstates in the EDC, batsim will keep calling |
|
Looking at the code of Furthermore, I have the intuition that the speedup this PR achieves is coming from the fact you are requesting less operations (e.g., As far as I understand what you are trying to do, your EDC/scheduler is requesting too many changes. Are you able to share the relevant parts of you EDC/scheduler code to help us understand what you are trying to achieve? |
Ported #75 to
mainbranch.