Difference between revisions of "Dbench"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with "==Install== apt install dbench ==Run== dbench [options]numclients tbench [options]numclientsserver tbench_srv [options] ==Option== -c client.txt Use this as...") |
Onnowpurbo (talk | contribs) (→Run) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
dbench [options]numclients | dbench [options]numclients | ||
tbench [options]numclientsserver tbench_srv [options] | tbench [options]numclientsserver tbench_srv [options] | ||
+ | |||
+ | Folder yang akan di test /mnt/public yang di link ke salah satu SMB Server yang akan di test | ||
+ | Gunakan client.txt bawaan dari dbench | ||
+ | |||
+ | dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 20 | ||
+ | |||
+ | Switch --skip-cleanup menentukan berapa concurrent worker / proses yang akan di pekerjakan untuk melakukan benchmarking tersebut | ||
==Option== | ==Option== | ||
Line 13: | Line 20: | ||
Use this as the full path name of the client.txt file (the default is | Use this as the full path name of the client.txt file (the default is | ||
/usr/share/dbench/client.txt). | /usr/share/dbench/client.txt). | ||
− | |||
-s Use synchronous file IO on all file operations. | -s Use synchronous file IO on all file operations. | ||
− | |||
-t TIME | -t TIME | ||
set the runtime of the benchmark in seconds (default 600) | set the runtime of the benchmark in seconds (default 600) | ||
− | |||
-D DIR set the base directory to run the filesystem operations in | -D DIR set the base directory to run the filesystem operations in | ||
− | |||
-x enable xattr support, simulating the xattr operations Samba4 would need to perform | -x enable xattr support, simulating the xattr operations Samba4 would need to perform | ||
to run the load | to run the load | ||
− | |||
-S Use synchronous IO for all directory operations (unlink, rmdir, mkdir and rename). | -S Use synchronous IO for all directory operations (unlink, rmdir, mkdir and rename). | ||
The tbench program takes a number, which indicates the number of clients to run | The tbench program takes a number, which indicates the number of clients to run | ||
simultaneously, and a server name: tbench_srv should be invoked on that server | simultaneously, and a server name: tbench_srv should be invoked on that server | ||
before invoking tbench. tbench can also take the following options: | before invoking tbench. tbench can also take the following options: | ||
− | |||
-T option[,...] | -T option[,...] | ||
This sets the socket options for the connection to the server. The options are a | This sets the socket options for the connection to the server. The options are a | ||
Line 36: | Line 37: | ||
SO_RCVTIMEO=number. See socket(7) for details about these options. | SO_RCVTIMEO=number. See socket(7) for details about these options. | ||
The tbench_srv can only take one option: -T option[,...] as documented above. | The tbench_srv can only take one option: -T option[,...] as documented above. | ||
+ | |||
+ | |||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[Benchmark]] | ||
+ | * [[dbench: Internet Offline]] | ||
+ | * [[dbench: Internet Offline - Rpi 10-100 concurrent]] | ||
+ | * [[dbench: Internet Offline - 60 concurrent]] | ||
+ | * [[dbench: alternatif loadfile]] |
Latest revision as of 04:46, 12 December 2018
Install
apt install dbench
Run
dbench [options]numclients tbench [options]numclientsserver tbench_srv [options]
Folder yang akan di test /mnt/public yang di link ke salah satu SMB Server yang akan di test Gunakan client.txt bawaan dari dbench
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 20
Switch --skip-cleanup menentukan berapa concurrent worker / proses yang akan di pekerjakan untuk melakukan benchmarking tersebut
Option
-c client.txt Use this as the full path name of the client.txt file (the default is /usr/share/dbench/client.txt). -s Use synchronous file IO on all file operations. -t TIME set the runtime of the benchmark in seconds (default 600) -D DIR set the base directory to run the filesystem operations in -x enable xattr support, simulating the xattr operations Samba4 would need to perform to run the load -S Use synchronous IO for all directory operations (unlink, rmdir, mkdir and rename). The tbench program takes a number, which indicates the number of clients to run simultaneously, and a server name: tbench_srv should be invoked on that server before invoking tbench. tbench can also take the following options: -T option[,...] This sets the socket options for the connection to the server. The options are a comma-separated list of one or more of the following: SO_KEEPALIVE, SO_REUSEADDR, SO_BROADCAST, SO_NODELAY, SO_LOWDELAY, SO_THROUGHPUT, SO_SNDBUF=number, SO_RCVBUF=number, SO_SNDLOWAT=number, SO_RCVLOWAT=number, SO_SNDTIMEO=number,and SO_RCVTIMEO=number. See socket(7) for details about these options. The tbench_srv can only take one option: -T option[,...] as documented above.