a48a6b38c6Merge from lp:~vadim-tk/sysbench/sysbench-db-scripts
Alexey Kopytov
2011-04-29 11:59:55 +04:00
f2e00b67a0Merge from lp:~vadim-tk/sysbench/sysbench-stat-fix with minor modifications.
Alexey Kopytov
2011-04-28 22:22:05 +04:00
78dc382849Include common.lua it not depended on path
Vadim Tkachenko
2011-04-27 22:43:05 -07:00
ea8ebb13da- Rewrote db scripts to use db_query - combined oltp_complex_ro and oltp_complex_rw into oltp.lua - improved oltp.lua to understand most parameters from sysbench 0.4 oltp
Vadim Tkachenko
2011-04-27 15:40:49 -07:00
d2788a00c6Make statistics available in case we use db_query instead of db_execute in scripts
Vadim Tkachenko
2011-04-27 09:30:11 -07:00
9a11bb64d6Automerge from sysbench/0.4
Alexey Kopytov
2011-04-19 13:50:26 +04:00
ae40add564Delay killing the --report-interval thread until the very end of run_test() to avoid mutex lock leaks.
Alexey Kopytov
2011-04-19 13:29:19 +04:00
c0c141e866Manual merge from 0.4.
Alexey Kopytov
2011-01-12 13:48:20 +03:00
c4bb8a246cIn --report-interval mode, reads/second and writes/seconds are now displayed in addition to tps.
Alexey Kopytov
2011-01-12 13:39:47 +03:00
87222b57f4Initialize sb_lua_ctxt_key to avoid a warning when building with Sun Studio.
Alexey Kopytov
2010-12-24 16:46:33 +03:00
661757974f* Exported sb_rand_uniform(), sb_rand_gaussian() and sb_rand_special() to Lua.
Alexey Kopytov
2010-12-23 09:48:32 +03:00
721dc0b23cManual merge from 0.4.
Alexey Kopytov
2010-11-09 21:50:25 +03:00
1984a294bfAutomerge from 0.4
Alexey Kopytov
2010-11-09 18:02:51 +03:00
bf3e2c8c0bFixed an example using an obsolete option in the manual
Alexey Kopytov
2010-11-09 18:02:10 +03:00
63f538eb35Fix race condition. Global variables were begin accessed without a mutex locked. This caused some fsync calls to use a bogus file descriptor, FATAL errors and early test failure.
Mark Callaghan
2010-11-07 11:30:49 -08:00
eca9c2cc71Manual merge from 0.4.
Alexey Kopytov
2010-11-06 17:30:53 +03:00
de21c2a060Fixed docs for --report-interval to mention that statistics is per-interval rather than cumulative.
Alexey Kopytov
2010-11-06 11:03:26 +03:00
c055685f24Fix race condition. Global variables were begin accessed without a mutex locked. This caused some fsync calls to use a bogus file descriptor, FATAL errors and early test failure.
Mark Callaghan
2010-11-05 18:03:23 -07:00
b93fffdae3Fixed an incorrect merge. More compilation warnings fixed.
Alexey Kopytov
2010-11-01 12:37:19 +03:00
18307aca62Manual merge from 0.4.
Alexey Kopytov
2010-11-01 12:01:02 +03:00
c33ec00456Rewrote intermediate statistics feature contributed by Mikael Ronstrom. Removed "batch mode", --report-interval should now be used instead. Fixed compile warnings produced by gcc with -Wextra.
Alexey Kopytov
2010-11-01 11:35:41 +03:00
59f01faba9Merge from Hakan (mp39548).
Alexey Kopytov
2010-10-29 18:05:42 +04:00
cea90cbc87Review changes. Prevent overlapping of range queries by partitioning the whole into num_threads segments and then make each thread work with its own segment.
Hakan Kuecuekyilmaz
2010-10-29 04:15:54 +02:00
7fd5ff7d01Added two new tests for MariaDB:
Hakan Kuecuekyilmaz
2010-10-28 18:53:45 +02:00
6551ccf20dAutomerge from sysbench-0.4.
Alexey Kopytov
2010-09-23 16:41:01 +04:00
f81f75d427Removed auto-generated files from version control. Created .bzrignore.
Alexey Kopytov
2010-09-23 16:37:15 +04:00
46a950f9f9Added intermediate-result-timer, also fixed more proper timing to avoid thread variations to impact result too much
Mikael Ronstrom
2010-09-22 11:14:13 +02:00
ce91c1adacAdded transaction rate control option oltp test
Mikael Ronstrom
2010-09-22 10:38:55 +02:00
e622d9a26aManual merge from sysbench-0.4.
Alexey Kopytov
2010-04-26 11:33:28 +04:00
f8280bd124Increased minimum thread stack size on Windows to 128K to avoid "Can't create TCP/IP socket (10106)" error on Windows 7.
Alexey Kopytov
2010-04-26 11:25:11 +04:00
5f5e126f95Set the default value for --version to "off".
Alexey Kopytov
2010-04-06 20:21:36 +04:00
057c309914Ported '--version' switch and 'version' command from the 0.4 tree.
Alexey Kopytov
2010-03-10 21:31:47 +03:00
516221c384Merge r70 from lp:~mdcallag/sysbench/trunk to get bug fix Use sb_get_value_int not sb_get_value_flag for --rand-seed
Mark Callaghan
2009-10-15 13:03:04 -07:00
46b5eceb4dMerge r67 from lp:~mdcallag/sysbench/0.4 to get a bug fix Use sb_get_value_int instead of sb_get_value_flag for --seed-rng
Mark Callaghan
2009-10-15 13:00:31 -07:00
0e8803d8fdUse sb_get_value_int not sb_get_value_flag for --rand-seed
Mark Callaghan
2009-10-02 17:00:34 -07:00
3a24ba8042Use sb_get_value_int instead of sb_get_value_flag for --send-rng
Mark Callaghan
2009-10-02 16:55:04 -07:00
6d261edd7aMerge lp:~mdcallag/sysbench trunk to get revisions: 69 : make --with-lua=no disable lua support 70 : add --rand-seed to set RNG seed
Mark Callaghan
2009-10-01 16:18:28 -07:00
3c714e34e0merge lp:~mdcallag/sysbench/0.4 to get revisions: 66 : add --seed-rng 67 : add --oltp-point-select-mysql-handler 68 : add --oltp-secondary and --oltp-point-select-all-cols
Mark Callaghan
2009-10-01 16:12:07 -07:00
d9b13b92b2Add --oltp-secondary option to use a secondary index on _id_ rather than a primary key. Add --oltp-point-select-all-cols to make the point-select query (fetch 1 row by primary key) fetch all columns from the row rather than only _c_. This makes it comparable to the work done when --oltp-point-select-mysql-handler is used because HANDLER statements fetch all columns.
Mark Callaghan
2009-09-30 15:44:21 -07:00
9794383fcaAdd option --oltp-point-select-mysql-handler to use HANDLER for primary key lookups instead of a SELECT statement.
Mark Callaghan
2009-09-30 12:37:03 -07:00
7dce4a7e54add --send-rng option
Mark Callaghan
2009-09-30 11:10:46 -07:00
e3dd940334add --rand-seed to set RNG seed
Mark Callaghan
2009-09-30 11:03:53 -07:00
def3c5981cmake --with-lua=no disable lua support
Mark Callaghan
2009-09-30 11:03:11 -07:00
652eb760c3Merge lp:~elambert/sysbench/trunk_drizzle_merge with some modifications.
Alexey Kopytov
2009-09-21 23:25:59 +04:00
8e6663f4c2Manual merge from the 0.4 tree.
Alexey Kopytov
2009-07-28 15:57:18 +04:00
df31f6767f* Removed autogenerated ltmain.sh from the repository. * Upgraded autogen.sh to invoke libtoolize to simplify building from the Bazaar repository. * Updated docs.
Alexey Kopytov
2009-07-28 15:41:45 +04:00
14a905ad31-removed files generated by autogen from bzr
Eric Lambert
2009-06-10 17:15:35 -07:00
6a37fa6634-added NEWS and AUTHORS files (needed by autogen)
Eric Lambert
2009-06-10 16:45:42 -07:00
b9d0556c84Merged all in drizzle sysbench changes with the exception of those changes made to the sb_oltp.c and sb_oltp.h files (those changes will be merged at a later date). -added drizzle support to lua tests -removed some dead code -updated autotools system -Added extensions.m4 -Removed manual.html - it's generated -Turned on warnings. Made sysbench compile with them on -Added support for building with libdrizzle -Added run.sh as example of how to run drizzle sys-bench -drv drizzle works with multi-thread -drv_drizzle: misc. fixes -drv_drizzle: fix all four buffering forms -Checking for error codes using new clean method. -Check that new constant exists in autoconf -drv_drizzle: Turned unsigned ints back off -drv_drizzle: Updated error fetching code -drv_drizzle: Removed blocking option - makes no sense. Cleaned up option help text -Up to date with latest libdrizzle changes -fixed some solaris build issues -Split acinclude into multiple files in m4/ dir -downgraded autoconf -Removed -Wlogical-op, it's only in newer GCC, and it's not important enough to impose GCC version restrictions for -Removed need for drizzled install for libdrizzle build -Fixed solaris build issues -Fixed new libdrizzle result processing -Added the all_need_caps explicitly to drv_mysql -Added capability for libdrizzle
Monty Taylor
2009-06-10 16:43:32 -07:00
b5c7ed407cNull-merged the old OLTP test from the 0.4 branch
Alexey Kopytov
2009-05-28 20:16:03 +04:00
db2d315f74Added the old OLTP test back
Alexey Kopytov
2009-05-28 20:12:23 +04:00
c704c9beb8Null-merged the 0.4 branch
Alexey Kopytov
2009-05-28 19:50:59 +04:00
b359b0915eMoved EXTRA_LDFLAGS from sysbench_LDADD to sysbench_LDFLAGS where it should belong
Alexey Kopytov
2009-05-28 19:45:59 +04:00
b773e3146bSince Bazaar does not allow merging of two unrelated branches, created the branch for the old 0.4 code base from trunk, then reconciled with 0.4 manually (the patchwill be null-merged into trunk).
Alexey Kopytov
2009-05-28 19:25:12 +04:00
1d11503695Fixed configure.ac to look for lrand48 in AC_CHECK_FUNCS, not AC_CHECK_HEADERS
Alexey Kopytov
2009-05-28 19:11:54 +04:00
512d84fd27Made forced shutdown optional via the --forced-shutdown switch and off by default.
Alexey Kopytov
2009-03-19 16:03:09 +00:00
57e7ea90a5Added forced test shutdown to avoid endless execution when DB server freezes.
Alexey Kopytov
2009-03-16 07:42:49 +00:00
4c2e5fdcb2Fixed a bug with preparation of statements w/o bound parameters.
Alexey Kopytov
2009-02-26 10:35:44 +00:00
946f88aa91Added a missing call to db_close() in sb_lua_db_close().
Alexey Kopytov
2009-02-20 16:02:02 +00:00
b1a077bc24Pop the function return value from the stack to prevent memory leak.
Alexey Kopytov
2009-02-02 17:29:48 +00:00
78f5026342Removed the __gc method for the result set userdata since it's no longer needed after removing per-statement calloc() in db_execute().
Alexey Kopytov
2008-12-29 13:15:57 +00:00
9edaef2391Added definition of SB_MAX_RND back, was removed in the previous commit by mistake.
Alexey Kopytov
2008-12-29 10:23:15 +00:00
545a870654Merged patches from Tim Cook: - use lrand48() as random() is not thread-safe on most platforms - use libumem/mtmalloc for memory allocation if available on the target platform
Alexey Kopytov
2008-12-18 11:46:27 +00:00
89f0f64c05Got rid of unnecessary calloc() in db_driver.c by reusing a per-connection preallocated structure.
Alexey Kopytov
2008-12-17 20:00:08 +00:00
38010b6634Moved $(EXTRA_LDFLAGS) before client libraries in the linker command line so that additional libraries would take precedence.
Alexey Kopytov
2008-12-16 14:28:54 +00:00
63f94c39caRemoved scripts. They have not been maintained for a long time since no one seems to use them.
Alexey Kopytov
2008-12-09 13:08:02 +00:00
aed3875237New --with-extra-ldflags switch in configure. One example where it might be useful: './configure --with-extra-ldflags=-all-static' will instruct libtool to try to create a static binary if supported by the target platform.
Alexey Kopytov
2008-12-09 13:00:06 +00:00
af95413bfaApplied a patch from Philip Guenther: - assumed that pthread_create() and pthread_join() set errno. They don't: they return the error value instead
Alexey Kopytov
2008-12-09 12:38:27 +00:00
4b25999044Temporarily disabled a call to mysql_options() to workaround a bug the client library.
Alexey Kopytov
2008-12-08 07:38:12 +00:00
e3e2427655Fixed commit_stmt for OLTP tests which was prepared as "LOCK TABLES" by mistake.
Alexey Kopytov
2008-12-02 15:48:24 +00:00
c6faf6837bAdded a check to _setvbuf to configure.
Alexey Kopytov
2008-12-01 11:13:24 +00:00
df2339f2acDisplay query text when mysql_stmt_execute() fails.
Alexey Kopytov
2008-11-29 16:13:14 +00:00
bd4b0c8ba8Honour --max-requests for sequential fileio tests. Rewind to the first file in case all files are processed.
Alexey Kopytov
2008-11-18 13:43:32 +00:00
d933c6e28fSet stdout to non-buffered mode.
Alexey Kopytov
2008-11-18 13:42:01 +00:00
080ebfe37aCheck if connection is valid in sb_lua_db_disconnect().
Alexey Kopytov
2008-11-06 10:55:53 +00:00
d760f42b3dRemoved xsl/ files from doc/Makefile.am as xsl/ now has its own Makefile.am
Alexey Kopytov
2008-11-05 13:30:50 +00:00
edffa94fefAdded support for direct I/O on Solaris.
Alexey Kopytov
2008-11-05 13:26:48 +00:00
c966692683Fixed Windows build.
Alexey Kopytov
2008-10-23 10:11:18 +00:00
bc8716e622Fixed bug #2174795. Fixed lua_error() calls without putting a message on stack in script_lua.c
Alexey Kopytov
2008-10-18 12:56:40 +00:00
9fb57169bfFixed a race condition around DB library initialization in script_lua.c Minor cleanups.
Alexey Kopytov
2008-10-18 11:42:53 +00:00
68783a44dbRaised the default thread stack size to 64K. 32K proved to be not enough on some platforms.
Alexey Kopytov
2008-10-02 17:04:09 +00:00
8184df67afReplaced the fix for race condition in script_lua.c with the pthread_once() patch by Vladislav Vaintroub.
Alexey Kopytov
2008-09-30 13:55:41 +00:00
03bc740ad5Fixed a race condition around DB library initialization in script_lua.c Minor cleanups.
Alexey Kopytov
2008-09-30 10:01:53 +00:00
2d63c9073dInitial Windows support. Huge thanks to Vladislav Vaintroub for the patch.
Alexey Kopytov
2008-09-29 16:22:42 +00:00
04d168dd50Removed spurious warnings on mysql_store_result(). Minor logging fixes.
Alexey Kopytov
2007-06-17 18:27:05 +00:00