Puzzle: Adding domain-based security to Squeak.

Michael van der Gulik squeakml at gulik.co.nz
Sat Aug 5 11:10:33 UTC 2006


Michael van der Gulik wrote:
> Hi all.
> 
> Here's a generic problem for people that like puzzles that I can't seem 
> to work out: I want to add "Domains" to Squeak, so that system resources 
> can be managed.
> 
> Here's how it would work, in theory:
> 
> * A domain would typically be a group of objects related to a particular 
> application.
> * Every object belongs to a domain.
> 
> And then:
> 
> - A domain's memory usage can be capped. Object>>new would be 
> implemented so that it would wait for free memory or throw an Exception 
> if the memory cap has been breached.

Finding total memory usage for a Domain seems to be pretty difficult.

There's a PointerFinder class which would work if every object in a 
domain had a reference to that domain, but that looks expensive.

If I did domains by assigning a domain to each Process, then memory 
usage per domain would be impossible to calculate.

Back to the drawing board... VM hacking might be needed :-(.

Michael.




More information about the Squeak-dev mailing list