8 ms·
.NET Memory Performance Analysis
- curiousmindz 6y agoVery detailed list of recommandations. Do they apply to other Garbage-collection-based languages?
- qes 6y agoThe article is quite specific to the .Net garbage collector. Only some of the most general concepts touched on in the introductory sections apply to other garbage collected languages.
- kevingadd 6y agoIn particular as far as I know .NET's decision to segment things into 3 generations is pretty unusual.
- EdwardDiego 6y agoLooks broadly identical to JVM generations. Gen0 = eden space, Gen1 = survivor space, Gen2 = old gen (think they're calling it tenured now lol).
- r-bryan 6y agoUnless I'm creatively remembering, Dave Moon's EGC (Ephemeral Garbage Collector) in Symbolics Genera in 1985(?) had three generations.
- sbelskie 6y agoIf you read one person about dotnet, this is the person. If you read two, include David Fowler.
- manigandham 6y agoThere's a lot of great people in the .NET ecosystem, but I don't think GC internals are that relevant for most typical .NET devs.
- sbelskie 6y agoThere’s definitely more there than most .NET devs need to know, but I personally have found learning more about the GC to be incredibly relevant in my day to day work. I would have said the same thing a year ago, now I feel differently, but that is of course heavily inflected by my personal experience.
- jolux 6y agoSimilarly you might not expect that reading CLR via C# would make you a better programmer at a high level with things like DI and big frameworks and everything, but it makes you see what you're writing in an entirely different light. A whole other layer below the surface.
- deleted 6y ago[deleted]
- mdziadowiec 6y agoI recomend this book: https://www.apress.com/gp/book/9781484240267 https://www.apress.com/gp/book/9781484240267
- jonathanlydall 6y agoLast I used Apress, after placing the order they had writing at the bottom of the order confirmed page to the effect of: "We didn't ask for your permission, but regardless we've added you to our marketing email list and the only way to unsubscribe is to contact our customer service team." It's the first and last time I've used them.
- mdziadowiec 6y agoNever mind the Apress, the book is also available or Amazon or other bookstores. The material that this book covers is very impressive and the author knowledge even more, he has some of his womrshops/conference speaches available on yt
- mdziadowiec 6y agohttps://www.amazon.co.uk/gp/aw/d/148424026X/ref=dbs_a_w_dp_148424026x https://www.amazon.co.uk/gp/aw/d/148424026X/ref=dbs_a_w_dp_1... Btw its 1100pages long!
- thdrdt 6y agoShe has some video's on her YouTube channel about this topic as well: https://www.youtube.com/channel/UCk1EXxUVEKnPNV5gTAijSZg https://www.youtube.com/channel/UCk1EXxUVEKnPNV5gTAijSZg (cat included) I don't think they were linked from the document on github.
- danielbarla 6y agoHonest question here - does this document start at a point where you've already done some analysis, and decided that memory is your bottleneck, and memory profiling and optimisation is the way you want to go? Or is a generally accepted best practice to first do this anyways, and then move on to e.g. CPU profiling, regardless of being say CPU-bound? I've only skimmed the document, intending to read it later, but didn't see an answer to this. Where can I find more info? (I'm asking as someone who has done a fair bit of "performance work" but strictly at a higher level - by selecting more appropriate algorithms for the nature and size of data, minimising time spent waiting for network calls, etc, so it's rare that I have to dive very deeply in to "proper" performance work. But, I would like to learn more.)
- TruffleMuffin 6y agoPretty sure this is the person who is one of the architects on the Garbage Collector in NET.
- pjmlp 6y agoAnd a very good at it.
- danielbarla 6y agoI'm in no way questioning their expertise; I am simply asking if there's a step that comes before this document.
- ygra 6y agohttps://github.com/Maoni0/mem-doc/blob/master/doc/.NETMemoryPerformanceAnalysis.md#know-when-to-worry https://github.com/Maoni0/mem-doc/blob/master/doc/.NETMemory... probably answers your question.
- danielbarla 6y agoAh, excellent, thanks. I think this part is quite clear, also clarifying my related question, which is what the scope of this document would be: > When the relevant GC metrics says GC is having a small effect, it would be more productive to focus your effort elsewhere. If they indicate GC does have a big impact, this is when you should start worrying about how to do managed memory analysis, which is what the majority of this doc is about.
- miketlewis 6y agoAny suggestions for an equivalent for Java?