hugepages for non-default pagesize need manual setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Triaged
|
Medium
|
Unassigned | ||
libvirt (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
nova-compute (Juju Charms Collection) |
Invalid
|
Medium
|
Unassigned | ||
systemd (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
This is a amd64 xenial/mitaka deploy using 1607 charms release
where I need to have 1G hugepages available for openstack/kvm.
nova-compute charm should provide ways to ease e.g.
1G hugepages setup, currently only exposes a
"hugepages" setting that ends setting vm.nr_hugepages
for the node, but even after settings kernel cmdline
parameters for 1G hugepages (hugepagesz=1G hugepages=128),
is not usable by libvirt-bin:
#1 systemd:
Installs /lib/systemd/
default pagesize
=> no hugetblfs mount with (e.g.) pagesize=1G
#2 libvirt-bin:
Installs apparmor profile ("libvirt-qemu") which only allows:
# for access to hugepages
owner "/run/hugepages
owner "/dev/hugepages
=> not possible to have other mount points for other pagesizes.
I've workaround'd #1,#2 above by overriding systemd's
by creating a /etc/systemd/
with below extra line at [Mount] section:
Options=pagesize=1G
-> https:/
summary: |
- amd64: 1G hugepages need manual setup + hugepages for non-default pagesize need manual setup |
Changed in charm-nova-compute: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in nova-compute (Juju Charms Collection): | |
status: | Triaged → Invalid |
Changed in systemd (Ubuntu): | |
importance: | Undecided → Wishlist |
Where do 1G hugepages get exposed by default? or don't they?