On Mon, Dec 21, 2009 at 01:52:23AM -0800, Stickman wrote: > > That's not how demand-paged virtual memory works. > > Is it possible to make a system that does? > > I kinda like the idea. It's basically what we have now, except with a > smart system that decides what swaps and what uses RAM.
I already commented on this before imho... Yes it is possible to run scripts that are on harddisk; although I'm not sure you can use a part of the OS that easily to achieve it. Imho, you could let a script run for 1 ms (100 scripts at a time) every 3 seconds, only using 6.4 MB of RAM that is refreshed from disk (with 100 next scripts) every 100 ms. However... I'm not really convinced that this is worth it. The only reason to allow scripts to run that way is to let them shut down gracefully imho. One could add a new state to LSL (ie, stasis) and switch scripts to that state while they are swapped out like that. Scripts without this state would just halt till they are restored to normal memory. The talk that I see about objects being returned... I don't know where that comes from. Why would you want to return objects? That seems too annoying. Let the prim accounting take care of that. Scripts that cannot run anymore should just stop running, not cause objects to be returned of course. Of course, you could choose to add a line to the stasis state that returns the object, if you wish... -- Carlo Wood <ca...@alinoe.com> _______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/SLDev Please read the policies before posting to keep unmoderated posting privileges