bfec6bd3d6
Fix PRNG seeding in sb_rand_thread_init().
2017-01-05 10:07:08 +03:00
daa763adba
-ldl belongs to LDADD, not LDFLAGS.
2017-01-05 07:49:29 +03:00
51ff4d685d
Add -ldl and -rdynamic to LDFLAGS when building with system Luajit as well.
2017-01-05 07:44:44 +03:00
8ae115c63b
Add -rdynamic to linker flags on Linux for bundled LuaJIT.
2017-01-04 21:13:36 +03:00
6c00399b10
Convert Lua interface to random numbers to FFI.
2017-01-04 20:22:14 +03:00
80f5c6a8f7
Changed bounded PRNG functions to uint32_t for easier FFI integration.
2017-01-04 19:19:20 +03:00
3c89312c6d
Fix cmd_help.t.
2017-01-04 18:31:26 +03:00
0df9342413
Correct help text for --rand-seed.
2017-01-04 17:50:22 +03:00
06636afb5e
Fix Homebrew + PostgreSQL woes again.
2017-01-04 17:28:24 +03:00
3372469fe6
Merge branch '1.0'
2017-01-04 17:27:48 +03:00
b4092bfb64
Merge pull request #99 from paulmenzel/fix-variable-type
...
Correct variable type
2017-01-04 18:20:46 +04:00
611dbce9a4
sb_logger: Correct variable type
...
Fix the warning below by declaring the variable `tmp` as a (signed)
integer.
```
sb_logger.c: In function ‘oper_handler_init’:
sb_logger.c:489:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (tmp < 0 || tmp > 100)
^
```
Correct the type as `sb_get_value_int()` returns an integer.
2017-01-04 14:45:27 +01:00
ff26f0ed57
Fix Homebrew + PostgreSQL woes again.
2017-01-04 15:00:44 +03:00
8ecd804d74
Use sb_rand_uniform_double() + FP arithmetic to generate bounded random values.
2017-01-04 14:59:59 +03:00
8966e583ed
Convert PRNG API to 64 bit.
2017-01-03 22:25:07 +03:00
6b3077f446
Fixes #27 : Provide portable reentrant PRNG
...
Replaced system-provided PRNG with xoroshiro128+. Minor cleanups in
random numbers API.
2017-01-03 21:00:45 +03:00
74938b7c83
Rename sb_rand() to sb_rand_default().
2017-01-03 10:23:33 +03:00
6391638744
Unify timer API naming.
2017-01-03 09:39:01 +03:00
1b91649457
Move all pseudo-random numbers related code to sb_rand.c
2017-01-02 22:25:23 +03:00
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