-
Notifications
You must be signed in to change notification settings - Fork 211
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
Sandbox limits increase request for stm32 family crates #608
Comments
We're already having some trouble with OOM ... maybe it would be better to wait until #532 is merged. @pietroalbini what do you think? |
I think 5GB is fine. We have a 16GB of RAM machine, and the normal usage is around 4/5GB. Building multiple targets or a single one is not an issue, as we don't do any kind of parallel build. |
Any chance of getting these limits raised now that #632 is landed? I'll update the
At least the |
Sure thing, I can add that today. Sorry for the extended delay, thank you so much for only building on a single target! |
Just updated the memory limits for |
Brilliant, thank you! |
Crate name: stm32f1, stm32f4, stm32h7, stm32g4
Build failure link: stm32f1 stm32f4 stm32h7 stm32g4
Requested RAM limit: stm32f1: 4GB, stm32f4: 5GB, stm32h7: 8GB, stm32g4: 5GB
Requested timeout: existing 15min limit is OK
Why your crate needs the resource increases:
These crates all belong to the stm32-rs group of crates, which are "peripheral access crates" for embedded Rust projects using STM32 microcontrollers. The crates contain functions for accessing every hardware register on the relevant microcontroller, for all microcontrollers in a family (e.g. the STM32F4 family). Some families have many members or especially many hardware registers, so take a lot of memory to build.
I built all the crate docs in a local sandbox and measured memory usage, which is what the requested RAM limits above are based on:
At present we already use the docs.rs metadata field in Cargo.toml to select only a few device features for each crate. Ideally we would select every device so they are all documented, but this compromise helps reduce build time/disk space/memory required while still documenting the most popular devices. If it's possible to have slightly higher memory limits on more of the crates (e.g., 8GB for all the crates in the family), we could add more devices to be documented.
As an aside, if it were possible to only build these crates for a single platform (#532), that would be great: we don't emit anything different for the other platforms and it would presumably save a load of time and disk. I'm very aware that every release clogs up your build queue for a few hours!
Thank you so much for running this brilliant resource, I use docs.rs every day and it's incredibly useful.
The text was updated successfully, but these errors were encountered: