Re: [racket] garbage collection and process idling

2010-10-20 Thread Noel Welsh
Yes. This is something I think would be an interesting research project, along with a generalisation of weak refs. It's fairly simple to frame as a reinforcement learning problem. This is some work on this, but I think tech. has moved on in important ways since. N. On Sun, Oct 17, 2010 at 12:04 P

Re: [racket] garbage collection and process idling

2010-10-17 Thread Neil Van Dyke
Thanks for the info and ideas. Since my app is Web server-like, I suspect that the thing to do in the app for now to try to avoid GC delays when the app is non-idle (i.e., is servicing one or more requests) is to trigger a GC at the point that an app has been idle for N seconds. N might be 1

Re: [racket] garbage collection and process idling

2010-10-17 Thread Neil Van Dyke
Er, and maybe add to that scheduled GC strategy a sense of how worthwhile we think a GC might be at that time, so that we're not just doing, e.g., a GC 1 second after each request in a lightly-loaded system, potentially delay service to the next request when GC wasn't needed. Neil Van Dyke wro

Re: [racket] garbage collection and process idling

2010-10-16 Thread Jay McCarthy
On Sat, Oct 16, 2010 at 9:32 PM, Greg Hendershott wrote: > I thought I saw a thread devoted to calling collect-garbage > periodically, when I browsed the web-server code before ... but I > can't seem to find it again now. The command line version used to do that... I think. I routinely create suc

Re: [racket] garbage collection and process idling

2010-10-16 Thread Greg Hendershott
I thought I saw a thread devoted to calling collect-garbage periodically, when I browsed the web-server code before ... but I can't seem to find it again now. > Eventually, we should improve the collector (or replace it with a > better one) to support incremental collection. My recent (albeit lim

Re: [racket] garbage collection and process idling

2010-10-16 Thread Hendrik Boom
On Sat, Oct 16, 2010 at 07:24:42PM -0600, Matthew Flatt wrote: > At Sat, 16 Oct 2010 13:40:43 -0400, Neil Van Dyke wrote: > > Any thoughts on how, by default, timing of garbage collection cycles is > > affected by whether the process is "idle". > > > > For example, if non-GC threads are all waiti

Re: [racket] garbage collection and process idling

2010-10-16 Thread Matthew Flatt
At Sat, 16 Oct 2010 13:40:43 -0400, Neil Van Dyke wrote: > Any thoughts on how, by default, timing of garbage collection cycles is > affected by whether the process is "idle". > > For example, if non-GC threads are all waiting on events, might the > thread with GC be more likely to trigger a GC

[racket] garbage collection and process idling

2010-10-16 Thread Neil Van Dyke
Any thoughts on how, by default, timing of garbage collection cycles is affected by whether the process is "idle". For example, if non-GC threads are all waiting on events, might the thread with GC be more likely to trigger a GC at that idle time, rather than when some threads are working? R