SMB LoadfilesDBENCH links with libsmbclient and is capable of originating SMB traffic to a remote SMB server, such as Samba or Windows. This is similar to smbtorture/BENCH-NBENCH which also is used in a very similar way to generate SMB workloads. Now, while smbtorture is much more powerful, and can be used to aquire much greater control of what is exactly goes across the wire, DBENCH with smb support is much less sophisticated and simpler. This is NOT a replacement for BENCH-NBENCH. See it as BENCH-NBENCH's little brother that is easier to use and get a long with. Loadfile SyntaxThe DBENCH distribution contains an example loadfile that documents all functions available for the smb backend. While this webpage may sometimes be out-of-date, the example SMB loadfile should always be up to date. Example 1Create 5 different files and write 64kbyte to each of them. Run the loadfile only once for each thread and leave the data and dont do any cleanup after the loadfile finishes. Leave all files behind. # Create a bunch of files # OPEN ./dbench -B smb --smb-share=//10.0.0.33/data --smb-user=Administrator%password --loadfile=smb-writefiles.txt --run-once --skip-cleanup 10 dbench version 4.00 - Copyright Andrew Tridgell 1999-2004 Running for 600 seconds with load 'smb-writefiles.txt' and minimum warmup 120 secs 0 of 10 processes prepared for launch 0 sec 7 of 10 processes prepared for launch 0 sec 10 of 10 processes prepared for launch 0 sec releasing clients 10 32 2.44 MB/sec warmup 1 sec latency 228.466 ms 10 37 2.49 MB/sec warmup 1 sec latency 512.282 ms Operation Count AvgLat MaxLat -------------------------------------------------- CLOSE 50 95.240 221.051 OPEN 50 62.833 240.597 WRITE 100 30.972 250.154 Throughput 0 MB/sec 10 clients 10 procs max_latency=512.282 ms Example 2The 5 files created by the previous loadfile, just read them all over and over. # OPEN./dbench -B smb --smb-share=//10.0.0.33/data --smb-user=Administrator%password --loadfile=smb-readfiles.txt --timelimit=10 --skip-cleanup 10 dbench version 4.00 - Copyright Andrew Tridgell 1999-2004 Running for 10 seconds with load 'smb-readfiles.txt' and minimum warmup 2 secs 0 of 10 processes prepared for launch 0 sec 10 of 10 processes prepared for launch 0 sec releasing clients 10 334 30.89 MB/sec warmup 1 sec latency 49.942 ms 10 945 28.75 MB/sec execute 1 sec latency 109.873 ms 10 1232 28.11 MB/sec execute 2 sec latency 109.873 ms 10 1495 27.10 MB/sec execute 3 sec latency 69.919 ms 10 1745 26.30 MB/sec execute 4 sec latency 137.197 ms 10 2062 27.06 MB/sec execute 5 sec latency 39.954 ms 10 2384 27.71 MB/sec execute 6 sec latency 57.968 ms 10 2708 28.15 MB/sec execute 7 sec latency 40.490 ms 10 3013 28.25 MB/sec execute 8 sec latency 49.942 ms 10 3279 27.94 MB/sec execute 9 sec latency 59.931 ms 10 cleanup 10 sec 0 cleanup 10 sec Operation Count AvgLat MaxLat -------------------------------------------------- CLOSE 4275 3.131 83.772 OPEN 4275 1.947 56.299 READ 8555 9.258 137.188 Throughput 27.9426 MB/sec 10 clients 10 procs max_latency=137.197 ms |