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

common: enforce page aligned memory #184

Merged
merged 18 commits into from
Jan 5, 2020
Merged

Conversation

ymjiang
Copy link
Member

@ymjiang ymjiang commented Dec 20, 2019

export BYTEPS_ENABLE_IPC=1 to enable high performance co-locate mode.

@@ -46,6 +45,8 @@ std::string BytePSGlobal::_trace_dir;
std::unordered_map<std::string, int> BytePSGlobal::_name2end;
int BytePSGlobal::_output_counter = 0;

int BytePSGlobal::_pagesize = 4096;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you get the page size from syscall instead of a hard-coded number?

@bobzhuyb bobzhuyb merged commit bb91039 into bytedance:master Jan 5, 2020
@ymjiang ymjiang deleted the page_align branch February 14, 2020 11:49
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

Successfully merging this pull request may close these issues.

2 participants