-
Notifications
You must be signed in to change notification settings - Fork 66
/
fiopg.r
66 lines (57 loc) · 2.23 KB
/
fiopg.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
dir <- "C:\\Temp\\"
poly=1
hist=1
ppi <- 300
# graph writes by 3 user loads
# for each user load graph the different blocksizes
testname="write"
# for (users in c(1,4,16) ){
# }
# for (users in c(1,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("8K","128K") ){
file <- paste(testtype,testname,"bs",bs,sep="_")
file <- paste(dir,file,".png",sep="")
cat("file=",file,"\n")
png(filename=file, width=6*ppi, height=6*ppi, res=ppi )
graphit(m, i_name=testname, i_bs=bs,i_title=paste(testtype,testname,"bs=",bs),i_hist=hist,i_poly=poly)
dev.off()
}
testname="write"
bs="128K"
graphit(m, i_name=testname, i_bs=bs,i_title=paste(testtype,testname,"bs=",bs),i_hist=hist,i_poly=poly)
# 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, width=6*ppi, height=6*ppi, res=ppi )
#graphit(m, i_name=testname, i_bs="8K",i_title=paste(testtype,testname,"bs=8K"),i_hist=hist,i_poly=poly)
graphit(m, i_name=testname, i_bs="8K",i_title=paste("randread",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, width=6*ppi, height=6*ppi, res=ppi )
graphit(m, i_name=testname, i_bs="1M",i_title=paste(testtype,testname,"bs=1M"),i_hist=hist,i_poly=poly)
dev.off()