@@ -145,24 +145,6 @@ enum CliCommand {
145
145
Info ,
146
146
/// Report if the Upstairs is ready for IO
147
147
IsActive ,
148
- /// Run the client perf test
149
- Perf {
150
- /// Number of IOs to execute for each test phase
151
- #[ clap( long, short, default_value = "5000" , action) ]
152
- count : usize ,
153
- /// Size in blocks of each IO
154
- #[ clap( long, default_value = "1" , action) ]
155
- io_size : usize ,
156
- /// Number of outstanding IOs at the same time
157
- #[ clap( long, default_value = "1" , action) ]
158
- io_depth : usize ,
159
- /// Number of read test loops to do.
160
- #[ clap( long, default_value = "2" , action) ]
161
- read_loops : usize ,
162
- /// Number of write test loops to do.
163
- #[ clap( long, default_value = "2" , action) ]
164
- write_loops : usize ,
165
- } ,
166
148
/// Quit the CLI
167
149
Quit ,
168
150
/// Read from a given block offset
@@ -522,22 +504,6 @@ async fn cmd_to_msg(
522
504
CliCommand :: Info => {
523
505
fw. send ( CliMessage :: InfoPlease ) . await ?;
524
506
}
525
- CliCommand :: Perf {
526
- count,
527
- io_size,
528
- io_depth,
529
- read_loops,
530
- write_loops,
531
- } => {
532
- fw. send ( CliMessage :: Perf (
533
- count,
534
- io_size,
535
- io_depth,
536
- read_loops,
537
- write_loops,
538
- ) )
539
- . await ?;
540
- }
541
507
CliCommand :: Quit => {
542
508
println ! ( "The quit command has nothing to send" ) ;
543
509
return Ok ( ( ) ) ;
@@ -936,35 +902,6 @@ async fn process_cli_command(
936
902
Err ( e) => fw. send ( CliMessage :: Error ( e) ) . await ,
937
903
}
938
904
}
939
- CliMessage :: Perf ( count, io_size, io_depth, read_loops, write_loops) => {
940
- if let Some ( ri) = ri_option {
941
- perf_header ( ) ;
942
- match perf_workload (
943
- volume,
944
- ri,
945
- None ,
946
- count,
947
- io_size,
948
- io_depth,
949
- read_loops,
950
- write_loops,
951
- )
952
- . await
953
- {
954
- Ok ( _) => fw. send ( CliMessage :: DoneOk ) . await ,
955
- Err ( e) => {
956
- let msg = format ! ( "{}" , e) ;
957
- let e = CrucibleError :: GenericError ( msg) ;
958
- fw. send ( CliMessage :: Error ( e) ) . await
959
- }
960
- }
961
- } else {
962
- fw. send ( CliMessage :: Error ( CrucibleError :: GenericError (
963
- "Info not initialized" . to_string ( ) ,
964
- ) ) )
965
- . await
966
- }
967
- }
968
905
CliMessage :: RandRead => {
969
906
if let Some ( ri) = ri_option {
970
907
let mut rng = rand_chacha:: ChaCha8Rng :: from_entropy ( ) ;
0 commit comments