add defaults for some of the rawIOPS.pl command line options
This commit is contained in:
parent
a101e90be7
commit
efbb07867a
1 changed files with 6 additions and 5 deletions
|
@ -4,7 +4,7 @@ use strict;
|
||||||
|
|
||||||
## Driver program for rawIOPS.c
|
## Driver program for rawIOPS.c
|
||||||
|
|
||||||
my $usage = "$0 filename {fix_threads|fix_size} slice_number [op_count] [start_off] [page_size]\n";
|
my $usage = "$0 filename {fix_threads|fix_size} slice_number [page_size] [op_count] [start_off]\n";
|
||||||
|
|
||||||
my @thread_counts;
|
my @thread_counts;
|
||||||
my @partition_sizes;
|
my @partition_sizes;
|
||||||
|
@ -28,10 +28,11 @@ print ("Partition sizes: " . join("GB\t", @partition_sizes) . "GB\n");
|
||||||
my $exe = './rawIOPS';
|
my $exe = './rawIOPS';
|
||||||
my $device = $ARGV[0] || die $usage;
|
my $device = $ARGV[0] || die $usage;
|
||||||
my $mode = $ARGV[1] || die $usage;
|
my $mode = $ARGV[1] || die $usage;
|
||||||
my $slice_number = $ARGV[2] || die $usage;
|
my $slice_number = $ARGV[2];
|
||||||
my $opcount = $ARGV[3] || 5000;
|
defined($slice_number) || die $usage;
|
||||||
my $start_off = $ARGV[4] || 0;
|
my $page_size = $ARGV[3] || 512;
|
||||||
my $page_size = $ARGV[5] || 512;
|
my $opcount = $ARGV[4] || 5000;
|
||||||
|
my $start_off = $ARGV[5] || 0;
|
||||||
|
|
||||||
sub run_cmd {
|
sub run_cmd {
|
||||||
my $num_threads = shift || die;
|
my $num_threads = shift || die;
|
||||||
|
|
Loading…
Reference in a new issue