-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flex): Configure the memory strategy with memory-level. (#3511)
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.
- Loading branch information
1 parent
d7a0d93
commit 9a17e5c
Showing
15 changed files
with
89 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.