Real-time GC

  • Thread starter Thread starter Dirk Remans
  • Start date Start date
D

Dirk Remans

Hi,

Can somebody help me with theory and practice of automatic garbage
collection. The greatest problem is that for some programs, the GC takes
some time.

Thx
 
Some time before collection or durign collection?
Hi,

Can somebody help me with theory and practice of automatic garbage
collection. The greatest problem is that for some programs, the GC takes
some time.

Thx

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Hello Dirk,

You can use GC.Collect and GC.AddMemmoryPressure to tune when GC should start
works.
But, I guess you can't change the cost of GC gens, because when GC starts
collect garbage it freezes all threads - u can't interupt this process.
Everything you can do is to change the GC gen threshold - you need to use
C++ and CLR SDK - IGC* interfaces

What the reasont to bother about cost of GC? Gen0 takes up to 10ms, get1
takes 10-30ms - it's rather acceptably

DR> Both, before and during GC.
DR>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

GC time 2
how can I disable GC for a third of a second 4
Form GC question 3
Garbage collection question 1
unsafe and GC 5
A re-announce on GC's defects 62
stop the GC 12
Urgent - on site with GC problem! 6

Back
Top