@@ -116,7 +116,8 @@ public async Task MemtierBenchmarkClientExecutorExecutesExpectedCommands()
116
116
$ "sudo chmod +x \" { this . mockPackage . Path } /memtier_benchmark\" ",
117
117
118
118
// Run the Memtier benchmark. Values based on the default parameter values set at the top
119
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } "
119
+ // $"sudo {this.mockPackage.Path}/memtier_benchmark --server 1.2.3.5 --port 6379 {executor.CommandLine}",
120
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" "
120
121
} ;
121
122
122
123
this . mockFixture . ProcessManager . OnCreateProcess = ( exe , arguments , workingDirectory ) =>
@@ -145,7 +146,7 @@ public async Task MemtierBenchmarkClientExecutorExecutesExpectedCommandsWhenAUse
145
146
$ "sudo chmod +x \" { this . mockPackage . Path } /memtier_benchmark\" ",
146
147
147
148
// Run the Memtier benchmark. Values based on the default parameter values set at the top
148
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } "
149
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" "
149
150
} ;
150
151
151
152
this . mockFixture . ProcessManager . OnCreateProcess = ( exe , arguments , workingDirectory ) =>
@@ -175,10 +176,10 @@ public async Task MemtierBenchmarkClientExecutorExecutesExpectedCommands2ClientI
175
176
$ "sudo chmod +x \" { this . mockPackage . Path } /memtier_benchmark\" ",
176
177
177
178
// Client instance #1
178
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } ",
179
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" ",
179
180
180
181
// Client instance #2
181
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } "
182
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" "
182
183
} ;
183
184
184
185
this . mockFixture . ProcessManager . OnCreateProcess = ( exe , arguments , workingDirectory ) =>
@@ -208,16 +209,16 @@ public async Task MemtierBenchmarkClientExecutorExecutesExpectedCommands4ClientI
208
209
$ "sudo chmod +x \" { this . mockPackage . Path } /memtier_benchmark\" ",
209
210
210
211
// Client instance #1
211
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } ",
212
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" ",
212
213
213
214
// Client instance #2
214
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } ",
215
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" ",
215
216
216
217
// Client instance #3
217
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } ",
218
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" ",
218
219
219
220
// Client instance #4
220
- $ "sudo { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } "
221
+ $ "sudo bash -c \" numactl -C 1 { this . mockPackage . Path } /memtier_benchmark --server 1.2.3.5 --port 6379 { executor . CommandLine } \" "
221
222
} ;
222
223
223
224
this . mockFixture . ProcessManager . OnCreateProcess = ( exe , arguments , workingDirectory ) =>
0 commit comments