[talos] Set cpu frequency scheduler to performance
Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com>
This commit is contained in:
parent
e8de914bc0
commit
357887ebbb
7 changed files with 43 additions and 1 deletions
|
|
@ -33,28 +33,47 @@ for extension in $EXTENSIONS; do
|
|||
export "$extension_var=$image"
|
||||
done
|
||||
|
||||
customizationDefinition=$(cat <<EOF
|
||||
customization:
|
||||
extraKernelArgs:
|
||||
- cpufreq.default_governor=performance
|
||||
- amd_pstate=active
|
||||
- intel_idle.max_cstate=0
|
||||
EOF
|
||||
)
|
||||
for profile in $PROFILES; do
|
||||
echo "writing profile images/talos/profiles/$profile.yaml"
|
||||
case "$profile" in
|
||||
initramfs|kernel|iso)
|
||||
iso)
|
||||
customization=$customizationDefinition
|
||||
image_options="{}"
|
||||
out_format="raw"
|
||||
platform="metal"
|
||||
kind="$profile"
|
||||
;;
|
||||
initramfs|kernel)
|
||||
customization=
|
||||
image_options="{}"
|
||||
out_format="raw"
|
||||
platform="metal"
|
||||
kind="$profile"
|
||||
;;
|
||||
installer)
|
||||
customization=$customizationDefinition
|
||||
image_options="{}"
|
||||
out_format="raw"
|
||||
platform="metal"
|
||||
kind="installer"
|
||||
;;
|
||||
metal)
|
||||
customization=$customizationDefinition
|
||||
image_options="{ diskSize: 1306525696, diskFormat: raw }"
|
||||
out_format=".xz"
|
||||
platform="metal"
|
||||
kind="image"
|
||||
;;
|
||||
nocloud)
|
||||
customization=$customizationDefinition
|
||||
image_options="{ diskSize: 1306525696, diskFormat: raw }"
|
||||
out_format=".xz"
|
||||
platform="nocloud"
|
||||
|
|
@ -73,6 +92,7 @@ arch: amd64
|
|||
platform: ${platform}
|
||||
secureboot: false
|
||||
version: ${TALOS_VERSION}
|
||||
${customization}
|
||||
input:
|
||||
kernel:
|
||||
path: /usr/install/amd64/vmlinuz
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ arch: amd64
|
|||
platform: metal
|
||||
secureboot: false
|
||||
version: v1.12.1
|
||||
|
||||
input:
|
||||
kernel:
|
||||
path: /usr/install/amd64/vmlinuz
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ arch: amd64
|
|||
platform: metal
|
||||
secureboot: false
|
||||
version: v1.12.1
|
||||
customization:
|
||||
extraKernelArgs:
|
||||
- cpufreq.default_governor=performance
|
||||
- amd_pstate=active
|
||||
- intel_idle.max_cstate=0
|
||||
input:
|
||||
kernel:
|
||||
path: /usr/install/amd64/vmlinuz
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ arch: amd64
|
|||
platform: metal
|
||||
secureboot: false
|
||||
version: v1.12.1
|
||||
customization:
|
||||
extraKernelArgs:
|
||||
- cpufreq.default_governor=performance
|
||||
- amd_pstate=active
|
||||
- intel_idle.max_cstate=0
|
||||
input:
|
||||
kernel:
|
||||
path: /usr/install/amd64/vmlinuz
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ arch: amd64
|
|||
platform: metal
|
||||
secureboot: false
|
||||
version: v1.12.1
|
||||
|
||||
input:
|
||||
kernel:
|
||||
path: /usr/install/amd64/vmlinuz
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ arch: amd64
|
|||
platform: metal
|
||||
secureboot: false
|
||||
version: v1.12.1
|
||||
customization:
|
||||
extraKernelArgs:
|
||||
- cpufreq.default_governor=performance
|
||||
- amd_pstate=active
|
||||
- intel_idle.max_cstate=0
|
||||
input:
|
||||
kernel:
|
||||
path: /usr/install/amd64/vmlinuz
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ arch: amd64
|
|||
platform: nocloud
|
||||
secureboot: false
|
||||
version: v1.12.1
|
||||
customization:
|
||||
extraKernelArgs:
|
||||
- cpufreq.default_governor=performance
|
||||
- amd_pstate=active
|
||||
- intel_idle.max_cstate=0
|
||||
input:
|
||||
kernel:
|
||||
path: /usr/install/amd64/vmlinuz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue