none
About Garbage collector generation RRS feed

Answers

  • In garbage collector, why only 3 generations has been created ?

    More generations adds overhead to the system and makes it more complex.  Fewer generations provides less opportunity for fast collection.


    I suspect three generations was found to be the best balance of overhead vs. speed via a lot of testing.

     


    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    • Marked as answer by Paul Zhou Monday, September 26, 2011 8:18 AM
    Friday, September 16, 2011 6:23 PM
    Moderator
  • Why do you want more?

    Moani http://blogs.msdn.com/b/maoni/ has a lot of posts about why the GC is the way it is.

    • Marked as answer by Paul Zhou Monday, September 26, 2011 8:18 AM
    Friday, September 16, 2011 7:08 PM
  • You can read the book <CLR via C# Third Edition>--Chapter 21 Generations.

    It describe how and why CLR GC works with generations.

    Have a nice day.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Paul Zhou Monday, September 26, 2011 8:18 AM
    Monday, September 19, 2011 8:26 AM

All replies

  • In garbage collector, why only 3 generations has been created ?

    More generations adds overhead to the system and makes it more complex.  Fewer generations provides less opportunity for fast collection.


    I suspect three generations was found to be the best balance of overhead vs. speed via a lot of testing.

     


    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    • Marked as answer by Paul Zhou Monday, September 26, 2011 8:18 AM
    Friday, September 16, 2011 6:23 PM
    Moderator
  • Why do you want more?

    Moani http://blogs.msdn.com/b/maoni/ has a lot of posts about why the GC is the way it is.

    • Marked as answer by Paul Zhou Monday, September 26, 2011 8:18 AM
    Friday, September 16, 2011 7:08 PM
  • You can read the book <CLR via C# Third Edition>--Chapter 21 Generations.

    It describe how and why CLR GC works with generations.

    Have a nice day.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Paul Zhou Monday, September 26, 2011 8:18 AM
    Monday, September 19, 2011 8:26 AM