Giter VIP home page Giter VIP logo

tlbtree's People

Contributors

ypluo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tlbtree's Issues

Array bound problem in datagen.cc

Hello, I'm trying to run workload generated by /Single/test/gen.sh, but when runing workload1.txt (Random RO) I got output:

somthing not found

With some debugging codes added, I found an impossible line in workload1.txt:

0 0

After some more digging, I believe codes below caused the bug

void gen_workload(int64_t *arr, int64_t scale, QueryType * querys, WorkloadType w) {
std::mt19937 gen(getRandom());
std::uniform_int_distribution<int64_t> idx1_dist(0, scale);
zipfian_int_distribution<int64_t> idx2_dist(0, scale, w.skewness);
OperationGenerator op_gen(w);
for(int i = 0; i < w.operations; i++) {
OperationType op = op_gen.next();
int idx = (w.dist == RAND ? idx1_dist(gen) : idx2_dist(gen));
// for insert operations, we should make sure the key does not exist in the dataset
int64_t key = (op == OperationType::INSERT ? arr[idx] + getRandom(): arr[idx]);
querys[i] = {op, key};
}
}

According to cppreference for uniform_int_distribution (https://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution) and some simple test for zipfian_int_distribution, I found both distributions parameters a, b means [a, b] instead of [a, b), for which idx1_dist(0, scale); may lead to a return of scale and the bug appear for index out of bound.
It seems that modifying scale to scale - 1 can fix it.

Concurrent preload

There are some problem with concurrent TLBtree. Some key value pair are missing after concurrent preload.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.