1328 Commits

Author SHA1 Message Date
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
086efdf4b3 Manual merge from 0.4 2011-07-21 21:02:14 +04:00
5020eea644 Make --report-interval stats use the --percentile value rather than
hardcoded ones.
2011-07-21 20:59:45 +04:00
067134b763 Manual merge from 0.4. 2011-07-21 20:45:22 +04:00
80df3b3500 Bug #811105: Add an option to dump full stats after specified time
intervals.

Added a new --report-checkpoints option that allows to dump full
statistics and reset all counters at specified points in time. The
argument is a list of comma-separated values representing the amount of
time in seconds elapsed from start of test when report checkpoint(s)
must be performed. Report checkpoints are off by   Report checkpoints
are off by default.
2011-07-21 17:29:08 +04:00
1d1073b829 Manual merge from 0.4. 2011-07-19 18:49:27 +04:00
3d52f3e5b5 Bug #797269: Print percentile statistics in --report-interval stats
--report-interval now also prints 95th and 99th percentile of
transactions response times.
2011-07-19 17:53:08 +04:00
4c13bec0d9 * fixed bug #797756 "sequential write test not working correctly"
* advancing position for sequential tests is actually a good idea
* replaced LOG_INFO with LOG_NOTICE for test setup messages to make them
  visible by default
2011-06-19 20:15:59 +04:00
fdbd9ff627 Automerge from 0.4. 2011-05-18 14:25:45 +04:00
3943f66125 Make the prepare stage in fileio honour --file-extra-flags. 2011-05-18 14:24:16 +04:00
a137ab3315 Fixed final fsync() events in sequential fileio tests. 2011-05-16 16:00:02 +04:00
be7ad800c5 Bug #778866: sysbench hangs with --test=fileio --file-test-mode=seqwr
Due to an incorrect merge from 0.4, some code paths in
file_get_seq_request() did not properly release the exec mutex before
returning. This led to deadlocks in sequential fileio tests.
2011-05-16 15:53:36 +04:00