Allow to Configure TB Cache size
Qemu>=5.
This makes difficult to run Concurrent Guest VMs on a host with not much memory available like on CI or dev systems. The issue was seen in neutron scenario jobs where multiple concurrent guest VMs run. With Ubuntu Jammy Node(8GB Memory) such tests resulted into oom-kill issues.
Libvirt>=8.0.0[2] allows to configure tb-cache size per guest VM.
This blueprint proposes to add a config option (in workarounds group) in nova so operators have a way to configure lower tb-cache size as per the environment.
By default this config value will be unset and would not do any changes to the guest VM. If set and virt_driver=qemu, check libvirt version
- For libvirt<8.0.0, raise an error as this option is not supported
- For libvirt>=8.0.0 configure TB cache size as per config option.
Additionally a flag can be added in devstack to configure this option and same can be used in Jobs needing it.
Initial Tests are done with https:/
[1] https:/
[2] https:/
Blueprint information
- Status:
- Complete
- Approver:
- Sylvain Bauza
- Priority:
- Undefined
- Drafter:
- yatin
- Direction:
- Approved
- Assignee:
- yatin
- Definition:
- Approved
- Series goal:
- Accepted for bobcat
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Sylvain Bauza
- Completed by
- Sylvain Bauza
Related branches
Related bugs
Bug #1949606: QEMU >= 5.0.0 with -accel tcg uses a tb-size of 1GB causing OOM issues in CI | Fix Released |
Sprints
Whiteboard
[20230426 bauzas] Approved as a specless blueprint by the Apr 25th nova meeting.
Gerrit topic: https:/
Addressed by: https:/
Add config option to configure TB cache size
Addressed by: https:/
[nova] Add flag to set libvirt_