ea44344870
Merge branch '1.0'
2017-12-23 14:34:58 +03:00
6e979f5aef
GH-198: Tolerate misaligned test_files.
...
Adjust I/O request size if it crosses file size boundaries. Which may
happen if the specified file size is not a multiple of block size.
2017-12-23 14:07:29 +03:00
f4c0a61fac
Merge branch '1.0'
2017-12-23 13:32:32 +03:00
f9d79aefe5
Addendum to patch for GH-196: skip file size validation on seqwr tests.
2017-12-23 13:26:53 +03:00
61db85058e
Merge branch '1.0'
2017-12-17 13:37:02 +03:00
b9c6b3a2df
Fix GH-196: fileio: validate file sizes on startup
...
In the fileio test, throw a descriptive error on startup if a test file
size is lower than expected.
2017-12-17 13:07:20 +03:00
5e9858af4f
Merge branch '1.0'
2017-12-02 22:00:08 +03:00
0a9acfe2a2
Fix compiler warnings introduced by commit 5a9d681.
...
Revert counter API functions to use 'static inline' again, but make them
available from Lua by 'instantiating' in sb_lua.c.
2017-12-02 21:32:33 +03:00
d748388fc7
Update comments for counter API functions.
2017-12-02 15:20:56 +03:00
0464dfbddb
Convert sb_counter_add() to C99 inline.
2017-12-01 13:24:47 +03:00
f6604291fa
Merge branch '1.0'
2017-12-01 13:22:05 +03:00
5a9d6811df
Use C99 inlines for sb_counter API to make them LuaJIT/FFI usable.
2017-12-01 11:09:58 +03:00
e6f34657d2
Print a header before options lists on missing --file-test-mode.
...
When the required --file-test-mode option is missing, print a header
before printing the list of available options.
2017-12-01 10:45:52 +03:00
dcf0275384
Merge pull request #185 from jaypipes/rand_str_var_len
...
Adds support for variable-length rand string
2017-11-27 11:21:56 +03:00
9ae462a7b6
Remove support for EXTRA_LDFLAGS, libumem and mtmalloc from configure.ac.
2017-11-26 22:42:05 +03:00
185e8bc853
Return 0 when max_len == 0
2017-11-25 08:54:34 -05:00
b877b5f986
Adds support for variable-length rand string
...
Adds a new random generator of variable-length strings:
```lua
s = sysbench.rand.varstring(10, 100)
```
"s" will be a string containing ASCII characters from '0' to 'z',
inclusive. It will be a length between 10 and 100 characters long.
Addresses GH Issue #17
2017-11-23 10:01:50 -05:00
d258e49784
Merge branch '1.0'
2017-11-14 11:39:30 +03:00
0169d42681
Fix #180 : Add support for CockroachDB (PostgreSQL protocol)
...
Add '40001' (serialization_failure) to the list of ignored SQL states in
drv_pgsql.c. The error appears to be specific to CockroachDB, but
restarting the current transaction is the only reasonable way to handle
it.
2017-11-14 11:30:12 +03:00
dbcba59927
Merge branch '1.0'
2017-11-09 14:50:15 +03:00
06c7f55f24
Fix #178 : (--tables>1 --threads>1 broken in oltp_insert.lua)
...
A combination of --tables and --threads with non-default (i.e. higher
than 1) values resulted in incompleted set of tables generated by
"prepare" for the oltp_insert.lua script.
2017-11-09 12:35:17 +03:00
41de580cf9
Fix an incorrect flag check.
2017-11-09 10:16:30 +03:00
b71f33f2c3
Merge branch '1.0'
2017-10-25 14:52:49 +03:00
4bbccaac3c
Add /usr/local/lib/lua/5.1 to default LUA_CPATH.
...
It is the default cpath used by LuaRocks.
2017-10-25 14:51:59 +03:00
edb7e04fa3
Merge branch '1.0'
2017-10-25 14:39:38 +03:00
1d37b3a8b3
Add /usr/local/share/lua/5.1 to default LUA_PATH.
...
The path is the default LuaRocks global install root, so it is a
frequent request to have it in the default LUA_PATH in sysbench.
2017-10-25 14:35:53 +03:00
07b1146b15
Fix #173 : Commit feb0346 removed latency sum from reporting
...
Add latency sum back to reports.
2017-09-19 08:48:27 +03:00
feb0346fc3
Various cleanups and improvements in benchmark reports.
2017-09-18 23:14:01 +03:00
df0403a19c
Merge branch '1.0'
2017-09-17 23:33:26 +03:00
f5fa7800cb
A better version of the fix for #172 .
2017-09-17 23:32:38 +03:00
de8c40f52d
Merge branch '1.0'
2017-09-17 22:27:33 +03:00
cd13882cb6
Fix #172 : sysbench 1.0.9 doesn't build with mariadb 10.2.8
...
Add a configure check for <server/mysql_version.h> which appears to be
the most portable way to fix MariaDB builds (see MDEV-13773).
2017-09-17 22:23:30 +03:00
c01087138d
Make sysbench.opt available to init()/done() by exporting it to global Lua state.
2017-09-15 20:48:27 +03:00
a880fc4bcc
Make sysbench.opt available to init()/done() by exporting it to global Lua state.
2017-09-15 20:43:28 +03:00
6c2e47ecd6
Add Zipfian distribution.
...
Zipfian distribution is now available and can be controlled via
--rand-type=zipfian, --rand-zipfian-exp.
2017-09-12 10:18:14 +03:00
b16976cf2e
Merge branch '1.0'
2017-09-12 10:13:40 +03:00
cd2b738022
Avoid PK conflicts in oltp_insert.lua by creating empty tables on 'prepare'.
2017-09-12 10:08:59 +03:00
505cd59e57
Silence "used before initialized" compiler warning in sysbench.c.
2017-09-04 20:59:21 +03:00
da8f4b96e2
Fix #169 : a fileio bug
...
Fix async writes being reported as reads, which was a regression
introduced by commit e9b5f4b.
2017-08-30 09:33:31 +03:00
bc6ba90a41
Fix the --events limit to work correctly with --warmup-time.
2017-08-23 16:56:35 +03:00
bcebbb39ff
Merge branch '1.0'
2017-08-23 16:20:14 +03:00
305be15ebc
Fix #168 : oltp_delete.lua uses DELETE + INSERT statements
...
Remove INSERT statements from oltp_delete.lua.
2017-08-23 16:14:14 +03:00
d724133c41
Merge branch '1.0'
2017-08-21 19:25:44 +03:00
9ca119c9c7
Add workaround for MySQL #87337 to build against 8.0.2.
2017-08-21 19:24:13 +03:00
e9b5f4b71e
Fix #167 : warmup maybe problem
...
Fix the --warmup-time option for the fileio test by replacing internal
counters in sb_fileio.c with sb_counters_t / sb_stat_t API used in other
benchmarks. As a result, checkpoints (and --warmup-time) now reset
fileio counters properly.
2017-08-21 18:53:01 +03:00
dcde0d9390
Merge branch '1.0'
2017-07-19 10:06:10 +02:00
21c747a6e4
Fix #161 : build failure on debian kfreebsd-i386: "cannot detect the
...
dynamic library suffix"
Do not be too strict about platforms when choosing the shared library
suffix. Assume ."dylib" for MacOS and ".so" for everything else, since
we there is no Windows support at the moment.
2017-07-19 09:53:44 +02:00
5b32eb516c
Merge branch '1.0'
2017-07-13 15:33:35 +03:00
0c12758222
Fix building against MariaDB 10.2 (thanks to Xavier Bachelot).
2017-07-13 15:29:02 +03:00
db621cd10a
Print queue length and concurrency in the --rate mode.
...
This has been lost in refactoring beteen 0.5 and 1.0.
2017-07-05 00:16:52 +03:00