Commit Graph

861 Commits

Author SHA1 Message Date
d5cd06e3cb Fix endless loop when reading a config file. 2015-07-07 15:16:08 +02:00
a587438c3b Cosmetic changes to README.me. 2015-07-07 10:15:26 +03:00
bab1bb1acf More formatting fixes. 2015-06-11 15:10:09 +03:00
07f149f72d More formatting fixes. 2015-06-11 15:09:19 +03:00
076522cdd7 Misc. formatting fixes. 2015-06-11 15:01:38 +03:00
8151650c24 Update README.md with installation and usage instructions extracted from
the old manual.
2015-06-11 14:54:05 +03:00
439ad14703 Allow unlimited number of requests (--max-requests=0) in CPU and threads benchmarks. 2015-05-28 17:55:08 +03:00
e7b9ff66d2 Do not dereference a NULL pointer with --mysql-dry-run. 2015-05-12 16:51:48 +03:00
794c6aaa5a Fixes #4: max elapsed time overflows
Use CLOCK_MONOTONIC instead of CLOCK_REALTIME in clock_gettime().
2015-05-12 16:11:12 +03:00
2b30428830 Fixed #3: Runtime segmentation fault with the latest version as of 2015/04/22
2 issues:

1. --mysql-dry-run was enabled by default
2. mysql_drv_query() attempted to use uninitialized memory in case of
--mysql-dry-run.
2015-04-22 21:42:11 +03:00
c3e805d66a Only lock timers_mutex if there’s a background checkpoints thread
aggregating per-thread timers.
2015-04-18 15:42:40 -07:00
7a0e384cf0 Manual merge from 0.4. 2015-04-18 12:07:24 -07:00
b0ce007822 Added the --mysql-dry-run option. 2015-04-17 17:00:59 -07:00
0678b7253b Merge pull request #2 from renecannao/0.5
Added mysql-compression option
2015-03-25 16:07:55 +03:00
35bd074035 Added mysql-compression option 2015-03-25 13:00:38 +00:00
5d2cf8a2ea Moved .bzrignore to .gitignore 2015-03-10 10:21:11 +03:00
48b982d51f Merge branch '0.4' into 0.5 2015-03-09 21:58:22 +03:00
07ba467bfc Created .gitignore. 2015-03-09 21:56:59 +03:00
ad9c40f592 Fixed LP #1417545: Minor fixes for compilation informationals/complaints on VMS
Fixed unsigned int comparisons with 0 in a couple of places.
2015-03-09 21:53:40 +03:00
9c918a9d8b Replaced README with README.md 2015-03-08 17:14:22 +03:00
1ab7abdd57 Bug #1415750: --with-pgsql-libs is ignored
Merged a contributed patch.
2015-03-01 21:19:57 +03:00
a24fa26f0f Bug #1415750: --with-pgsql-libs is ignored
Merged a contributed patch.
2015-03-01 21:18:51 +03:00
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