Comments (9)
Thanks for reporting this bug.
@yapple and @ustcwelcome Please have a look on this.
from terarkdb.
@noobpwnftw good question. But that's not a bug.
The Seqreadwrite bench has a least one thread to do write operation, others thread do read operation . Read thread create a read iterator to read all data, and all read threads repeat that seqread operation num_operations times. You can know that by reading the bench code.
so, the faster the write rate, the more write data, the slower the bench rate.
Terarkdb does some little engineering optimizes on Skiplist implementation, so the write Skiplist speed is faster than Rocksdb. You can test that use -num_threads 1.
In conclusion, the bench is mystified, we will refine it in the future.
Thank you for your attention.
from terarkdb.
On my machine, Terarkdb's write rate is faster than RocksDB 8.5 times(12:1.4).
from terarkdb.
For concurrent tests, you need at least 2 threads(one thread is always writer in memtablerep_bench
, if -num_threads
is 1, seqreadwrite
test is the same as fillseq
.
from terarkdb.
For concurrent tests, you need at least 2 threads(one thread is always writer in
memtablerep_bench
, if-num_threads
is 1,seqreadwrite
test is the same asfillseq
.
Yes, we did the concurrent tests, and reproduce the hangs behavior.
But what I meaning is that the bench logic leads to the behavior.
the faster the write rate, the more write data, the slower the bench rate.
because TerarkDB writes so fast, so on this bench, we hang.
from terarkdb.
If it is so fast, how long does it take to write and scan 1000 record 10 times(as per given command)?
from terarkdb.
- The command's param num_operations means that scan all data num_operations times.
- the fill thread finish until the read thread finish, you can see from that code
ConcurrentFillBenchmarkThread
because the Skiplist supports multi versions, so the number of records will be far greater than 1000.
so, you can't use the benchmark to test the case like that write and scan 1000 records 10 times.
from terarkdb.
@noobpwnftw
./memtablerep_bench -benchmarks fillrandom,readseq
maybe you need this command.
from terarkdb.
This issue can be fixed like this:
class ConcurrentFillBenchmarkThread : public FillBenchmarkThread {
public:
ConcurrentFillBenchmarkThread(MemTableRep* table, KeyGenerator* key_gen,
uint64_t* bytes_written, uint64_t* bytes_read,
uint64_t* sequence, uint64_t num_ops,
uint64_t* read_hits,
std::atomic_int* threads_done)
: FillBenchmarkThread(table, key_gen, bytes_written, bytes_read, sequence,
num_ops, read_hits) {
threads_done_ = threads_done;
}
void operator()() override {
- // # of read threads will be total threads - write threads (always 1). Loop
- // while all reads complete.
- while ((*threads_done_).load() < (FLAGS_num_threads - 1)) {
+ for (unsigned int i = 0; i < num_ops_; ++i) {
FillOne();
}
}
from terarkdb.
Related Issues (20)
- compilation issue WITH_TESTS=OFF WITH_ZNS=OFF ./build.sh HOT 1
- customized terarkzip default options/options.cc modification. problem as mentioned HOT 4
- terarksql possible to opensource the storage engine? HOT 2
- can someone help make terarkzip default by checking what's wrong with this options.cc file?
- can someone pls provide the build.sh instructions for ubuntu 22.04 docker environment?
- another server with old installation of libterarkzip.a
- trying to use golang binding from grocksdb but realised that terarkzip option not available
- Is there memory growing issue like rocksdb do
- question about delete column family. HOT 7
- No Content in LOG file where using terarkdb in JNI HOT 2
- Is it possible to add switch to schedule TTL HOT 8
- for time based key, which is better? little endian or big endian for this patricia trie?
- May I know if TerarkFS support is done and can be tested?
- Ubuntu 22.04 compilation error
- how stable is terarkdb for production use? HOT 1
- About max subcompaction and blob size HOT 2
- is it possible to separately store l1 and l2 or l3 blob in different disks? HOT 1
- [BUG] example/simple_example.cc is out of date
- different prefix indexing strategies per ColumnFamilyOptions
- Does each key-value pair have a maximum capacity limit?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terarkdb.