00eb404a86
Fix --with-mysql-libs for MySQL 5.7.
...
Don't use the hard-coded libmysqlclient_r name for the client library,
because it is obsolete in 5.7. Instead, if the client library path is
specified explicitly with --with-mysql-libs, try both libmysqlclient_r
and libmysqlclient in that order.
2016-07-28 10:00:37 +03:00
a099b20f2c
Fixes #57 : Race condition in sb_timer_value()
...
Avoid updating the timer state in sb_timer_value() to make it safe for
concurrent usage on a shared timer.
2016-07-21 12:27:35 +03:00
ae96664c1f
Merge pull request #52 from sectorsize512/0.5
...
Adding volatile modifier to tmp variable in memory test
2016-06-10 23:29:41 +04:00
8753cb93be
Adding volatile modifier to tmp variable in memory test
...
Issue explanation:
./sysbench/sysbench --test=memory --num-threads=16 \
--memory-block-size=268435456 \
--memory-total-size=137438953472 \
--memory-oper=read \
--memory-access-mode=seq \
--memory-scope=local run
Without this commit the time to run the above command is 0.0004 seconds.
With this commit the time is greater than 3 seconds. Essentially,
without the volatile modifier, the compiler optimizes read access so
that no real access happens.
2016-06-10 14:33:48 -04:00
3c22365b80
Fix crash introduced by commit 9244fcf.
...
There was a regression introduced by commit regression resulting a
double release of mutex in script_lua.c.
2016-06-09 19:55:22 +03:00
9244fcf14c
Don't lock thread mutex unnecessarily in script_lua.c and sb_cpu.c.
...
script_lua.c and sb_cpu.c do not actually need to lock any mutexes when
the test duration is not limited by the number of events.
2016-05-31 09:39:48 +03:00
09e5f7e93b
Merge pull request #50 from espinaemmanuel/0.5
...
Added locking to get_request in lua scripting
2016-05-31 10:14:38 +04:00
343664e950
added locking to get_request in lua scripting
2016-05-30 11:52:17 -07:00
c8b7d30619
Merge pull request #49 from faridz88/patch-1
...
Duplicate line
2016-05-24 13:52:57 +04:00
41be58594d
Duplicate line
...
Removing duplicate line
2016-05-24 14:18:08 +04:30
56fe389762
Fixes #44 : seqwr deleting test files
...
Re-create files after removing them when starting a --file-test-mode=seqwr benchmark.
2016-05-04 23:07:37 +03:00
64aaf37aa4
Merge pull request #35 from Percona-Lab/0.5
...
Fix for parallel_prepare
2016-04-14 14:46:34 +04:00
4190ad29b7
adjust event generation for a high volume
2016-04-10 19:59:06 -04:00
f1bc151b58
Merge pull request #1 from akopytov/0.5
...
Merge upstream
2016-04-08 10:38:50 -07:00
cb9a2cdc29
Revert "Fix the issue when threads running < num_threads"
...
This reverts commit 06aa4d2d6b16a5c6fac5884681bd32d12f47ef34.
2016-04-08 17:34:50 +00:00
5d87570f6b
Fix prepare parallel for new thread initialization
2016-03-24 22:57:49 -04:00
26d5046cc9
Fixes #29 : FATAL: Failed to read file! file: 24 pos: 14516224 errno = 0 (Success)
...
Fail when test files do not exist for `sysbench --test=fileio run`,
i.e. when they have not been prepared with `sysbench prepare`.
2016-03-22 21:09:41 +03:00
57e62669b9
Fixes #25 : Include database-related command line options in help
...
Call db_print_help() from print_help() + some cosmetic help changes.
2016-03-18 12:50:41 +03:00
1b5e5619cc
Fix barrier error reporting.
2016-03-18 00:17:36 +03:00
2cdd46e2a2
Fixes #22 : Timers and reporting thread should wait for worker thread to be initialized
...
A barrier is now used by worker and background threads and the main
thread to make sure all threads have initialized before executing
events. If some threads fail to initialize within a timeout (hard-coded
to 30 seconds for now), bail out with an error message.
2016-03-17 15:36:23 +03:00
06aa4d2d6b
Fix the issue when threads running < num_threads
2016-03-17 00:28:43 -04:00
1c812ad6dd
Fixes #17 : Lua script without DB access crashes sysbench.
...
Only call sb_percentile_update() if the DB driver has been initialized.
2016-02-23 11:58:28 +08:00
288aec57a1
Update copyrights and FSF address.
2016-02-21 23:39:18 +08:00
c451cd963b
Update GPLv2 text in COPYING with the current version from https://gnu.org/licenses/gpl-2.0.txt .
2016-02-21 23:39:08 +08:00
546349768a
Fix mutex_get_request() signature.
2016-02-21 21:15:42 +08:00
85889df1ce
Print the number of actually running threads instead of the configured
...
--num-threads value for intermediate reports. This can make a big
difference with network benchmarks to diagnose TCP-related issues like
SYN flood protection, throttling, backlog issues, etc.
2015-11-26 11:52:51 +08:00
d4a30a331a
Minor cleanups in bulk_insert.lua.
2015-11-05 19:08:37 +03:00
d6699439d8
Some minor improvements to bulk_insert.lua
2015-11-03 18:47:20 +03:00
43cb35e248
In the MySQL driver, print error number and text before the query text, as printing them after complicates troubleshooting for really long queries.
2015-11-03 17:08:35 +03:00
e55a12b88c
Fix table creation/removal loop ranges.
2015-11-03 16:41:02 +03:00
aa52781b7c
Moved table creation to the prepare method.
2015-11-03 16:37:48 +03:00
f325955b0c
Use DROP TABLE IF EXISTS when cleaning up.
2015-11-03 16:25:23 +03:00
057e143b27
Use mysql_config --libs_r
instead of mysql_config --libs | sed
.
2015-11-03 00:11:51 +03:00
0bf454200d
Bulk insert test.
2015-11-02 23:14:29 +03:00
064736860b
Properly use the PostgreSQL sequence in insert.lua when oltp_auto_inc is on.
2015-10-13 23:08:55 +03:00
5aa550c00f
Fixed a compiler warning by removing a stray struct initializer.
2015-10-13 22:51:06 +03:00
858ee03fd3
Fixed Windows builds by removing the __attribute__((unused)) construct.
2015-10-13 11:47:49 +03:00
f7629417d0
Fixed unconditional directio() call on Solaris: do it only when --file-extra-flags=direct.
2015-10-12 17:36:37 +03:00
148b0988a8
Use fcntl(..., F_FULLFSYNC) instead of fdatasync() on OSX to avoid a
...
compiler warning.
2015-10-11 15:53:14 +03:00
0ed56dd112
Fixed *_get_request() functions in sb_memory.c and sb_threads.c to match
...
the new interface defined in sysbench.h
2015-10-11 15:16:17 +03:00
6007568e65
Fixed a couple of compiler warnings in crc32.c
2015-10-11 15:13:18 +03:00
2fd08b7872
Fixed --validate for multi-treaded fileio test.
...
Patch contributed by Dwight Engen <dwight.engen@oracle.com >
2015-10-11 15:07:57 +03:00
6d813225e6
Merge pull request #7 from olafdietsche/feature-config-file
...
Feature config file
2015-10-02 10:52:26 +03:00
eaf238bbce
Merge branch '0.4' into 0.5
2015-10-02 10:44:36 +03:00
c3b0aa04e2
Addendum to the fix for #10 : also ignore duplicate key errors, as they
...
are legal for PostgreSQL in the OLTP workload due to its transaction
isolation implementation specifics.
2015-10-02 10:29:37 +03:00
ccc252f43c
Fixed #3 in the 0.4 branch.
2015-10-02 10:26:45 +03:00
a5b53d03d5
Merge branch '0.4' into 0.5
2015-09-30 19:23:19 +03:00
3d63e69a69
More descriptive configure message when MySQL client library is not found.
2015-09-30 19:22:05 +03:00
e3165acb64
Merge branch '0.4' into 0.5
2015-09-23 17:17:17 +03:00
76fc3ef79e
Fixes #10 : oltp: pgsql query execution failed
...
Handle deadlocks correctly in the PostgreSQL driver, i.e. return
SB_DB_ERROR_DEADLOCK to the upper layer to restart the transaction and
increment the deadlocks counter.
2015-09-23 16:59:04 +03:00