Skip to content

Commit

Permalink
vm-under-test: Set CPU/tuned configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Ram Lavi <ralavi@redhat.com>
  • Loading branch information
RamLavi committed Nov 20, 2023
1 parent 7c1b10e commit 967594c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/internal/checkup/checkup.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ func (c *Checkup) Setup(ctx context.Context) error {
}

func (c *Checkup) Run(ctx context.Context) error {
log.Printf("SLEEPING")
time.Sleep(time.Hour)
return nil
}

Expand Down
4 changes: 4 additions & 0 deletions vms/vm-under-test/scripts/customize-vm
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ dnf --enablerepo=rt install -y tuned-profiles-realtime
dnf --enablerepo=nfv install -y tuned-profiles-nfv-guest

grubby --args="iommu=pt intel_iommu=on default_hugepagesz=1GB hugepagesz=1G hugepages=1" --update-kernel=$(grubby --default-kernel)

echo isolated_cores=1-2 >> /etc/tuned/realtime-virtual-guest-variables.conf
echo isolate_managed_irq=Y >> /etc/tuned/realtime-virtual-guest-variables.conf
tuned-adm profile realtime-virtual-guest

0 comments on commit 967594c

Please sign in to comment.