Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small question about GearDB with zonefs. #1

Open
yigexintaibuhaoderen opened this issue Jun 9, 2024 · 0 comments
Open

A small question about GearDB with zonefs. #1

yigexintaibuhaoderen opened this issue Jun 9, 2024 · 0 comments

Comments

@yigexintaibuhaoderen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant