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

feat(flex): Configure the memory strategy with memory-level. #3511

Merged
merged 5 commits into from
Jan 26, 2024

Conversation

luoxiaojian
Copy link
Collaborator

Passing parameter "--memory-level=n" to rt_server to configure memory allocation strategy.

  • n = 0: memory allocation will be mmap to files in SHARED mode. Suitable for scenarios with severe memory constraints.
  • n = 1: memory allocation will be mmap to files in PRIVATE mode. The modified parts in the storage cannot be swapped to disk; if the modified portions become too large, it may lead to a crash due to insufficient memory.
  • n = 2: the storage of certain data will utilize hugepages, which can enhance the system's throughput. However, the portion using hugepages will be fixed in memory usage, and hugepages require static allocation.
  • n = 3: the storage of all data will endeavor to make use of hugepages as much as possible.

zhanglei1949
zhanglei1949 previously approved these changes Jan 26, 2024
liulx20
liulx20 previously approved these changes Jan 26, 2024
@luoxiaojian luoxiaojian dismissed stale reviews from liulx20 and zhanglei1949 via 8e182fb January 26, 2024 10:55
@luoxiaojian luoxiaojian merged commit 9a17e5c into alibaba:main Jan 26, 2024
34 of 35 checks passed
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.

None yet

3 participants