Giter Club home page Giter Club logo

mem-doc's Issues

[Question] Server vs Workstation GarbageCollection Benchmark

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)

One line not show after markdown be rendered

I found this line not show when the markdown text rendered. Maybe by, I guess the Xml Tag not closed.

<GCEvent GCNumber="9" GCGeneration="0" Reason="AllocSmall">

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.

GC heap size vs committed

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?

Calculating allocations from GCHeapStats events

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.