- status: open --> open-accepted
Raw device support is just a hack at the moment. E.g., one cannot close a raw device, cause a corresponding file entry is even not created. The right way is to add a new file type in FB or something along these lines.
The problem can be easily dmonstrated using this personality:
define file name=dmd_linear,path=/dev/mapper,size=512m
define process name=rawdevwriter,instances=1
{
thread name=rawdevreaderthread,memsize=10m,instances=1
{
flowop write name=write-file,fd=1,filesetname=dmd_linear,iosize=64k,directio,iters=8096
flowop closefile name=close-file,fd=1
#flowop closefile name=close-file,fd=1,filesetname=dmd_linear
}
}
create fileset
system "sync"
system "echo 3 > /proc/sys/vm/drop_caches"
psrun -5 300
#filebench -f old.f
Filebench Version 1.4.9.1
22274: 0.000: Allocated 170MB of shared memory
22274: 0.014: Populating and pre-allocating filesets
22274: 0.014: File /dev/mapper/dmd_linear is a RAW device
22274: 0.015: Waiting for pre-allocation to finish (in case of a parallel pre-allocation)
22274: 0.016: Population and pre-allocation of filesets completed
22274: 0.016: Running 'sync'
22274: 0.385: Running 'echo 3 > /proc/sys/vm/drop_caches'
22274: 0.406: Attempting to create fileset more than once, ignoring
22279: 0.406: Starting 1 rawdevwriter instances
22280: 0.458: Starting 1 rawdevreaderthread threads
22274: 1.461: Running...
22274: 6.465: Per-Operation Breakdown
close-file 0ops 0ops/s 0.0mb/s 0.0ms/op 0us/op-cpu [0ms - 0ms]
write-file 3508ops 701ops/s 43.8mb/s 1.3ms/op 239us/op-cpu [0ms - 250ms]
22274: 6.465: IO Summary: 3508 ops, 701.342 ops/s, (0/701 r/w), 43.8mb/s, 285us cpu/op, 1.3ms latency
22274: 11.470: Per-Operation Breakdown
close-file 0ops 0ops/s 0.0mb/s 0.0ms/op 0us/op-cpu [0ms - 0ms]
write-file 3775ops 754ops/s 47.0mb/s 1.2ms/op 246us/op-cpu [0ms - 214ms]
22274: 11.470: IO Summary: 3775 ops, 754.402 ops/s, (0/754 r/w), 47.0mb/s, 297us cpu/op, 1.2ms latency
22279: 13.175: Unexpected Process termination Code 3, Errno 0 on line 14
22274: 13.472: Run took 12 seconds...
22274: 13.472: NO VALID RESULTS! Filebench run terminated prematurely on line 14
22274: 13.472: Shutting down processes
Replacing the closefile flowop with the one commented out, it goes smoothly.