-
Notifications
You must be signed in to change notification settings - Fork 198
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 #1179
Comments
At some point I'd like to investigate why rustdoc is taking up so much memory ... are you seeing the same memory usage when compiling normally? Or only with |
How can I reproduce the build locally? I tried
|
Just stepped away from my computer but try checking out https://github.com/stm32-rs/stm32-rs-nightlies which contains the prebuilt code and is what I used to get the memory benchmark; cargo doc should just work there. |
I took a profile and almost a full gigabyte of that comes from |
Some more discussion of this in https://rust-lang.zulipchat.com/#narrow/stream/247081-t-compiler.2Fperformance/topic/Tools.20for.20measuring.20memory.20usage.3F in case you're curious. |
Thanks for looking into it! If you want an even worse case, the stm32h7 crate needs over 7GB of RAM to document.. with three out of seven possible features enabled. It's exciting to hear there might be a way to make rustdoc more efficient for these types of crates, though. |
I raised the sandbox limit in the meantime, since this will take a while to fix on rustdoc's end. I also requeued the failed crates so you don't need to make another release. I'll open an issue about the rustdoc memory usage shortly and ping you on it. |
Crate name: stm32f3, stm32f7, stm32g0, stm32l5
Build failure link: stm32f3, stm32f7, stm32g0, stm32l5
Requested RAM limit: 6GB
Requested timeout: 15min
Requested number of targets: 1
Why your crate needs the resource increases:
As with #1037 and #608, these device crates document a large number of registers and so require a lot of RAM to build. For these crates we used to just squeeze in under the 3GB limit, but I now measure 3.25, 3.29, 3.03, and 3.22GB RAM usage respectively. I think 4GB would just be enough but to line up with the other crates in this family I've requested 6GB which hopefully gives us a bit more headroom.
The stm32g0 crate won't build even with the increased memory limit because an error in its Cargo.toml documents the wrong features; this will be fixed in the next release but it still requires the increased memory limit.
As ever thanks for running this incredibly useful service!
The text was updated successfully, but these errors were encountered: