Merge "Add basic support for hugepages"

This commit is contained in:
Jenkins 2017-03-14 07:56:27 +00:00 committed by Gerrit Code Review
commit e25545fb03
3 changed files with 14 additions and 1 deletions

View File

@ -20,5 +20,12 @@ export OS_AUTH_URL="{{ address('keystone', keystone.admin_port, with_scheme=True
export OS_CACERT="/opt/ccp/etc/tls/ca.pem"
{% endif %}
flavor_params="--id $id"
flavor_params+=" --ram $ram"
flavor_params+=" --disk $disk"
flavor_params+=" --vcpus $vcpus"
{% if nova.libvirt.hugepages %}
flavor_params+=" --property hw:mem_page_size=large"
{% endif %}
openstack flavor show $name || openstack --os-region-name=RegionOne \
flavor create --id $id --ram $ram --disk $disk --vcpus $vcpus $name
flavor create $flavor_params $name

View File

@ -30,6 +30,7 @@ configs:
virt_type: "kvm"
libvirt:
hugepages: false
tls:
enabled: true

View File

@ -32,6 +32,11 @@ service:
type: host
path: /dev
# {% endif %}
# {% if nova.libvirt.hugepages %}
- name: hugepages
type: host
path: /dev/hugepages
# {% endif %}
pre:
- name: nova-libvirt-bootstrap
command: /tmp/nova-libvirt-bootstrap.sh