Code Monkey home page Code Monkey logo

geardb's People

Contributors

a993096281 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

geardb's Issues

A small question about GearDB with zonefs.

Hello, I encountered a small problem while reproducing GearDB with zonefs. I created zonefs on an Ubuntu 20.04 system with kernel version 5.15 and mounted it to the /mnt/zonefs directory, which contains 4 conventional zones (cnv) and 12 sequential zones (seq).
Before compiling GearDB, I set the following:

static const char smr_filename[]="/mnt/zonefs/seq"; 
*zonenum = 16;
*first_zonenum = 4;

After running ./out-static/db_bench, an error occurred:

ret=126976
write_size=8433664
error:126976 hm_write failed! table:5 write_size:8433664
error:no find file:5
Segmentation fault (core dumped)

After troubleshooting, I found the cause:

In ssize_t HMManager::hm_write, the return value of pwrite is inconsistent with write_size. According to my understanding, pwrite calls the POSIX interface and ultimately calls zonefs_file_dio_append in zonefs for the write operation. However, in this function, the value of size = bio->bi_iter.bi_size is not equal to write_size. I don't understand why this is the case.

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.