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
Add numa to dedicated #189
Conversation
I implemented the pinning so that it is stored into the database, but I wonder, if it would not be better to create a "runtime" pinning, similar to the "runtime" cpu pinning as mentioned here #180 There are 2 reasons:
|
I never did that, I am unsure if we wish that at all. I am unaware of the pros and cons of this. Out of curiosity does it pass
Here we probably need to loose the validations to let it change somehow (VM status?). A general answer about making the NUMA configuration dynamic: |
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ProcessDownVmCommand.java
Outdated
Show resolved
Hide resolved
.../modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/utils/NumaPinningHelper.java
Outdated
Show resolved
Hide resolved
I think it's not a justified reason to change it as libvirt seems to accept such a configuration
That's one option - to say that when a vm is not down and it has dedicated policy then the numa pinning represent generated rules, otherwise those rules were specified manually if exists
Back then we thought of serializing the entire structure we have in the database which was a more complicated scenario that this, IIUC what Lucia has in mind - representing just the relation between the existing virtual and physical resources that already exist in the database (and let's say assuming that the tune is STRICT in that case). I guess it could have the same syntax of the cpu pinning field, no? I'm just afraid we do this a bit too late - we also need to change the pinning logic to of the dedicated CPUs with vNUMA topology, right? |
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ProcessDownVmCommand.java
Outdated
Show resolved
Hide resolved
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ProcessDownVmCommand.java
Outdated
Show resolved
Hide resolved
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
Outdated
Show resolved
Hide resolved
.../modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/utils/NumaPinningHelper.java
Outdated
Show resolved
Hide resolved
...r/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VdsCpuUnit.java
Outdated
Show resolved
Hide resolved
69d2fcd
to
c652f89
Compare
/ost |
c652f89
to
001d588
Compare
The numa_cell_id is reported by vds as a part of cpuTopology, this patch adds it also to the VdsCpuUnit.
When using dedicated cpu policy together with numa, the numa pinning should be created when the vm starts and cleared when the vm shuts down.
001d588
to
3208d92
Compare
/ost |
When using dedicated cpu policy together with numa, the numa pinning should be created when the vm starts and
cleared when the vm shuts down.