Commit Graph

942 Commits

Author SHA1 Message Date
3a96db7a58 Fix timestamps in interval reports. 2017-01-02 16:00:52 +03:00
32dc157d9b Also reset last_reconnects in db_reset_stats(). 2017-01-02 15:52:25 +03:00
821be2a7c4 Timers overhaul. 2017-01-02 14:57:55 +03:00
8f5cbe3608 Replace sb_histogram_t::interm_nslots with a constant. 2017-01-01 20:28:36 +03:00
0f57b078d7 Align global_histogram to cache line size. 2017-01-01 20:26:01 +03:00
b77e046978 Pad sb_timer_t to cache line size. 2017-01-01 17:44:59 +03:00
c3fd06203b Better formatting for help/usage text. 2016-12-30 21:23:29 +03:00
d5b661a019 Implement --histogram option.
When --histogram is used, print latency histogram as a part of the
benchmark report. For now, the histogram is actually a text
representation of an internal data structure used by sysbench to
calculate latency percentile.
2016-12-30 20:42:35 +03:00
2aed6df4d5 Assume 128-byte cache line on AArch64 and PowerPC. 2016-12-30 11:35:10 +03:00
f125b3d15c Pass CPPFLAGS to ConcurrencyKit build flags. 2016-12-30 11:17:38 +03:00
5c45389d60 Replace custom check for Sun compiler with AX_COMPILER_VENDOR. 2016-12-30 09:58:16 +03:00
cf2ce71141 Autodetect the most optimal -march GCC flag for the target architecture.
Use ax_gcc_archflag.m4 to try to guess the most optimal -march value for
the target architecture, unless cross-compiling, or the value is set
explicitly with --with-gcc-arch.

Also, AArch64/ThunderX-specific updates to ax_gcc_archflag.m4.

