maoni0 / mem-doc Goto Github PK
View Code? Open in Web Editor NEWThis is a document to help with .NET memory analysis and diagnostics.
This is a document to help with .NET memory analysis and diagnostics.
Hi is there a template to follow to benchmark the performance difference between Server vs Workstation GarbageCollection for aspnet core applications ?
we experienced out-of-memory events with Server GarbageCollection, and using Workstation GarbageCollection "should" reduce memory usage, but need to collect the metrics as some of us insists NOT to use workstation GC
(for context we have 30 aspnet core app in Kubernetes with total of about 8 vCPU)
I found this line not show when the markdown text rendered. Maybe by, I guess the Xml Tag not closed.
mem-doc/doc/.NETMemoryPerformanceAnalysis.md
Line 944 in f2dee5e
Should we mark these lines as code block like:
<GCEvent GCNumber="9" GCGeneration="0" Reason="AllocSmall">
<GlobalHeapHistory **FinalYoungestDesired="9,830,400"** NumHeaps="12"/>
But FinalYoungestDesired="9,830,400"
in the code block not bold.
In the last sentence of the following paragraph, I get into some confusion:
https://github.com/Maoni0/mem-doc/blob/master/doc/.NETMemoryPerformanceAnalysis.md#special-handling-of-the-ephemeral-segment
it means this difference can be large, e.g., if there are 32 heaps and each heap has a 50 MB gen0 budget and you look at the heap size right after a GC, the size you see is going to be (32 * 50 = 1.6 GB) less than the committed bytes.
a few lines above it says the gen0 budget will be committed, but my understanding is that the "heap size" term would include "free objects" or in other words all committed memory. So shouldn't the heap size always refer to more than the committed?
Is it possible to figure out total allocations purely from looking at GCHeapStats? I would like to be able to use GCHeapStats to know how much memory was allocated during a certain time period.
I am using TraceEventSession
to get the data. In particular, I was not expecting to see multiple records with Gen0 unchanged. I was under the impression GCHeapStats happened after each collection therefore I expected Gen0 to always be collected and change.
FinalizationPromotedBytes | FinalizationPromotedCount | Generation | Generation0Bytes | Generation1Bytes | Generation2Bytes | Generation3Bytes | Generation4Bytes | PinnedObjectCount | SinkBlockCount | TotalHeapSizeBytes | TotalPromoted0Bytes | TotalPromoted1Bytes | TotalPromoted2Bytes | TotalPromoted3Bytes | TotalPromoted4Bytes | TotalPromotedBytes |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3360 | 21 | 2 | 78729160 | 3482248 | 21868696 | 15269320 | 0 | 0 | 60 | 119349424 | 3359000 | 359864 | 18712624 | 4817288 | 0 | 27248776 |
3360 | 35 | 2 | 78729160 | 3482248 | 21868696 | 15038408 | 0 | 0 | 60 | 119118512 | 3359000 | 359864 | 18712624 | 5667896 | 0 | 28099384 |
36636 | 45 | 2 | 47662456 | 4855672 | 24150720 | 13164024 | 0 | 0 | 57 | 89832872 | 4837904 | 944528 | 22425736 | 5954736 | 0 | 34162904 |
I noticed that some translations were not very accurate or idiomatic. Is there any plan to improve the translation quality of the Chinese version? Or would you mind if someone else submits PRs to help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.