sahlberg / dbench Goto Github PK
View Code? Open in Web Editor NEWDbench is a loadtester for iSCSI/NFS/SCSI/SMB
License: GNU General Public License v3.0
Dbench is a loadtester for iSCSI/NFS/SCSI/SMB
License: GNU General Public License v3.0
Apologies if this is not the correct place but when i tried to compile dbench i got the error message;
libnfs.c:28:39: error: ‘intptr_t’ undeclared (first use in this function); did you mean ‘__intptr_t’?
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
^
libnfs.c:63:7: note: in expansion of macro ‘discard_const’
free(discard_const(t->key.dptr));
^~~~~~~~~~~~~
libnfs.c:28:39: note: each undeclared identifier is reported only once for each function it appears in
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
^
libnfs.c:63:7: note: in expansion of macro ‘discard_const’
free(discard_const(t->key.dptr));
^~~~~~~~~~~~~
libnfs.c: In function ‘recursive_lookup_fhandle’:
libnfs.c:126:2: warning: ‘return’ with no value, in function returning non-void
return ;
^~~~~~
libnfs.c:87:16: note: declared here
static data_t *recursive_lookup_fhandle(struct nfsio *nfsio, const char *name)
^~~~~~~~~~~~~~~~~~~~~~~~
libnfs.c: In function ‘insert_fhandle’:
libnfs.c:28:39: error: ‘intptr_t’ undeclared (first use in this function); did you mean ‘__intptr_t’?
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
Im no C developer but adding #include <stdint.h>
to libnfs.c seems to have fixed the issue!
Hello, I want to install dbench to test samba server load ability.
But I had a problem in the process when compiling:
checking whether libpopt is available... yes
checking whether libsmbclient is available... no
configure: Libsmbclient-dev not available. Building DBENCH without SMB support
checking whether libiscsi is available... yes
checking whether Linux SCSI Generic is available... yes
checking whether libnfs is available... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating config.h
config.status: config.h is unchanged
configure: ============================================
configure: SMB support .......................... NO
configure: LIBISCSI support ..................... YES
configure: LIBNFS support ....................... YES
configure: LINUX SCSI SG support ................ YES
My system is LinuxMint 17-MATE-32-bit
I use the command ‘sudo apt-get install libsmbclient-dev’, and run ./configure again, the results held.
How to solve the problem of unable to find libsmbclient?
libnfs now provides rpc level access to nfs v2.
Should be reasonably painless to add a nfsv2 backend to dbench.
Hi,
Tim Bird[1] and I noticed a huge difference between the throughput results in dbench v3.04 and v4.00.
If you know the reason, could you explain it please?
Thanks,
Daniel
PS: here are a few results
$ sudo ./dbench -c client.txt -t 10 1
dbench version 3.04 - Copyright Andrew Tridgell 1999-2004
Running for 10 seconds with load 'client.txt' and minimum warmup 2 secs
1 clients started
1 122253 676.39 MB/sec warmup 1 sec
1 372673 677.01 MB/sec execute 1 sec
1 493684 672.06 MB/sec execute 2 sec
1 618774 672.82 MB/sec execute 3 sec
1 743963 673.17 MB/sec execute 4 sec
1 869201 673.76 MB/sec execute 5 sec
1 990318 672.74 MB/sec execute 6 sec
1 1115517 673.64 MB/sec execute 7 sec
1 1240630 673.45 MB/sec execute 8 sec
1 1366000 673.53 MB/sec execute 9 sec
1 1486908 673.17 MB/sec cleanup 10 sec
1 1486909 672.38 MB/sec cleanup 10 sec
$ sudo dbench -t 10 1
dbench version 4.00 - Copyright Andrew Tridgell 1999-2004
Running for 10 seconds with load '/usr/share/dbench/client.txt' and minimum warmup 2 secs
0 of 1 processes prepared for launch 0 sec
1 of 1 processes prepared for launch 0 sec
releasing clients
1 801 21.48 MB/sec warmup 1 sec latency 66.724 ms
1 4362 7.05 MB/sec execute 1 sec latency 66.720 ms
1 6037 7.15 MB/sec execute 2 sec latency 58.372 ms
1 7787 8.63 MB/sec execute 3 sec latency 267.384 ms
1 8094 6.65 MB/sec execute 4 sec latency 66.724 ms
1 11327 9.00 MB/sec execute 5 sec latency 58.295 ms
1 11572 7.60 MB/sec execute 6 sec latency 66.690 ms
1 13954 8.46 MB/sec execute 7 sec latency 58.382 ms
1 14996 8.05 MB/sec execute 8 sec latency 158.601 ms
1 15833 7.68 MB/sec execute 9 sec latency 208.083 ms
$ ./dbench -B fileio -c loadfiles/client.txt -t 10 1
dbench version 4.00 - Copyright Andrew Tridgell 1999-2004
Running for 10 seconds with load 'loadfiles/client.txt' and minimum warmup 2 secs
Waiting for child processes to finish setup.
Releasing clients
1 873 21.66 MB/sec warmup 1 sec latency 58.935 ms
1 4362 5.23 MB/sec execute 1 sec latency 58.419 ms
1 6037 6.24 MB/sec execute 2 sec latency 58.491 ms
1 7841 8.06 MB/sec execute 3 sec latency 66.783 ms
1 8995 7.32 MB/sec execute 4 sec latency 58.433 ms
1 11332 8.63 MB/sec execute 5 sec latency 82.462 ms
1 11575 7.30 MB/sec execute 6 sec latency 67.725 ms
1 14872 8.90 MB/sec execute 7 sec latency 58.217 ms
1 15079 7.85 MB/sec execute 8 sec latency 66.710 ms
1 17389 8.38 MB/sec execute 9 sec latency 66.710 ms
1 cleanup 10 sec
0 cleanup 10 sec
dbench3 default bbb <<< wouldn't compile >>>
dbench3 default bbb dbench3.Throughput 11.5173
dbench4 default bbb dbench.Throughput 0.0282559
dbench4 roota bbb dbench.Throughput 0.116864
dbench testdir docker dbench.Throughput 1741.26
dbench testdir docker dbench.Throughput 1831.78
dbench3 default docker dbench3.Throughput 1169.77
dbench4 default docker dbench.Throughput 10.394
dbench4 roota docker dbench.Throughput 10.959
dbench default min1 dbench.Throughput 254.03
dbench3 default min1 dbench3.Throughput 253.83
dbench3 default min1 dbench3.Throughput 251.732
dbench4 default min1 dbench.Throughput 32.1764
dbench4 default min1 dbench.Throughput 33.0374
dbench4 roota min1 dbench.Throughput 34.0026
dbench4 roota min1 dbench.Throughput 21.3904
dbench default ren1 dbench.Throughput 8.41553
dbench default ren1 dbench.Throughput 8.62088
dbench3 default ren1 dbench3.Throughput 8.43887
dbench3 default ren1 dbench3.Throughput 8.45205
dbench4 default ren1 dbench.Throughput 7.53374
dbench4 roota ren1 dbench.Throughput 8.03552
dbench4 roota ren1 dbench.Throughput 7.72424
dbench default rpi3-1 dbench.Throughput 136.099
dbench default rpi3-1 dbench.Throughput 132.869
dbench3 default rpi3-1 dbench3.Throughput 159.953
dbench4 default rpi3-1 dbench.Throughput 39.9088
dbench4 roota rpi3-1 dbench.Throughput 50.6633
Hi,
I want to try hands-on with dbench but I am facing below error while trying to install dbench for ISCSI support
devendra@ubuntu:/oss/iscsidbench/dbench$ sudo make/oss/iscsidbench/dbench$
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o fileio.o fileio.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o util.o util.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o dbench.o dbench.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o child.o child.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o system.o system.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o snprintf.o snprintf.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o sockio.o sockio.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o nfsio.o nfsio.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o libnfs-glue.o libnfs-glue.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o socklib.o socklib.c
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o linux_scsi.o linux_scsi.c
linux_scsi.c:19:0: warning: "_GNU_SOURCE" redefined [enabled by default]
config.h:233:0: note: this is the location of the previous definition
gcc -g -O2 -Wall -W -I. -DVERSION="4.00" -DDATADIR="/usr/local/share" -c -o libiscsi.o libiscsi.c
libiscsi.c: In function ‘iscsi_write10’:
libiscsi.c:121:9: warning: passing argument 3 of ‘iscsi_write10_sync’ makes pointer from integer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:637:1: note: expected ‘unsigned char ’ but argument is of type ‘uint32_t’
libiscsi.c:121:9: warning: passing argument 4 of ‘iscsi_write10_sync’ makes integer from pointer without a cast [enabled by default]
/usr/include/iscsi/iscsi.h:637:1: note: expected ‘uint32_t’ but argument is of type ‘unsigned char *’
libiscsi.c:121:9: error: too many arguments to function ‘iscsi_write10_sync’
/usr/include/iscsi/iscsi.h:637:1: note: declared here
libiscsi.c: In function ‘iscsi_write16’:
libiscsi.c:164:2: warning: implicit declaration of function ‘iscsi_write16_sync’ [-Wimplicit-function-declaration]
libiscsi.c:164:12: warning: assignment makes pointer from integer without a cast [enabled by default]
libiscsi.c: In function ‘iscsi_read10’:
libiscsi.c:211:11: error: too many arguments to function ‘iscsi_read10_sync’
/usr/include/iscsi/iscsi.h:625:1: note: declared here
libiscsi.c: In function ‘iscsi_read16’:
libiscsi.c:254:2: warning: implicit declaration of function ‘iscsi_read16_sync’ [-Wimplicit-function-declaration]
libiscsi.c:254:12: warning: assignment makes pointer from integer without a cast [enabled by default]
make: ** [libiscsi.o] Error 1
devendra@ubuntu:
Please guide me on this.
Thanks
Devendra
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.