Enabled "tuned-profiles-cpu-partitioning" package for overcloud image
For DPDK deployments, the host machine has to be tuned for better performance by isolating the CPUs. Tune-d's cpu-partitioning profile takes care of isolating host processes to the given set of CPUs only. Enabling the package in overcloud image. Implements: blueprint tuned-nfv-dpdk Change-Id: Iba16092de850b6abfc1666b1dfa7b46d399820f2
This commit is contained in:
@@ -14,3 +14,4 @@ openvswitch_ovn_compute_package
|
||||
pacemaker_remote_package
|
||||
skydive_package
|
||||
skydive_agent_package
|
||||
tuned_profiles_cpu_partitioning_package
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
"openvswitch_ovn_compute_package": "openvswitch-ovn-host",
|
||||
"pacemaker_remote_package": "pacemaker-remote",
|
||||
"skydive_package": "skydive",
|
||||
"skydive_agent_package": "skydive-agent"
|
||||
"skydive_agent_package": "skydive-agent",
|
||||
"tuned_profiles_cpu_partitioning_package": "tuned-profiles-cpu-partitioning"
|
||||
}
|
||||
}
|
||||
|
||||
21
elements/overcloud-compute/pre-install.d/03-centos-rt-for-tuned-only
Executable file
21
elements/overcloud-compute/pre-install.d/03-centos-rt-for-tuned-only
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
||||
set -x
|
||||
fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
if [[ "$DISTRO_NAME" == *"centos"* ]]; then
|
||||
# tuned-profiles-cpu-partitioning is installed in rhel via fast-datapath.
|
||||
# for centos, "rt" repo is added temprovarily (later change to centos
|
||||
# nfv repo )
|
||||
cat << EOF > /etc/yum.repos.d/centos7-rt-tuned-only.repo
|
||||
[centos7-rt-for-tuned-only]
|
||||
name=centos rt
|
||||
baseurl=http://mirror.centos.org/centos/7/rt/x86_64/
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
includepkgs=tuned-profiles-cpu-partitioning
|
||||
EOF
|
||||
fi
|
||||
4
releasenotes/notes/tuned-profile-6f31e97efe1c1fa8.yaml
Normal file
4
releasenotes/notes/tuned-profile-6f31e97efe1c1fa8.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- Added tuned-profile-cpu-partitioning package from centos rt repo.
|
||||
This package is essential for tuning hosts for NFV deployments.
|
||||
Reference in New Issue
Block a user