Commit Graph

338 Commits

Author SHA1 Message Date
c9ba61dc75 sb_memory.c: use correct units
Use the binary prefixes defined in IEC 80000-13.
Ki, kibi = 2^10
Mi, mebi = 2^20

Use B for bytes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-03-23 10:49:21 +01:00
d373c96447 sb_fileio.c: use correct units
Use the binary prefixes defined in IEC 80000-13.
Ki, kibi = 2^10
Mi, mebi = 2^20
Gi, gibi = 2^30
Ti, tebi = 2^40

Use B for Byte, b for bit.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-03-23 10:49:18 +01:00
7acfa8498b sb_print_value_size: use Ki, Mi, Gi, Ti
Use the binary prefixes defined in IEC 80000-13.
Ki, kibi = 2^10
Mi, mebi = 2^20
Gi, gibi = 2^30
Ti, tebi = 2^40

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-03-23 10:49:14 +01:00
93e64fa802 Re-create files after removing them when starting a --file-test-mode=seqwr benchmark. 2016-03-23 11:25:47 +03:00
a04e9075fe Don't install PostgreSQL in Travis, as it seems to be installed by default. 2016-03-23 07:51:03 +03:00
24c7426e68 Fix PostgreSQL driver. 2016-03-23 00:09:26 +03:00
48bb807231 Add --with-pgsql to Travis CI builds. 2016-03-23 00:04:21 +03:00
241828a303 Merge branch '0.5' into 1.0 2016-03-22 21:13:41 +03:00
26d5046cc9 Fixes #29: FATAL: Failed to read file! file: 24 pos: 14516224 errno = 0 (Success)
Fail when test files do not exist for `sysbench --test=fileio run`,
i.e. when they have not been prepared with `sysbench prepare`.
2016-03-22 21:09:41 +03:00
fe7b994c2e Add build status to README.md. 2016-03-22 16:17:55 +03:00
029ea46492 Actually build code with Travis CI builds. 2016-03-22 15:48:01 +03:00
3fe2b22922 Initial Travis CI integration. 2016-03-22 15:27:19 +03:00
04d5fa0d27 Merge pull request #26 from Marc-T/1.0
Rand for Windows
2016-03-18 16:49:11 +04:00
39f069877f Fix CMakeLists 2016-03-18 11:49:05 +01:00
333b62360d Rand for Windows
- Secure rand_s function
- Microsoft TLS implementation for sb_rng_state
2016-03-18 11:34:16 +01:00
3650f38bbf Merge branch '0.5' into 1.0 2016-03-18 12:51:49 +03:00
57e62669b9 Fixes #25: Include database-related command line options in help
Call db_print_help() from print_help() + some cosmetic help changes.
2016-03-18 12:50:41 +03:00
f1acc1bbb6 Merge pull request #24 from Marc-T/1.0
Fix pthread_self return type
2016-03-18 13:00:23 +04:00
5d404c37df Fix pthread_self return type
Fix pthread_self(void) return type
>> int > pthread_t
2016-03-18 09:54:36 +01:00
c47ae9e873 Merge branch '0.5' into 1.0 2016-03-18 00:18:34 +03:00
1b5e5619cc Fix barrier error reporting. 2016-03-18 00:17:36 +03:00
b79051e89c Merge branch '0.5' into 1.0 2016-03-17 15:38:30 +03:00
2cdd46e2a2 Fixes #22: Timers and reporting thread should wait for worker thread to be initialized
A barrier is now used by worker and background threads and the main
thread to make sure all threads have initialized before executing
events. If some threads fail to initialize within a timeout (hard-coded
to 30 seconds for now), bail out with an error message.
2016-03-17 15:36:23 +03:00
06aa4d2d6b Fix the issue when threads running < num_threads 2016-03-17 00:28:43 -04:00
4ad92418c6 Fix compatibility with Autoconf 2.63 broken by adding ax_tls.m4. 2016-02-25 18:00:46 +08:00
03df5c0a6f Fix error message when a TCP connection fails. 2016-02-25 12:03:53 +08:00
7414d441fe Fix --mysql-host broken by the previous commit. 2016-02-25 11:44:06 +08:00
9922dd99ed Allow --mysql-port to be a list.
Allow --mysql-port to be a list rather than just a single value similar
to --mysql-host. When both --mysql-host and --mysql-port are specified
as lists of values, when creating connections first iterate on ports
with the current host, then move to the next host in the list.
2016-02-25 11:01:58 +08:00
1c9ddea0e2 Properly initialize thread-local RNG state. 2016-02-24 21:34:19 +08:00
a7d9d4409b Add a missing #include. 2016-02-24 16:07:21 +08:00
e75ca57ee0 Add a missing '\'. 2016-02-24 16:01:38 +08:00
e24a028409 Fixes #18: lrand48() is not thread-safe
and
LP#1412488: lrand48() doesn't scale well on highly concurrent platforms

Use re-entrant versions of standard RNG functions with thread-local
states. Seed thread-local RNGs from the RNG of the thread invoking
sb_thread_create() (i.e. the main thread).

The main thread RNG is now always seeded from timer, unless --rand-seed
is specified. Which obsoletes --rand-init, so it has been removed.
2016-02-24 00:26:30 +08:00
3e0a29c57f Merge branch '0.5' into 1.0 2016-02-23 15:14:47 +08:00
1c812ad6dd Fixes #17: Lua script without DB access crashes sysbench.
Only call sb_percentile_update() if the DB driver has been initialized.
2016-02-23 11:58:28 +08:00
288aec57a1 Update copyrights and FSF address. 2016-02-21 23:39:18 +08:00
c451cd963b Update GPLv2 text in COPYING with the current version from https://gnu.org/licenses/gpl-2.0.txt. 2016-02-21 23:39:08 +08:00
909bc10551 Bump version for the 1.0 branch and fix email address to report bugs. 2016-02-21 21:18:54 +08:00
546349768a Fix mutex_get_request() signature. 2016-02-21 21:15:42 +08:00
0accfd7206 Update oltp.lua 2016-02-03 12:21:41 -08:00
7ec8a14c5e Update common.lua
Add control defaults for oltp_delete_inserts and oltp_range_selects.
2016-02-03 12:18:36 -08:00
ae295825ef Update oltp.lua
Added new controls around range select operations (oltp_range_selects) and delete/insert operations (oltp_delete_inserts).
2016-02-03 12:15:31 -08:00
85889df1ce Print the number of actually running threads instead of the configured
--num-threads value for intermediate reports. This can make a big
difference with network benchmarks to diagnose TCP-related issues like
SYN flood protection, throttling, backlog issues, etc.
2015-11-26 11:52:51 +08:00
d4a30a331a Minor cleanups in bulk_insert.lua. 2015-11-05 19:08:37 +03:00
d6699439d8 Some minor improvements to bulk_insert.lua 2015-11-03 18:47:20 +03:00
43cb35e248 In the MySQL driver, print error number and text before the query text, as printing them after complicates troubleshooting for really long queries. 2015-11-03 17:08:35 +03:00
e55a12b88c Fix table creation/removal loop ranges. 2015-11-03 16:41:02 +03:00
aa52781b7c Moved table creation to the prepare method. 2015-11-03 16:37:48 +03:00
f325955b0c Use DROP TABLE IF EXISTS when cleaning up. 2015-11-03 16:25:23 +03:00
057e143b27 Use mysql_config --libs_r instead of mysql_config --libs | sed. 2015-11-03 00:11:51 +03:00
0bf454200d Bulk insert test. 2015-11-02 23:14:29 +03:00