Commit Graph

1089 Commits

Author SHA1 Message Date
1b80852af4 Bug #1415746: mysql include path was set in PGSQL_CFLAGS
Merged a contributed patch.
2015-03-01 21:16:50 +03:00
7de7f37551 Bug #1415746: mysql include path was set in PGSQL_CFLAGS
Merged a contributed patch.
2015-03-01 21:14:41 +03:00
f2ae0768bf Bug #1403699: sysbench crash at script_lua.c:860
Added protection for syntax errors in Lua scripts when code in the
top-level chunk (i.e. not in one of the functions) tries to access the
database driver.
2014-12-22 14:29:57 +03:00
ad5577e8ab Read and modify sb_globals.concurrency under a mutex, as dirty access
has proven to cause inaccurate and negative results.
2014-12-05 18:40:48 +03:00
1a586a0dca Fixed the Drizzle and libAttachSQL drivers broken by the autoreconnect patch. 2014-10-24 17:16:53 +04:00
7ea2db661e Added support for additional table options to common.lua. Extra options
can be specified with --mysql-table-options.
2014-10-21 16:57:56 +04:00
289b1c5f65 Introduced a new option called --mysql-ignore-errors, which accepts a
comma separated list of numeric errors that should be ignored. If
sysbench encounters an ignored error indicating that the server is no
longer available (i.e. one of CR_SERVER_LOST, CR_SERVER_GONE_ERROR,
CR_TCP_CONNECTION, or CR_SERVER_GONE_ERROR), it automatically
reconnects. Otherwise it just restarts the current transaction.

A user can also specify --mysql-ignore-errors=all, in which case all
errors will be ignored.

There are also 2 new counters: ‘reconnects’ and ‘errors’, which are
reported in both interval and final statistics.
2014-10-18 22:22:28 +04:00
17c1eb04de Changed the priority of the “Event generation thread is too slow”
message to LOG_DEBUG, so that it is not printed on normal sysbench runs,
but can be enabled with --verbosity=5.
2014-10-18 11:20:48 +04:00
7215074a9a Add libAttachSQL driver to Sysbench 2014-10-16 10:37:38 +01:00
d577a2e517 Insure LOG_EVENT_START being as close as possible to the working loop 2014-09-15 13:15:46 +02:00
a8b1782538 Bug #1354419: Sysbench configure mishandles "--with-pgsql-includes"
s/MYSQL_CFLAGS/PGSQL_CFLAGS in m4/ac_check_pgsql.m4
2014-08-14 14:01:53 +04:00
59e058593e Fixed ‘make dist’ by removing oltp_complex_ro.lua and
oltp_complex_rw.lua and adding oltp.lua, parallel_prepare.lua,
select_random_points.lua and select_random_ranges.lua.
2014-05-13 18:51:37 +04:00
c311b163d0 Merged lp:~ignacio-nin/sysbench/0.5-bug1262178 and ixed the _WIN32
codepath to correctly handle FlushViewOfFile return value.
2013-12-18 16:32:09 +04:00
8fa2657c00 Add a return value to the fileio mode=mmap file_fsync() function
In file_fsync(), for the mmap mode of fileio operation, a successful
return sentence was missing, and the catch-all error return sentence was
being activated for this mode. This is fixed by adding a proper return
value for this mode.
2013-12-18 10:14:10 -02:00
bc0f5e0496 Bug #1208530: Allow sysbench to round-robin on multiple sockets
Similar to multiple hosts in the --mysql-host option, --mysql-socket can
now accept multiple comma-separated sockets. In which the value of
--mysql-host is ignored, and connections are created to all specified
sockets on the round-robin basis.
2013-08-06 10:48:56 +04:00
78a431e37c Automerge from 0.4. 2013-07-04 10:28:56 +04:00
80bc21830a Bug #1197127: fastmmap and slowmmap arg should be mmap
Replaced references to "fastmmap" and "slowwmap" with "mmap" in both
documentation and the built-in help.
2013-07-04 10:27:59 +04:00
df5e8f7e64 Bug #1187040: Random Segmentation faults on fileio test
Fixed a race condition in the test termination code with respect to
--report-interval: the reporting thread might read a non-zero
report_interval value and call print_stats(). If report_interval is
changed to 0 by the master thread and the test's done() method called,
print_stats() could access some shared resources deallocated in
done().

Fixed by protecting report_interval with a separate mutex which is
locked on updates and during the check by reporting thread and
print_stats().
2013-06-11 18:55:57 +04:00
d52054be9e Automerge from 0.4. 2013-03-10 16:35:06 +04:00
9f15f73044 Linked the Serbo-Croatian translation of the manual contributed by Vera Djuraskovic <veradjuraskovic@webhostinggeeks.com>.
Also fixed bug #1071737 "Docs say --oltp-read-only should be use,
though only --oltp-read-only=on works".
2013-03-10 16:34:17 +04:00
15447d0bec Manual merge from 0.4. 2012-10-31 22:43:40 +04:00
0e7116ef5a Bug #1073672: --forced-shutdown does not reflect stuck transactions in
stats

