These are some thoughts on the interaction between paging and garbage
collection that I thought I should get down into electrons and find out how
others react to them.

Assumptions:

(1) The mark phase of a garbage collector is not a particularly good paging
citizen. It has a fairly large working set, and is referencing many pages.
Many of the objects it needs to mark, while still live, are likely to be
not recently used. If it marks objects in the object representation itself,
it will also change the pages, requiring them to be written out.

(2) The sweep phase, depending on the details of the algorithm used, may
also visit a large number of pages, and may also modify those pages.


Observations:

(1) If the pager allows the garbage collector to reference objects on pages
that are about to be cleaned, or about to be removed from memory, it may be
possible to reduce the number of page faults caused by garbage collection.
How one might arrange this kind of interaction in CapROS or similar systems
is left as an exercise for the student. :-)

Cheers - Bill

---------------------------------------------------------------------------
Bill Frantz        |"After all, if the conventional wisdom was working, the
408-356-8506       | rate of systems being compromised would be going down,
www.periwinkle.com | wouldn't it?" -- Marcus Ranum

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
CapROS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/capros-devel

Reply via email to