Skip to content

start storing peak-memory-usage in builds table#3299

Open
syphar wants to merge 1 commit intorust-lang:mainfrom
syphar:used-memory
Open

start storing peak-memory-usage in builds table#3299
syphar wants to merge 1 commit intorust-lang:mainfrom
syphar:used-memory

Conversation

@syphar
Copy link
Copy Markdown
Member

@syphar syphar commented Apr 16, 2026

for now it's just the max of all sub-builds (all targets, json builds), I think that is what we and the authors would need most of the time.

Theoretically we could emit log entries with more details, but I want to think about that longer.

Use case for us and authors is mostly to be able to judge what memory limit is needed in the sandboxes.

First just store, then we look at it, UI later.

@syphar syphar requested a review from a team as a code owner April 16, 2026 03:28
@syphar syphar marked this pull request as draft April 16, 2026 03:28
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Apr 16, 2026
@syphar syphar self-assigned this Apr 16, 2026
@syphar syphar changed the title WIP: store peak memory usage in builds table store peak memory usage in builds table Apr 16, 2026
@syphar syphar changed the title store peak memory usage in builds table start storing peak-memory-usage in builds table Apr 16, 2026
@syphar syphar marked this pull request as ready for review April 16, 2026 04:22
use tracing::{debug, error, info, info_span, instrument, warn};

#[derive(Default)]
struct ProcessStatistics(RustwideProcessStats);
Copy link
Copy Markdown
Member Author

@syphar syphar Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could get rid of this NewType with rust-lang/rustwide#122

View changes since the review

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should do that first? Lot of trait impls for conversions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not critical, if you agree that this has a place in rustwide, we should do that :)

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

Labels

S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants