Skip to content

Commit

Permalink
oslat/client: Update the CPUs list
Browse files Browse the repository at this point in the history
Setting the CPUs that will run the Oslat test to be from the same core
(=siblings).

Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed Dec 31, 2023
1 parent c4d8ce1 commit c6a9cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/internal/checkup/executor/oslat/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/checkup/executor/oslat/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down

0 comments on commit c6a9cde

Please sign in to comment.