Skip to content

Commit

Permalink
Add Large pages meta definition
Browse files Browse the repository at this point in the history
This metadef enables Guest Memory backing namespace
and large pagesize property in Nova::Flavor,
Glance::Image, Cinder::Volume(image)
resource types metadata

Change-Id: I6566622a026d80115993cce1b5dc29878bcef0b7
Closes-Bug: #1476732
  • Loading branch information
Waldemar Znoinski committed Sep 29, 2015
1 parent 0477663 commit 3e35dd0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions etc/metadefs/compute-guest-memory-backing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"namespace": "OS::Compute::GuestMemoryBacking",
"display_name": "Guest Memory Backing",
"description": "This provides the preferred backing option for guest RAM. Guest's memory can be backed by hugepages to limit TLB lookups. See also: https://wiki.openstack.org/wiki/VirtDriverGuestCPUMemoryPlacement",
"visibility": "public",
"protected": true,
"resource_type_associations": [
{
"name": "OS::Nova::Flavor",
"prefix": "hw:"
},
{
"name": "OS::Glance::Image",
"prefix": "hw_"
},
{
"name": "OS::Cinder::Volume",
"prefix": "hw_",
"properties_target": "image"
}
],
"properties": {
"mem_page_size": {
"title": "Size of memory page",
"description": "Page size to be used for Guest memory backing. Value can be specified as <number><unit> (i.e.: 2MB, 1GB) or 'any', 'small', 'large'. If this property is set in Image metadata then only 'any' and 'large' values are accepted in Flavor metadata by Nova API.",
"type": "string"
}
}
}

0 comments on commit 3e35dd0

Please sign in to comment.