-
Notifications
You must be signed in to change notification settings - Fork 8
/
testrandvar.f
34 lines (27 loc) · 1.47 KB
/
testrandvar.f
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
# This filebench script is used to verify that the seed of randvar is working
# properly. Run the script and see if the I/O done by readfile0 and readfile1 is
# the same when given the same seed. And they are different from readfile2 which
# is using a different seed.
debug 100
define fileset name=bigfileset,path=testdir,size=16k,entries=1000,dirwidth=10000,prealloc=100
echo "testing randvar"
define randvar name=$fileidx1, type=gamma, seed=17, mean=901, gamma=4000, min=900, randsrc=rand48
#define randvar name=$fileidx2, type=gamma, seed=17, mean=250, gamma=50000, min=0, randsrc=rand48
#define randvar name=$fileidx3, type=gamma, seed=71, mean=250, gamma=50000, min=0, randsrc=rand48
define process name=mailserver,instances=1
{
thread name=mailserverthread,memsize=10m,instances=1
{
#flowop openfile name=openfile0,filesetname=bigfileset,fd=1,indexed=$fileidx1
flowop openfile name=openfile0,filesetname=bigfileset,fd=1,indexed=3
flowop readwholefile name=readfile0,fd=1,iosize=1m,directio
flowop closefile name=closefile0,fd=1
#flowop openfile name=openfile1,filesetname=bigfileset,fd=1,indexed=$fileidx2
#flowop readwholefile name=readfile1,fd=1,iosize=1m,directio
#flowop closefile name=closefile1,fd=1
#flowop openfile name=openfile2,filesetname=bigfileset,fd=1,indexed=$fileidx3
#flowop readwholefile name=readfile2,fd=1,iosize=1m,directio
#flowop closefile name=closefile2,fd=1
}
}
psrun -5 10