Commit Graph

1240 Commits

Author SHA1 Message Date
174f3aa205 Merge pull request #312 from grooverdan/fix_sb_rand_varstr
lua return value of sb_rand_varstr
2019-07-14 17:19:49 +03:00
dac2708318 Merge branch '1.0' 2019-07-14 17:12:02 +03:00
e6150104e5 build/CI/packaging: add Ubuntu Disco. 2019-07-14 16:52:18 +03:00
ee8fbef1b2 build/CI/packaging: remove Ubuntu Trusty (EOL). 2019-07-14 16:49:34 +03:00
bbf5e9ca22 build/CI/packaging: remove Fedora 28 (EOL). 2019-07-14 16:47:14 +03:00
66be0fbeb6 build/CI/packaging: add Fedora 30. 2019-07-14 16:45:07 +03:00
2168425f6e Update LuaJIT to merge the following fix:
commit 2410af4df0833c3571aac5e6bf509a7a4071c7ad
Author: Alexey Kopytov <akopytov@gmail.com>
Date:   Sun Jul 14 15:58:12 2019 +0300

    Fix an unterminated #ifdef introduced in commit 4baf55b.
2019-07-14 15:59:47 +03:00
cb72db1b1a Update LuaJIT.
In particular, the update fixes the build problem on MacOS Mojave (see
LuaJIT/LuaJIT#484).
2019-07-14 13:39:41 +03:00
eefb5ca6aa Merge branch '1.0' 2019-07-14 13:39:11 +03:00
a65bc9afe1 Cherry-pick fix for LuaJIT/LuaJIT#484 to fix builds on MacOS Mojave.
Bump minimum MACOSX_DEPLOYMENT_TARGET to 10.6

The macOS SDK for 10.4 has been deprecated as of 10.14, bump to 10.6 so that LuaJIT continues to build out of the box.

Fixes LuaJIT#484.
2019-07-14 13:02:30 +03:00
9df34ccd1a lua return value of sb_rand_varstr 2019-07-04 16:19:09 +10:00
faaff4f524 Merge branch '1.0' 2019-04-19 17:33:31 +03:00
39ebaba0f7 build/CI/packaging: add Debian Buster. 2019-03-25 22:11:29 +03:00
d634bced3c Release 1.0.17. 2019-03-15 15:16:36 +03:00
c0bbed6d56 Merge branch '1.0' 2019-03-15 15:08:48 +03:00
bb69c4b4b6 Updated build dependencies for RHEL8-Beta 2019-03-15 15:08:18 +03:00
2e188393d3 Merge pull request #295 from abychko/master
Updated build dependencies for RHEL8-Beta
2019-03-15 09:24:43 +03:00
840071d54f Updated build dependencies for RHEL8-Beta 2019-03-15 13:15:10 +07:00
18a9f86dc6 regression tests: fix script_oltp_general_mysql.t to work with MySQL 8.0. 2019-01-16 19:16:44 +03:00
731237acf3 Merge pull request #288 from akopytov/gh-287
Fix #287: Issue of MYSQL_OPT_SSL_MODE
2019-01-16 18:43:57 +03:00
672be3e61a Addendum to the fix for #287: fix MySQL 5.6 builds again. 2019-01-16 18:38:27 +03:00
f98859a649 Addendum to the fix for #287: fix MySQL 5.6 builds. 2019-01-16 18:25:29 +03:00
0fcd22cc44 Merge branch 'gh-287' 2019-01-16 16:33:04 +03:00
f30a30c875 Fix #287: Issue of MYSQL_OPT_SSL_MODE
In drv_mysql.c do not assume MYSQL_OPT_SSL_MODE to be a preprocessor
define. It is an mysql_option enum value with all MySQL
versions. Instead, do a configure-time check if that value is defined in
mysql.h.
2019-01-16 14:57:37 +03:00
7df3892975 Merge branch '1.0' 2018-12-24 08:41:17 +03:00
54da9152c8 --rate mode: remove the now unnecessary queue_is_full global variable. 2018-12-24 08:40:23 +03:00
f88d27028e Merge branch '1.0' 2018-12-23 11:12:53 +03:00
a4b8aeb31a regression tests: remove unnecessary error leading to opt_rate.t instability. 2018-12-23 11:12:00 +03:00
9bb1f99169 Merge branch '1.0' 2018-12-22 20:13:15 +03:00
8744b88cad Return a non-zero exit code on event queue overflow in the --rate mode. 2018-12-22 20:11:34 +03:00
cd73213935 Merge branch '1.0' 2018-12-18 19:17:52 +03:00
3b7aacb567 --rate mode: fix a bogus error about eventgen thread termination
When the --rate option was used together with the --time option, a bogus
"Terminating the event generator thread failed" error was thrown at the
end of the test.
2018-12-17 21:59:09 +03:00
80348fa3e2 Merge branch '1.0' 2018-12-16 20:11:33 +03:00
0fa06015bf Release 1.0.16. 2018-12-16 19:42:10 +03:00
87cc5380a8 build/CI/packaging: add Ubuntu Cosmic. 2018-12-16 18:56:44 +03:00
019edadfc7 build/CI/packaging: add Fedora 29. 2018-12-16 18:54:34 +03:00
5803f73e45 build/CI/packaging: remove Fedora 27 (EOL). 2018-12-16 18:52:57 +03:00
ad2b1bf1e7 Merge branch '1.0' 2018-12-16 17:27:36 +03:00
b017a998ef Fix GH-282: Mysql's fetch_row() is broken
Fix both MySQL and PostgreSQL drivers to return an error when
fetch_row() is called after retrieving all rows in the result set.
2018-12-16 17:21:39 +03:00
44db9bae33 Fix a merge error. 2018-12-11 23:32:42 +03:00
a245b2f531 OLTP scripts: add --reconnect option.
oltp_*.lua scripts now support the --reconnect=N option. When specified,
sysbench will reconnect after every N events.

Fixes GH-90.
2018-12-11 23:22:56 +03:00
8c8122080c Merge branch '1.0' 2018-12-11 23:22:32 +03:00
bb8c3b04c5 --rate mode: fix latency stats skew on low rates
Worker threads used sleep() in the bounded rate mode to avoid CPU
hogging when polling on the event queue. The problem was that sleep()
calls increased time spent by events in the queue, which is counted
towards event latency to avoid the coordinated omission problem. The
lower the rate, the bigger impact on latency was observed.

The fix is replacing sleep()s with a condition variable which is now
used to put worker into an idle wait when the queue is empty. The event
generation thread now uses pthread_cond_signal() after each generated
event to wake up an idle worker thread. Which somewhat increases
sysbench CPU consumption, especially for high rates.
2018-12-10 21:05:38 +03:00
5cd1244ecc Merge branch '1.0' 2018-10-23 14:57:36 +03:00
49f17576f2 Add /usr/share/lua/5.1 to LUA_PATH and /usr/lib/lua/5.1 to LUA_CPATH.
Those are the paths used by Luarocks on CentOS by default.
2018-10-23 14:56:40 +03:00
b04e5fd8c5 memory benchmark: code cleanups and optimizations.
Get rid of TLS variables in sb_memory.c, because their implementation
varies across platforms and their usage is an overkill for this
benchmark. Instead just use preallocated arrays with per-thread buffers/counters.
2018-10-05 19:12:07 +03:00
c63dbedae0 sb_memory.c: use configurable random function
The --rand-type described in man pages don't really work for
sysbench memory tests. So enable this powerful feature.

Tested with

  sysbench memory --memory-access-mode=rnd --rand-type=pareto run

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
2018-10-05 15:39:32 +03:00
431660d65a Add -Wvla to default compiler flags. 2018-08-30 06:28:21 +03:00
f5650f4ad5 Merge LuaJIT PPC64 port.
PPC64/LuaJIT commit 401cfb, akopytov/LuaJIT commit 5b83fa8.
2018-08-30 06:28:21 +03:00
b76c55aaa8 build/CI/packaging: remove Ubuntu Artful (EOL). 2018-08-30 06:28:21 +03:00