When --forced-shutdown is used, it prints the currently collected
statistics and terminates without waiting for worker threads to
complete. This was implemented to be able to complete benchmark even
if we have some long running or stuck transactions.

The problem is that unfinished transactions are not reflected in
statistics. So, for example, if we do have stuck transactions that
have been stuck for the entire test duration, their timers will still
be running on forced shutdown and thus, statistics will only show
transactions performed by other threads, if any.

The fix is stop all timers on forced shutdown, so even stuck
transactions are accounted with (forced_shutdown_time -
trx_start_time) duration. Also printing the number of currently
running transactions at the time of forced shutdown would also make
sense.
2012-10-31 22:30:24 +04:00
77d6c52809 Merged lp:~vadim-tk/sysbench/sysbench-pareto-merge with minor edits. 2012-09-23 17:09:08 +04:00
27557f4c7e Added pareto distribution 2012-09-21 13:47:59 -07:00
adc885ac12 Bug #1043987: Running 'prepare' in fileio test with
--file-extra-flags=direct fails

Correctly convert the --file-extra-flags argument to platform-specific
open() flags on 'prepare'.
2012-08-30 22:41:33 +04:00
6d8338411a Temporarily reverted the fix for #1029088 as it appears to be
incompatible with ancient autotools.
2012-08-30 21:59:06 +04:00
7de9f0bcf7 Bug #1029088: Error compiling on FreeBSD
The problem was in a hard-coded library (-ldl) being added to LIBADD.

Fixed by using the appropriate Libtool/Autoconf macros to check if using
-ldl is necessary.
2012-08-30 13:28:18 +04:00
72711e1207 Automerge from 0.4. 2012-08-30 12:47:49 +04:00
cbed8d8942 Bug #1042442: Automake fails
Merged configure fix for newer Automake versions contributed by
Raghavendra D Prabhu.
2012-08-30 12:46:49 +04:00
8c722c6217 Bug #1043687: Segfault with --debug=on and DB tests
The problem was a typo in a variable name resulting in usage of
uninitialized data structures.
2012-08-30 12:43:42 +04:00
075d5a5319 Bug #1043629: Segfault with tx-rate option
The problem was a stack overflow in the event generation thread due to a
large array allocated on stack.

Fixed by changing the array to a global static variable.
2012-08-30 12:37:09 +04:00
35f42e0b0f Fixed a typo in the previous revision resulting in the "uninitialized
timer queried" fatal error.
2012-03-25 10:10:32 +04:00
f6daa31d15 Fixed a spurious "timer was never started" warning. 2012-03-23 18:25:09 +04:00
fcff2d2386 Fixed a crash at the end of the test when tx-rate is not used. 2012-03-21 12:20:02 +04:00
a169dceb11 Merge trunk. 2012-03-18 18:36:41 -04:00
bdb0f791db Merged and fixed lp:~vadim-tk/sysbench/inj-rate 2012-03-18 18:35:16 -04:00
0e9cad445e Automerge from 0.4 2012-03-10 23:49:42 -08:00
516ae92c46 Update fileio stats in async mode when completing requests rather than
submitting them.
2012-03-10 23:47:56 -08:00
428af92df5 Show 3 digits after dot in fileio response time intermediate stats. 2012-03-10 08:27:21 -08:00
e68630b19e Bug #924585: configure fails on Ubuntu 11.10
Fixed a problem with pthread_once() not being detected by configure on
modern distributions.
2012-02-01 10:12:10 +04:00
a6ce3e9904 Merged lp:~vadim-tk/sysbench/oltp_skip_trx 2011-12-02 09:25:07 +04:00
f31ed32f2c Added oltp_skip_trx option, similar to one in sysbench 0.4 2011-12-01 11:43:29 -08:00
375016c245 Merged PostgreSQL fixes from Samuel J. Greear 2011-11-01 08:47:31 +01:00
051946c9ce Make things play nice with PostgreSQL, tested with 9.1.1 and 9.2 2011-11-01 00:00:27 -06:00
84e7416789 Manual merge from 0.4. 2011-09-30 22:47:19 +04:00
82c96ff62d Bug #863564: Make fileio prepare reuse existing files
Changed the fileio prepare command so that any existing files left from
the previous runs are now reused rather than recreated from
scratch. This is is mostly useful for SSD drives, but may speed up the
prepare stage for regular drives too.
2011-09-30 22:40:56 +04:00
e0fc9ecd8c Automerge from 0.4. 2011-09-30 16:25:49 +04:00
93c2cd6113 Bug #863159: Provide percentile response time stats for intermediate
report in fileio test

Added response time percentile to intermediate reports in fileio.
2011-09-30 16:17:42 +04:00
8d6529c74f Fixed compilation on Windows (patch contributed by Vladislav Vaintroub). 2011-09-26 17:54:56 +04:00
6f3592ec28 Fixed compilation on Windows (patch contributed by Vladislav Vaintroub). 2011-09-26 17:48:33 +04:00