In sb_concurrency_kit.m4, add --enable-lse to CK build flags if LSE
instructions are supported by the target.
2016-12-30 09:53:56 +03:00
837b2b6a3e Adjust test_fileio.t to pass on slow machines. 2016-12-23 18:22:34 +08:00
f9808250ae Set per-connection thread id. 2016-12-23 17:53:20 +08:00
b35db5b4d9 Replace mutex in db_thread_stat_t with CK atomics. 2016-12-23 17:44:26 +08:00
ec2274bf2f Merge branch 'luajit' into concurrency_kit 2016-12-23 17:18:20 +08:00
7bc9a0622f Fix tests, remove thread_id arg from Lua API functions. 2016-12-18 22:18:58 +08:00
e398721314 Merge branch '1.0' into luajit 2016-12-18 21:20:32 +08:00
401c5a43aa Merge pull request #93 from fukai-t/fix_memory_test_rnd_mode
Fix increment of a loop counter for the random mode of the memory test.
2016-12-15 21:10:59 +04:00
67428d3cea Fix increment of a loop counter for the random mode of the memory test. 2016-12-16 01:52:10 +09:00
482136beb5 Lua implementation of the main event loop.
For Lua scripts the main event loop is now implemented in Lua
itself. This is a prerequisite for leveraging LuaJIT optimizations.
2016-12-12 22:48:11 +03:00
dc8f6dcf57 Pass global CC, CFLAGS and LDFLAGS to ConcurrencyKit build system.
This allows higher optimization levels in optimized builds and
gcov-enabled CK libraries in --enable-coverage builds.
2016-12-12 17:30:21 +03:00
b9f660f99b Add concurrency_kit build directories to .gitignore. 2016-12-12 16:01:09 +03:00
7ba50048a8 Fix AC_SUBST() usage for USE_MYSQL. 2016-12-12 16:01:07 +03:00
4dc366e950 Add LuaJIT build/install directories to .gitignore. 2016-12-09 22:19:37 +03:00
c36861f5ad Add PostgreSQL tests for select_random_*.lua 2016-12-08 22:31:30 +03:00
bee2ed3c00 Rafactor select_random_* benchmarks,
Refactor select_random_*.lua to reuse code from common.lua. Add basic
regression tests.
2016-12-08 22:04:55 +03:00
b5a759fd76 Merge pull request #91 from robins/redshift4
select_random_xx should honour oltp_secondary_create
2016-12-08 19:20:32 +04:00
d45e97f6d4 Merge pull request #92 from robins/redshift5
Add AWS Redshift support for sysbench
2016-12-08 19:17:43 +04:00
68fda7fbd1 Merge from https://github.com/akopytov/ck
Merge AArch64 LSE support from ConcurrencyKit up to commit 5f1be5d.
2016-12-08 10:48:48 +03:00
aead4b99bd Minor change to ensure all existing tests pass after previous commit 2016-12-05 12:23:46 +00:00
396698aadf Adding --pgsql-variant=redshift argument targets a Redshift DB 2016-12-05 10:56:17 +00:00
025d2b319c Split cmd_version.t into cmd_version.t and opt_version.t. 2016-12-05 13:28:22 +03:00
18b7e914a6 Various test-related fixes.
1. Fix drivers.t so it passes when no DB drivers are available.
2. Make it possible for the test suite to detect if certain DB drivers
are available, so individual tests that require them can be skipped.
2016-12-05 13:25:39 +03:00
352788cc13 select_random_xx should honour oltp_secondary_create, just like other tests 2016-12-05 10:23:39 +00:00
70a1c04592 Addendum to commit b450bf0. 2016-12-05 12:45:58 +03:00
b450bf0fd6 Fix script_oltp_* tests to take new version format into account. 2016-12-05 12:31:26 +03:00
aade88ed5e Merge branch '1.0' into concurrency_kit 2016-12-05 12:22:21 +03:00
b71a0c675e Merge from ConcurrencyKit upstream up to commit 566bb28. 2016-12-05 11:18:46 +03:00
f9764f1445 Fixes #54: Reduce overhead from percentile stats
Rewrite percentile calculation to scale on modern hardware. Rename the
underlying data structure from sb_percentile to sb_histogram.
2016-12-05 11:18:40 +03:00
8f92e21197 Merge pull request #87 from robins/pgsql_bulk_insert
Enable Bulk Insert test for Postgres
2016-12-05 12:08:22 +04:00
530ab84b51 Merge pull request #86 from robins/pgsql_multi_select_range
Corrected minor typo that was causing pgsql to fail on select_random_xx tests
2016-12-05 11:07:22 +04:00
596a2079ec Bulk Insert works for postgres. Unlike MySQL, PostgreSQL doesn't take UNSIGNED integers. We could move this to BIGINT as well, but since this is a performance benchmark and since not many would reach the 2Billion mark, think we should be okay with INTEGER for now 2016-12-03 21:43:59 +00:00
4b1eda6b58 Revert "pgsql mode now works with Redshift server. Its working, but need to eventually split this to another Redshift section (because obviously this doesn't work with PGSQL any more)"
This reverts commit 23689175eb63f14c7b2e383f8adfad9ad6b4840f.
2016-12-03 21:02:17 +00:00
050fdd7f51 Merge branch '1.0' of github.com:robins/sysbench into 1.0 2016-12-03 21:01:56 +00:00
5b71151da2 Missing braces around an OR. The test (select_random_range) now works for pgsql 2016-12-03 13:24:57 +00:00
d0a85f999f Missing braces around an OR. The test (select_random_points) now works for pgsql 2016-12-03 13:22:05 +00:00
6ed28e2158 Attempt #4 to fix MacOS builds in Travis CI. 2016-12-03 12:13:27 +03:00
4b0a44c678 Fix obscure error with intermediate reports in tests that don't support them.
If a test did not support intermediate reports (i.e. --report-interval
or --report-checkpoints), there was a confusing (but benign) error at
the end of the test: "Terminating the reporting thread failed".
2016-12-02 22:06:47 +03:00
dd9df28ab3 Release memory allocated by command line options on exit. 2016-12-02 19:15:15 +03:00