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

keep track of more Gcstats #45191

Merged
merged 8 commits into from
Jun 1, 2022
Merged

keep track of more Gcstats #45191

merged 8 commits into from
Jun 1, 2022

Conversation

chflood
Copy link
Member

@chflood chflood commented May 4, 2022

Keep track of mark/sweep/TTSP (time to safepoint) times for reporting in benchmarks.

base/timing.jl Outdated Show resolved Hide resolved
src/gc.c Outdated
@@ -3067,6 +3074,7 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
}

// 3. walk roots
uint64_t start_mark_time = jl_hrtime();
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

We should be consistent and do this next to JL_PROBE_GC_MARK_BEGIN

@@ -3079,7 +3087,7 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
gc_num.since_sweep += gc_num.allocd;
JL_PROBE_GC_MARK_END(scanned_bytes, perm_scanned_bytes);
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

This should be endmark

@oscardssmith oscardssmith changed the title Gcstats keep track of more Gcstats May 4, 2022
@oscardssmith oscardssmith added the GC Garbage collector label May 5, 2022
@oscardssmith
Copy link
Member

Time to merge this?

src/gc.c Outdated Show resolved Hide resolved
base/timing.jl Outdated Show resolved Hide resolved
@chflood
Copy link
Member Author

chflood commented May 24, 2022 via email

Christine H. Flood and others added 2 commits May 27, 2022 16:04
@oscardssmith
Copy link
Member

merging tomorrow sans objections.

@oscardssmith oscardssmith merged commit 53338ca into JuliaLang:master Jun 1, 2022
@@ -18,9 +18,16 @@ struct GC_Num
full_sweep ::Cint
max_pause ::Int64
max_memory ::Int64
time_to_safepoint ::Int64
max_time_to_safepointp ::Int64
Copy link
Member

Choose a reason for hiding this comment

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

@chflood typo?

@chflood
Copy link
Member Author

chflood commented Jun 2, 2022 via email

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

Successfully merging this pull request may close these issues.

None yet

4 participants