Difference between revisions of "Dbench"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
Gunakan client.txt bawaan dari dbench
 
Gunakan client.txt bawaan dari dbench
  
mkdir -p /mnt/public//clients/client1/~dmtmp/SEED
 
 
  dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 20
 
  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 43: Line 44:
 
* [[Benchmark]]
 
* [[Benchmark]]
 
* [[dbench: Internet Offline]]
 
* [[dbench: Internet Offline]]
 +
* [[dbench: Internet Offline - Rpi 10-100 concurrent]]
 
* [[dbench: Internet Offline - 60 concurrent]]
 
* [[dbench: Internet Offline - 60 concurrent]]
 
* [[dbench: alternatif loadfile]]
 
* [[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.


Pranala Menarik