-
Notifications
You must be signed in to change notification settings - Fork 66
/
fio_oldg.r
101 lines (86 loc) · 3.24 KB
/
fio_oldg.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
dir <- "C:\\Temp\\"
poly=1
hist=0
# graph writes by 3 user loads
# for each user load graph the different blocksizes
testname="write"
for (users in c(1,4,16) ){
file <- paste(testtype,testname,"users",users,sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_users=users,i_title=paste(testtype,testname,"users=",users),i_hist=hist,i_poly=poly)
dev.off()
}
for (bs in c("1K","8K","128K") ){
file <- paste(testtype,testname,"bs",bs,sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_bs=bs,i_title=paste(testtype,testname,"bs=",bs),i_hist=hist,i_poly=poly)
dev.off()
}
testname="randread"
file <- paste(testtype,testname,"bs_8K",sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_bs="8K",i_title=paste(testtype,testname,"bs=8K"),i_hist=hist,i_poly=poly)
dev.off()
testname="read"
file <- paste(testtype,testname,"users_1",sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_users=1,i_title=paste(testtype,testname,"users=1"),i_hist=hist,i_poly=poly)
dev.off()
file <- paste(testtype,testname,"bs_1M",sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_bs="1M",i_title=paste(testtype,testname,"bs=1M"),i_hist=hist,i_poly=poly)
dev.off()
# graphit(m, i_name="write", i_bs="128K",i_hist=1,i_poly=1,i_title="write bs=128K")
dir <- "C:\\Temp\\hist_"
poly=0
hist=1
# graph writes by 3 user loads
# for each user load graph the different blocksizes
testname="write"
for (users in c(1,4,16) ){
file <- paste(testtype,testname,"users",users,sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_users=users,i_title=paste(testtype,testname,"users=",users),i_hist=hist,i_poly=poly)
dev.off()
}
for (bs in c("1K","8K","128K") ){
file <- paste(testtype,testname,"bs",bs,sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_bs=bs,i_title=paste(testtype,testname,"bs=",bs),i_hist=hist,i_poly=poly)
dev.off()
}
testname="randread"
file <- paste(testtype,testname,"bs_8K",sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_bs="8K",i_title=paste(testtype,testname,"bs=8K"),i_hist=hist,i_poly=poly)
dev.off()
testname="read"
file <- paste(testtype,testname,"users_1",sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_users=1,i_title=paste(testtype,testname,"users=1"),i_hist=hist,i_poly=poly)
dev.off()
file <- paste(testtype,testname,"bs_1M",sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file)
graphit(m, i_name=testname, i_bs="1M",i_title=paste(testtype,testname,"bs=1M"),i_hist=hist,i_poly=poly)
dev.off()
# graphit(m, i_name="write", i_bs="128K",i_hist=1,i_poly=1,i_title="write bs=128K")