-
Notifications
You must be signed in to change notification settings - Fork 486
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
curvebs: support 512 aligned IO #2538
Conversation
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
9a3df88
to
e848709
Compare
cicheck |
cicheck |
1 similar comment
cicheck |
cicheck |
return os; | ||
} | ||
|
||
// bool CheckFilePoolMetaWithOptions(const FilePoolOptions& options, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
src/client/service_helper.cpp
Outdated
fi->blocksize = finfo.blocksize(); | ||
} else { | ||
// for backward compatibility | ||
fi->blocksize = 4096; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fi->blocksize = kDefaultBlockSize?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
cicheck |
1 similar comment
cicheck |
// chunkfile. | ||
// Currently, we need to ensure the atomicity of the meta page update, so set | ||
// its size to 4k. | ||
constexpr size_t kChunkfileMetaPageSize = 4096; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should metaPageSize change when block size is 512?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta page size is fixed, and only a tiny portion of the meta page is used to store bitmap so that we will reduce the chunk size.
nebd::client::GetInfoResponse response; | ||
|
||
request.set_fd(fd); | ||
stub.GetInfo(cntl, &request, &response, nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get from part2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep
src/chunkserver/chunk_service.h
Outdated
@@ -114,6 +114,7 @@ class ChunkServiceImpl : public ChunkService { | |||
uint32_t maxChunkSize_; | |||
|
|||
std::shared_ptr<EpochMap> epochMap_; | |||
uint32_t align_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blockSize_?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
This reverts commit de2a121. Signed-off-by: Hanqing Wu <wuhanqing@corp.netease.com>
cicheck |
cicheck |
4 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
2 similar comments
cicheck |
cicheck |
Signed-off-by: Hanqing Wu <wuhanqing@corp.netease.com>
cicheck |
1 similar comment
cicheck |
What problem does this PR solve?
Issue Number: #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List