From 97b5fbe47fc5df6513671db6a40e8e31b0815580 Mon Sep 17 00:00:00 2001 From: Ram Lavi Date: Sun, 31 Dec 2023 14:46:07 +0200 Subject: [PATCH] oslat/client: Update the CPUs list Setting the CPUs that will run the Oslat test to be from the same core (=siblings). Signed-off-by: Ram Lavi --- pkg/internal/checkup/executor/oslat/client.go | 2 +- pkg/internal/checkup/executor/oslat/client_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/internal/checkup/executor/oslat/client.go b/pkg/internal/checkup/executor/oslat/client.go index e5fecd81..8f76f73f 100644 --- a/pkg/internal/checkup/executor/oslat/client.go +++ b/pkg/internal/checkup/executor/oslat/client.go @@ -198,7 +198,7 @@ func getMaxLatencyValue(values []string, units string) (time.Duration, error) { func buildOslatCmd(testDuration time.Duration) string { const ( - cpuList = "1-2" + cpuList = "2-3" realtimePriority = "1" workload = "memmove" workloadMemory = "4K" diff --git a/pkg/internal/checkup/executor/oslat/client_test.go b/pkg/internal/checkup/executor/oslat/client_test.go index 8f493269..90660592 100644 --- a/pkg/internal/checkup/executor/oslat/client_test.go +++ b/pkg/internal/checkup/executor/oslat/client_test.go @@ -137,7 +137,7 @@ func (c fakeClock) Now() time.Time { } const ( - oslatRunCmd = "taskset -c 1-2 oslat --cpu-list 1-2 --rtprio 1 --duration 1m0s --workload memmove --workload-mem 4K \n" + oslatRunCmd = "taskset -c 2-3 oslat --cpu-list 2-3 --rtprio 1 --duration 1m0s --workload memmove --workload-mem 4K \n" oslatRunResultsTemplate = "oslat V 2.60\n" + "Total runtime: \t\t60 seconds\n" + "Thread priority: \tSCHED_FIFO:1\n" +