-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Reduce stage1 peak memory usage to within 3.5 GiB #471
Comments
I've just checked this on the current latest master to get some more actionable results: In summary the following tests were the most memory intensive. I did not hit anywhere near 4Gb, but with other things running on the system at the same time it isn't unlikely to hit that.
time -v1539.64Mb
MassifThis seems incorrect and reporting too low.
Manual \w HtopJust to confirm I watched a run using htop. Start: 2.66Gb Notable peaks were 3.54Gb during |
There are a lot of memory inefficiencies in the c++ compiler which I never really expect to fix. However I do want to keep the self hosted compiler memory efficient. I'm also considering having a feature where you can upper bound the memory and it would utilize disk space beyond that. |
I added Here is what I observe with
I'm going to clarify the requirements of stage1 here: the goal is to get stage1 memory usage down to 3.5 GiB peak for the entire test suite. The reasoning for this is straightforward: 4 GiB is how much RAM we want zig to require a CI server to have. We leave 0.5 GiB for the base system and 3.5 peak for all the tests - including building the self-hosted compiler. This number is significant because it is the memory requirement of bootstrapping. Once this goal is accomplished we could use something like |
Duplicate of #6485 |
No description provided.
The text was updated successfully, but these errors were encountered: