erts: Make module and export table limits tunable - #11264
Conversation
CT Test Results 3 files 136 suites 50m 58s ⏱️ Results for commit e4d2f99. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
9f31602 to
716b215
Compare
|
Thank you for a comprehensive PR. However, I think it would be more useful if My suggestion is to insert a new commit first that changes the behavior of And then mimic |
|
Makes sense, and thanks! Do you want the |
|
Went ahead and opened #11364. |
|
#11364 has been merged to master. |
716b215 to
9156837
Compare
|
Thanks @sverker! I've updated this PR. |
Add the +zmml and +zmel emulator flags to set the maximum number of entries in the module_code and export_list loader index tables, raising the previously hardcoded MODULE_LIMIT (64K) and EXPORT_LIMIT (512K) caps. Expose the current limits and counts via erlang:system_info/1 with the new module_limit, module_count, export_limit and export_count keys, and document the flags and system_info keys. As with atom_limit, the reported limit is the effective one enforced by the underlying index table (the requested value rounded up to a whole number of pages).
9156837 to
e4d2f99
Compare
|
@naserca Thanks for the contribution. |
Add the +zmml and +zmel emulator flags to set the maximum number of entries in the module_code and export_list loader index tables, raising the previously hardcoded MODULE_LIMIT (64K) and EXPORT_LIMIT (512K) caps.
Expose the current limits and counts via erlang:system_info/1 with the new module_limit, module_count, export_limit and export_count keys, and document the flags and system_info keys.
Proposed here.