Re: Tcl under conditions of high memory usage.
- From: billposer@xxxxxxxxxxxx
- Date: Thu, 29 Nov 2007 15:42:04 -0800 (PST)
On Nov 29, 8:50 am, "Larry W. Virden" <lvir...@xxxxxxxxx> wrote:
What are some alternatives that the language might take in this case?
If doing something other than aborting on inability to get more memory
is important, one could use a memory manager that kept track of how
much memory it had left and sent an alert (in the case of tcl, I
suppose an event would be the most useful) when it got down to a
certain level. The event-handler could then take appropriate clean-up
action before shutting down, or, conceivably, free enough memory to
continue.
This is only possible, however, if the interpreter pre-allocates a
chunk of memory to work with - otherwise there is no way to know how
much is left. If it uses as the measure of "how much is left" what is
left in the system, it will be unreliable as another process may
acquire it in the meantime. An attempt to expand the arena could of
course be one of the actions attempted by the event-handler.
.
- Follow-Ups:
- Re: Tcl under conditions of high memory usage.
- From: miguel
- Re: Tcl under conditions of high memory usage.
- References:
- Tcl under conditions of high memory usage.
- From: neuronstorm@xxxxxxxxx
- Re: Tcl under conditions of high memory usage.
- From: Larry W. Virden
- Tcl under conditions of high memory usage.
- Prev by Date: Re: need help
- Next by Date: Re: Passing literal strings to Tcl_Eval.
- Previous by thread: Re: Tcl under conditions of high memory usage.
- Next by thread: Re: Tcl under conditions of high memory usage.
- Index(es):
Relevant Pages
|