mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
*** empty log message ***
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@664 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
49a605b0b7
commit
b5ee88a9d2
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/perl
|
||||
# hi there
|
||||
{
|
||||
# startup
|
||||
@ -11,27 +12,32 @@
|
||||
|
||||
# parameters
|
||||
'fs' => [
|
||||
'obfs',
|
||||
'fakestore',
|
||||
# 'obfs',
|
||||
# 'fakestore',
|
||||
'ebofs'
|
||||
],
|
||||
'until' => 100, # --syn until $n ... when to stop clients
|
||||
'writefile' => 1,
|
||||
'writefile_size' => [
|
||||
2560000,
|
||||
1024000,
|
||||
262144,
|
||||
# 131072,
|
||||
# 98304,
|
||||
65536,
|
||||
# 16384,
|
||||
# 2048*1024,
|
||||
1024*1024,
|
||||
512*1024,
|
||||
256*1024,
|
||||
128*1024,
|
||||
64*1024,
|
||||
32*1024,
|
||||
16*1024,
|
||||
8*1024,
|
||||
4096,
|
||||
256,
|
||||
# 256,
|
||||
# 16,
|
||||
# 1
|
||||
],
|
||||
'writefile_mb' => 1000,
|
||||
|
||||
'file_layout_num_rep'=> [1],
|
||||
|
||||
|
||||
# 'ebofs_idle_commit_ms' => [ 100, 500 ],
|
||||
# 'ebofs_abp_max_alloc' => [ 4096*16, 4096*64 ],
|
||||
|
||||
|
@ -168,9 +168,9 @@ sub run {
|
||||
'osd_maxthreads', 'osd_object_layout', 'osd_pg_layout','osd_pg_bits',
|
||||
'bdev_el_bidir', 'ebofs_idle_commit_ms', 'ebofs_commit_ms',
|
||||
'ebofs_oc_size','ebofs_cc_size','ebofs_bc_size','ebofs_bc_max_dirty','ebofs_abp_max_alloc',
|
||||
'file_layout_ssize','file_layout_scount','file_layout_osize',
|
||||
'meta_dir_layout_ssize','meta_dir_layout_scount','meta_dir_layout_osize',
|
||||
'meta_log_layout_ssize','meta_log_layout_scount','meta_log_layout_osize') {
|
||||
'file_layout_ssize','file_layout_scount','file_layout_osize','file_layout_num_rep',
|
||||
'meta_dir_layout_ssize','meta_dir_layout_scount','meta_dir_layout_osize','meta_dir_layout_num_rep',
|
||||
'meta_log_layout_ssize','meta_log_layout_scount','meta_log_layout_osize','meta_log_layout_num_rep') {
|
||||
$c .= " --$k $h->{$k}" if defined $h->{$k};
|
||||
}
|
||||
|
||||
@ -197,8 +197,8 @@ sub run {
|
||||
unless ($fake) {
|
||||
$r = system "$c > $fn/o";
|
||||
system "script/sum.pl -start $h->{'start'} -end $h->{'end'} $fn/osd?? > $fn/sum.osd";
|
||||
system "script/sum.pl -start $h->{'start'} -end $h->{'end'} $fn/mds? $fn/mds?? > $fn/sum.mds"
|
||||
if -e "$fn/mds1";
|
||||
system "script/sum.pl -start $h->{'start'} -end $h->{'end'} $fn/mds? $fn/mds?? > $fn/sum.mds";
|
||||
# if -e "$fn/mds1";
|
||||
system "script/sum.pl -start $h->{'start'} -end $h->{'end'} $fn/clnode* > $fn/sum.cl"
|
||||
if -e "$fn/clnode.1";
|
||||
if ($r) {
|
||||
@ -250,9 +250,13 @@ if ($comb) {
|
||||
my @filters = sort keys %filters;
|
||||
my $cmd = "script/comb.pl $x @vars - @fulldirs - @filters > $out/c";
|
||||
print "\n$cmd\n";
|
||||
open(O,">$out/comb");
|
||||
print O "$cmd\n";
|
||||
close O;
|
||||
system $cmd;
|
||||
|
||||
print "set data style linespoints;\n";
|
||||
my $plot;
|
||||
$plot .= "set data style linespoints;\n";
|
||||
my $s = 2;
|
||||
for my $v (@vars) {
|
||||
my $c = $s;
|
||||
@ -269,7 +273,11 @@ if ($comb) {
|
||||
push (@p, "\"$out/c\" u 1:$c t \"$t\"" );
|
||||
$c += scalar(@vars);
|
||||
}
|
||||
print "# $v\nplot " . join(", ", @p) . ";\n\n";
|
||||
$plot .= "# $v\nplot " . join(", ", @p) . ";\n\n";
|
||||
}
|
||||
print $plot;
|
||||
open(O,">$out/plot");
|
||||
print O $plot;
|
||||
close O;
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ for (@data) {
|
||||
my $r = shift @r;
|
||||
|
||||
# column headings?
|
||||
if ($r eq '#') {
|
||||
if ($r =~ /^\#/) {
|
||||
my $num = 0;
|
||||
while (my $name = shift @r) {
|
||||
$col{$num} = $name;
|
||||
|
Loading…
Reference in New Issue
Block a user