- Status: open --> pending
I am using the singlestreamread.f workload on an nfs mounted filesystem, which is mounted at /a. If I do set $dir=/a then filebench always removes the old file and creates a new one, even though singlestreamread.f defines the file as "reuse".
If I create a subdir e.g. /a/dir1 and then run filebench and do set $dir=/a/dir1 then the reuse parameter works as expected (i.e. the file is created the first time, but re-used on subsequent runs.
I am using Filebench Version 1.4.9.1
> Using the mountpoint as top level dir for filebench
[root@perfdisk3650-8 filebench-1.4.9.1]# /usr/local/bin/filebench
Filebench Version 1.4.9.1
IMPORTANT: Virtual address space randomization is enabled on this machine!
It is highly recommended to disable randomization to provide stable Filebench runs.
Echo 0 to /proc/sys/kernel/randomize_va_space file to disable the randomization.
12384: 0.000: Allocated 170MB of shared memory
filebench> load singlestreamread
12384: 11.539: Single Stream Read Version 3.0 personality successfully loaded
12384: 11.539: Usage: set $dir=<dir>
12384: 11.539: set $filesize=<size> defaults to 5368709120
12384: 11.539: set $nthreads=<value> defaults to 1
12384: 11.539: set $iosize=<value> defaults to 1048576
12384: 11.539: run runtime (e.g. run 60)
12384: 11.539: This workload needs 5368709120 of disk space by default
filebench> set $dir=/a
filebench> run 60
12384: 23.749: Creating/pre-allocating files and filesets
12384: 23.759: File largefile1: 5120.000MB
12384: 23.891: Removed any existing file largefile1 in 1 seconds
12384: 23.891: making tree for filset /a/largefile1
12384: 23.893: Creating file largefile1...
12384: 64.140: Preallocated 1 of 1 of file largefile1 in 41 seconds
12384: 64.140: waiting for fileset pre-allocation to finish
12396: 64.140: Starting 1 seqread instances
12397: 64.141: Starting 1 seqread threads
12384: 65.142: Running...
12384: 125.149: Run took 60 seconds...
> Using a subdir of the moutpoint as the filebench "root"
/usr/local/bin/filebench
Filebench Version 1.4.9.1
IMPORTANT: Virtual address space randomization is enabled on this machine!
It is highly recommended to disable randomization to provide stable Filebench runs.
Echo 0 to /proc/sys/kernel/randomize_va_space file to disable the randomization.
12180: 0.000: Allocated 170MB of shared memory
filebench> load singlestreamread
12180: 4.076: Single Stream Read Version 3.0 personality successfully loaded
12180: 4.076: Usage: set $dir=<dir>
12180: 4.076: set $filesize=<size> defaults to 5368709120
12180: 4.076: set $nthreads=<value> defaults to 1
12180: 4.076: set $iosize=<value> defaults to 1048576
12180: 4.076: run runtime (e.g. run 60)
12180: 4.076: This workload needs 5368709120 of disk space by default
filebench> set $dir=/a/dir1
filebench> run 60
12180: 14.583: Creating/pre-allocating files and filesets
12180: 14.583: File largefile1: 5120.000MB
12180: 14.584: Re-using file largefile1.
12180: 14.584: Creating file largefile1...
12180: 14.585: Preallocated 1 of 1 of file largefile1 in 1 seconds
12180: 14.585: waiting for fileset pre-allocation to finish
12182: 14.585: Starting 1 seqread instances
12183: 14.586: Starting 1 seqread threads
12180: 15.586: Running...
12180: 75.592: Run took 60 seconds...