Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Refer wiki page: https://wiki.onap.org/display/DW/Policy+Specification+and+Retrieval+for+OOF

Policy

Attributes

hpaFeature

Openstack Mapping

AAI representation (Eg:)

HPA CPU Topology Policy Example

numCpuSockets

numCpuCores

numCpuThreads

cpuTopology

hw:cpu_sockets, hw:cpu_cores, hw:cpu_threads,

hpaCapabiltyId="a369fd3d-0b15-44e1-81b2-6210efc6dff8",

hpaFeature=”cpuTopology”,

hardwareArchitecture=”generic",

version=”v1”,

HPAAttributeKey

HPAAttributeValue

numCpuSockets

{value:4

, type:int

}

numCpuCores

{value:4

, type:int

}

numCpuThreads

{value:8

, type:int

}

HPA Basic Capabilities Policy Example

numVirtualCpu

virtualMemSize

basicCapabilities

vcpus,

ram

hpaCapabiltyId="b369fd3d-0b15-44e1-81b2-6210efc6dff9", hpaFeature=”basicCapabilities”,

hardwareArchitecture=”generic",

version=”v1”,

HPAAttributeKey

HPAAttributeValue

numVirtualCpu

{value:4

, type:int

}

virtualMemSize

{value:4,

type:int,

unit:”GB”}

HPA OVS DPDK Policy Example

dataProcessingAccelerationLibrary

ovsDpdk


hpaCapabiltyId="b369fd3d-0b15-44e1-81b2-6210efc6dffa",

hpaFeature=”ovsDpdk”,

hardwareArchitecture=”Inte64",

version=”v1”,

HPAAttributeKey

HPAAttributeValue

dataProcessingAccelerationLibrary

{value:”v12.1”

, type:string

}

“HPA CPU Pinning Policy Example

logicalCpuThreadPinningPolicy

logicalCpuPinningPolicy

cpuPinning

hw:cpu_thread_policy

hw:cpu_policy

hpaCapabiltyId="c369fd3d-0b15-44e1-81b2-6210efc6dffa",

hpaFeature=”cpuPinning”,

hardwareArchitecture=”generic",

version=”v1”,

HPAAttributeKey

HPAAttributeValue

logicalCpuThreadPinningPolicy

{value:”prefer”

, type:string

}

logicalCpuPinningPolicy

{value:”dedicated”

, type:string

}

HPA NUMA Policy Example

numaNodes

numaCpu-N

numaMem-N

numa

hw:numa_nodes

hw:numa_cpus:N

hw:numa_mem:N

hpaCapabiltyId="c369fd3d-0b15-44e1-81b2-6210efc6dffa",

hpaFeature=

”cpuPinning”

”numa”,

hardwareArchitecture=”generic",

version=”v1”,

HPAAttributeKey

HPAAttributeValue

numaNodes

{value:2

, type:int

}

numaCpu-0

{value:[0,1]

, type:list

}

numaCpu-1

{value:[2,3,4,5]

, type:list

}

numaMem-0

{value:2,

type:int,

unit:”GB”}

numaMem-1

{value:4,

type:int,

unit:”GB”}

HPA SGX Policy Example

sgxMemSize

sgxPukKeyHash

sgx



HPA PCIe Passthrough Policy Example

pciCount

pciVendorId

pciDeviceId

pciePassthrough



HPA Local Storage Policy Example

diskSize

ephemeralDiskSize

swapMemSize

localStorage

disk

swap



HPA CPU Instruction Set Extensions Policy Example

instructionSetExtensions

cpuInstructionSetExtensions

capabilities:cpu_info:features

hpaCapabiltyId="c369fd3d-0b15-44e1-81b2-6210efc6dffa",

hpaFeature=”cpuInstructionSetExtensions”,

hardwareArchitecture=”Intel64",

version=”v1”,

HPAAttributeKey

HPAAttributeValue

instructionSetExtensions

{value:["AAA", "BBB"]}

HPA Huge Pages Policy Example

memoryPageSize

hugePages

hw:mem_page_size