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

Unsure how to change VM options from config.hdf #1130

Closed
hydrogen18 opened this issue Oct 4, 2013 · 2 comments
Closed

Unsure how to change VM options from config.hdf #1130

hydrogen18 opened this issue Oct 4, 2013 · 2 comments

Comments

@hydrogen18
Copy link

Out of the box, HipHop VM wants 1.2 gigabytes of memory. This options are controlled by

./hphp/runtime/base/runtime-option.cpp:408:size_t RuntimeOption::VMTranslAHotSize   =   4 << 20;
./hphp/runtime/base/runtime-option.cpp:409:size_t RuntimeOption::VMTranslASize      = 32 << 20;
./hphp/runtime/base/runtime-option.cpp:410:size_t RuntimeOption::VMTranslAProfSize  = 32 << 20;
./hphp/runtime/base/runtime-option.cpp:411:size_t RuntimeOption::VMTranslAStubsSize = 32 << 20;
./hphp/runtime/base/runtime-option.cpp:412:size_t RuntimeOption::VMTranslGDataSize  = RuntimeOption::VMTranslASize >> 2;

As you can see I adjusted the values down to 32 megabytes and got HipHop VM to run on a minimal virtual machine. These values are in the RuntimeOption namespace, but I am not sure how to set them from config.hdf. Can someone document how to do this and what the impact of adjusting each value is?

@scannell
Copy link
Contributor

scannell commented Oct 4, 2013

Duplicate of #1129, we're talking about this there. b5163ad should tell you though. These are various JIT parameters -- sizes of translation structures where compiled code is cached. The defaults are what we tune for. It should work with these smaller but we have done no internal performance testing on minimal sizes.

@scannell scannell closed this as completed Oct 4, 2013
@hydrogen18
Copy link
Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants