-
Notifications
You must be signed in to change notification settings - Fork 19
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 core and threads for rhel.9.realtime #209
base: main
Are you sure you want to change the base?
Conversation
Report bugs in Issues The following are automatically added:
Available user actions:
Supported /retest check runs
Supported labels
|
12d7c52
to
2aaf9ad
Compare
- rhel.9.realtime has SocketsCoresThreads Signed-off-by: Geetika Kapoor <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D/S test tox -e verify-bugs-are-open
passed: cnv-tests-tox-executor/6271
/verified |
vm_args = { | ||
"client": client, | ||
"name": f"rhel-vm-with-{preference_name}", | ||
"namespace": namespace_name, | ||
# TODO add corresponding images to the VM based on preference | ||
"image": Images.Rhel.RHEL9_REGISTRY_GUEST_IMG, | ||
"memory_guest": cluster_preference.instance.spec.requirements.memory.guest, | ||
"cpu_sockets": cluster_preference.instance.spec.requirements.cpu.guest, | ||
"vm_preference": cluster_preference, | ||
} | ||
|
||
if preference_name == "rhel.9.realtime": | ||
vm_args.update({ | ||
"cpu_cores": cluster_preference.instance.spec.requirements.cpu.guest, | ||
"cpu_threads": cluster_preference.instance.spec.requirements.cpu.guest, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caller should pass whatever is needed.
rhel.9.realtime has SocketsCoresThreads
Short description:
realtime preference has spreadoptions across: SocketsCoresThreads and currently it is only supported for rhel.9.realtime.
cpu:
preferredCPUTopology: spread
spreadOptions:
across: SocketsCoresThreads
While creating a VM, it's required to pass sockets,cores and threads in a way that their product is cpu.guest(1)
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket: