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

Log/Emit memory consumed during task run #11337

Open
JanKrivanek opened this issue Jan 24, 2025 · 0 comments
Open

Log/Emit memory consumed during task run #11337

JanKrivanek opened this issue Jan 24, 2025 · 0 comments

Comments

@JanKrivanek
Copy link
Member

Motivation

This is inspired by investigation with @pavelsavara on why there are OOMs during build - dotnet/runtime#111662
It is currently nontrivial to attribute the memory hitter (especially if notrivial amount of native allocations or pinning are involved as well). It would be nice if we could get some initial rough direction from binlog. But this might be interesting data for telemetry as well.

Idea

System.Diagnostics.Process and System.GC can be queried for a consumed memry before and after task execution - the diffs can then be attached to TaskExecutedEventArgs.

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

No branches or pull requests

1 participant