Paweł Dziepak
486e0d8740
tests/perf: add microbenchmarks for memtable reader
2018-01-30 18:33:25 +01:00
Vladimir Krivopalov
ebdcffab1a
Add performance tests for large partition slicing using clustering keys.
...
Signed-off-by: Vladimir Krivopalov <vladimir@scylladb.com >
2018-01-29 11:56:35 -08:00
Piotr Jastrzebski
a944a1f7f1
perf_fast_forward: delete unused consume_all
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
93355372a0
perf_fast_forward: use flat reader in test_forwarding_with_restriction
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
252909c8ab
perf_fast_forward: use flat reader in slice_partitions
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
7d082e6ea7
perf_fast_forward: use flat reader in slice_rows_single_key
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
177aa88dc1
perf_fast_forward: use flat reader in test_reading_all
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
899e471222
perf_fast_forward: use flat reader in slice_rows
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
e66c73839e
perf_fast_forward: add consume_all_with_next_partition
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
b9bfa49088
perf_fast_forward: use flat reader in scan_with_stride_partitions
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
f75c58915d
perf_fast_forward: use flat reader in scan_rows_with_stride
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
52021dc605
perf_fast_forward: add assert_partition_start
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
Piotr Jastrzebski
5c213b9cbc
perf_fast_forward: add consume_all(flat_mutation_reader&)
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:48 +01:00
José Guilherme Vanz
380bc0aa0d
Swap arguments order of mutation constructor
...
Swap arguments in the mutation constructor keeping the same standard
from the constructor variants. Refs #3084
Signed-off-by: José Guilherme Vanz <guilherme.sft@gmail.com >
Message-Id: <20180120000154.3823-1-guilherme.sft@gmail.com >
2018-01-21 12:58:42 +02:00
Paweł Dziepak
f6434c9941
tests/perf: add microbenchmarks for the combined reader
...
Message-Id: <20180111120153.3911-1-pdziepak@scylladb.com >
2018-01-15 17:49:47 +02:00
Raphael S. Carvalho
e29b598c5f
sstables: make compaction_descriptor's ctor explicit to avoid bad conversion
...
perf sstable used old sstables::compact_sstables() interface and still compiled
due to bad implicit conversion.
Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com >
Message-Id: <20180103041900.21186-1-raphaelsc@scylladb.com >
2018-01-03 12:37:12 +02:00
Raphael S. Carvalho
2a7eaa4933
tests:perf: add compaction mode to perf_sstable
...
Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com >
Message-Id: <20171209175759.7769-1-raphaelsc@scylladb.com >
2018-01-02 10:16:13 +01:00
Piotr Jastrzebski
570703a169
read_mutation_from_flat_mutation_reader: don't take schema_ptr
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2017-12-21 11:47:07 +01:00
Paweł Dziepak
8b3c3fc832
db: make column_family::make_reader() return flat reader
2017-12-13 12:01:03 +00:00
Raphael S. Carvalho
de19e7d942
tests:perf: make perf_sstable write mode work again
...
Recently, memtable flush in test requires storage service for tests,
or it fails with "Assertion `local_is_initialized()' failed".
storage_service_for_tests needs to run in a thread, that's why
flush_memtable was flattened.
Last but not least, we need to revert flushed memory account because
same memtable is used for all sstables in the perf test so as not
to trigger `_mt._flushed_memory <= _mt.occupancy().used_space()'
Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com >
Message-Id: <20171205012853.21559-1-raphaelsc@scylladb.com >
2017-12-05 10:18:53 +02:00
Jesse Haber-Kucharsky
fb0866ca20
Move thread_local declarations out of main.cc
...
Since `disk-error-handler.hh` defines these global variables `extern`,
it makes sense to declare them in the `disk-error-handler.cc` instead of
`main.cc`.
This means that test files don't have to declare them.
Fixes #2735 .
Signed-off-by: Jesse Haber-Kucharsky <jhaberku@scylladb.com >
Message-Id: <1eed120bfd9bb3647e03fe05b60c871de2df2a86.1511810004.git.jhaberku@scylladb.com >
2017-11-27 20:27:42 +01:00
Piotr Jastrzebski
571bac7336
perf_sstable: use read_rows_flat instead of read_rows
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2017-11-22 15:48:57 +01:00
Piotr Jastrzebski
ea449c9cce
Replace sstables::mutation_reader with ::mutation_reader
...
This will make migration to flat_mutation_reader much
easier and sstables::mutation_reader is going away with
this migration anyway.
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2017-11-15 10:40:01 +01:00
Tomasz Grabiec
2e96069f2f
tests: perf_cache_eviction: Switch to time-series like workload
...
Before the patch we appended and queried at the front. Insert at the
front instead, so that writes and reads overlap. Stresses eviction and
population more.
Message-Id: <1506369562-14892-1-git-send-email-tgrabiec@scylladb.com >
2017-11-03 13:45:41 +00:00
Duarte Nunes
1f4e6759a7
tests: Fix compile errors introduced in c468e5981
...
Signed-off-by: Duarte Nunes <duarte@scylladb.com >
Message-Id: <1508337315-8224-1-git-send-email-duarte@scylladb.com >
2017-10-18 16:38:18 +01:00
Duarte Nunes
baeec0935f
Replace query::full_slice with schema::full_slice()
...
query::full_slice doesn't select any regular or static columns, which
is at odds with the expectations of its users. This patch replaces it
with the schema::full_slice() version.
Refs #2885
Signed-off-by: Duarte Nunes <duarte@scylladb.com >
Message-Id: <1507732800-9448-2-git-send-email-duarte@scylladb.com >
2017-10-17 11:25:53 +02:00
Paweł Dziepak
d9abb75bfa
tests/perf_simple_query: fix counter update query
...
Message-Id: <20171016125334.4423-1-pdziepak@scylladb.com >
2017-10-16 19:41:31 +02:00
Botond Dénes
046a1f9b05
sstables: Get rid of [[deprecated]] index_reader::get_index_entries()
...
Change test code (the only consumers) to read index by partitions.
Signed-off-by: Botond Dénes <bdenes@scylladb.com >
Message-Id: <b6111e92b5e0729bfa2e76fd848215804174067a.1507297154.git.bdenes@scylladb.com >
2017-10-08 12:18:52 +03:00
Tomasz Grabiec
f506339582
tests: perf_fast_forward: Auto-create test directory
...
To avoid exception due to missing directory.
Message-Id: <1506081627-12933-1-git-send-email-tgrabiec@scylladb.com >
2017-10-03 15:36:37 +03:00
Tomasz Grabiec
3eb251e3a4
tests: perf_fast_forward: Fail if ran with more than one shard
...
The test reads only from local shard, if ran with more shards,
current shard will miss some of the data.
Message-Id: <1506081609-12811-1-git-send-email-tgrabiec@scylladb.com >
2017-09-26 15:23:10 +03:00
Tomasz Grabiec
804722b6c8
tests: perf_fast_forward: Fix use-after-scope on partition range
...
Message-Id: <1505489249-16806-1-git-send-email-tgrabiec@scylladb.com >
2017-09-15 16:34:41 +01:00
Avi Kivity
f7023501d6
treewide: use shared_sstable, make_sstable in place of lw_shared_ptr<sstable>
...
Since shared_sstable is going to be its own type soon, we can't use the old alias.
2017-09-12 10:43:05 +03:00
Avi Kivity
fdab47ab32
perf_fast_forward: add missing include
2017-09-12 10:43:05 +03:00
Avi Kivity
9b540eccb0
database: remove dependency on compaction.hh and compaction_manager.hh
2017-09-11 20:09:45 +03:00
Botond Dénes
9ebeb9d5ce
Fix --Wreturn-type warnings in tests: use abort() instead of assert(0)
...
Signed-off-by: Botond Dénes <bdenes@scylladb.com >
Message-Id: <95927f933411302e84d57d169ee0147def7bc643.1504890922.git.bdenes@scylladb.com >
2017-09-10 17:09:53 +03:00
Tomasz Grabiec
ac7e6ef1bc
tests: Introduce perf_cache_eviction
2017-07-27 17:19:07 +02:00
Duarte Nunes
1622847c1d
perf/perf_fast_forward: Don't pass non-pod to varargs function
...
Passing a Non-POD object to variadic functions is unsupported.
Signed-off-by: Duarte Nunes <duarte@scylladb.com >
Message-Id: <20170726094756.22867-1-duarte@scylladb.com >
2017-07-26 11:48:22 +01:00
Paweł Dziepak
823fb5e9d8
perf_fast_forward: use consumer interface for reading streamed_mutation
...
Using streamed_mutation::operator() is undesirable as it introduces an
indirect call and a continuation overhead for each emitted mutation
fragment. Consumer interface is the preferred method of reading streamed
mutations.
2017-07-20 11:02:53 +01:00
Paweł Dziepak
d184508d7b
perf_fast_forward: allow running only selected test groups
2017-07-20 11:02:31 +01:00
Paweł Dziepak
a18a36c94b
perf_fast_forward: move tests groups to separate functions
2017-07-20 09:26:42 +01:00
Paweł Dziepak
3fd4f9c1c7
perf_fast_forward: move global state to global scope
...
All test perf_fast_forward test cases currently live in the main
function. This patch moves the state they rely on to a global scope
so that it will be easier to extract these tests to individual
functions.
2017-07-20 09:26:42 +01:00
Tomasz Grabiec
a5fdff2ac2
row_cache: Add partition_ prefix to current counters
...
In preparation for adding per-row counters.
2017-07-04 13:55:06 +02:00
Avi Kivity
555621b537
Disentable memtables from sstables
...
Remove sstable::write_components(memtable), replacing it with a helper.
Fixes #2354
Message-Id: <20170624142639.16662-1-avi@scylladb.com >
2017-06-26 09:37:11 +02:00
Avi Kivity
672de608bf
tests: fix call to seastar::sleep()
...
It's not in the global namespace.
2017-06-22 18:16:13 +03:00
Etienne Kruger
be0a947596
tests: perf_simple_query: Add delete perf test
...
Add a performance test for deletion in addition to the existing update
and query tests. The deletion performance test is executed using the
'--delete' argument to perf_simple_query.
Fixes #2417 .
Signed-off-by: Etienne Kruger <el@loadavg.io >
Message-Id: <20170615232500.26987-1-el@loadavg.io >
2017-06-16 14:51:00 +01:00
Avi Kivity
ebaeefa02b
Merge seatar upstream (seastar namespace)
...
- introcduced "seastarx.hh" header, which does a "using namespace seastar";
- 'net' namespace conflicts with seastar::net, renamed to 'netw'.
- 'transport' namespace conflicts with seastar::transport, renamed to
cql_transport.
- "logger" global variables now conflict with logger global type, renamed
to xlogger.
- other minor changes
2017-05-21 12:26:15 +03:00
Tomasz Grabiec
777ffa3a27
tests: perf_fast_forward: Report cache stats
2017-05-17 14:15:14 +02:00
Tomasz Grabiec
7a81f5e980
tests: perf_fast_forward: Add cache-specific tests
2017-05-17 14:15:14 +02:00
Tomasz Grabiec
1a7b03004a
tests: perf_fast_forward: Extract test_reading_all()
2017-05-17 14:15:14 +02:00
Tomasz Grabiec
a38fd16f89
tests: perf_fast_forward: Add validation of the results
2017-05-17 14:15:14 +02:00