←
Maoni Stephens2,491 posts
Maoni Stephens avatar

Maoni Stephens

@maoni0

loves working on dotnet GC and other perf stuff; avid zoo-goer; wannabe hiphop dancer. old blog devblogs.microsoft.com/dotne…

◷ Joined April 2019▧ 119 Photos and videos
Maoni Stephens avatar
Maoni Stephens@maoni0·15 Feb 2024

recently we worked with a team that specified only the provider name in dotnet-trace without keywords/level. dotnet-trace will include ALL keywords on VERBOSE level. this can easily degrade perf. DotNETRuntime provider will also induce GCs (due to the GCHeapCollect keyword).

Maoni Stephens avatar
Maoni Stephens@maoni0·12 Feb 2024

profiling tip - if you upgrade to a newer version of a product and observe perf regression, make sure to grab some perf traces before you revert (if you revert all usage and can't easily get traces later). without comparative traces the investigation will be much harder

Maoni Stephens avatar
Maoni Stephens@maoni0·12 Feb 2024

if you use PerfView, have you noticed the GCTriggeredStacks cmd arg? to see callstacks for induced GCs, use this lightweight commandline - PerfView /GCCollectOnly /GCTriggeredStacks /nogui collect (this is less verbose than what mem-doc currently shows)

Maoni Stephens avatar
Maoni Stephens@maoni0·6 Feb 2024

if I could only give one piece of advice to folks who need to do memory perf analysis, it would be to learn to use traces. tracing has existed for multiple decades and I still come across folks who need to do memory analysis and never use it. it really is a loss on productivity.

Maoni Stephens avatar
Maoni Stephens@maoni0·20 Nov 2023

very cool visualization tool to show case GC activities -

Kevin Gosse@KooKiz19 Nov 2023

In preparation for my talk at @update_conf, I've prepared a tool to visualize the activity of the GC. It was initially meant as a gimmick, but it turns out to be a good way to understand some GC mechanisms. For instance, here you can see the effect of DOTNET_GCDynamicAdaptationMode=1 on the lower side, dynamically scaling up the number of heaps to absorb a spike of traffic, then scaling back down. The top application is running with default settings. Both are receiving the same traffic. #dotnet #progc2

0:45
Maoni Stephens avatar
Maoni Stephens@maoni0·24 Aug 2023

what's new in the .NET 8.0 GC? we focused on solving the Server GC problem where it keeps too much memory around. the new DATAS feature aims to keep the memory usage much more in line with what your app requires. maoni0.medium.com/dynamicall…

Maoni Stephens avatar
Maoni Stephens@maoni0·12 May 2023

2nd edition of the Pro .NET Memory Management book is coming🙂

I am thrilled to announce that we've begun work on the Second Edition of Pro .NET Memory Management, with the awesome @chnasarre and @KooKiz as co-authors! Let's upgrade those 1000+ pages about memory for .NET 7 and beyond, all under the watchful eye of reviewer @maoni0 👀

Post attachment
Maoni Stephens avatar
Maoni Stephens@maoni0·22 Mar 2023

it was awesome to test GC changes directly on machines that took forked production traffic (they don't affect production but we can see real effect of GC changes)

Maoni Stephens avatar
Maoni Stephens@maoni0·22 Mar 2023

"in testing we saw about a 24% average improvement in the amount of time the process spends in GC (which isn’t much to start with). In production, it was even better, closer to 30%."