Freeing pages
Posted: Thu Dec 30, 2004 2:25 pm
What is the best way to free to a process allocated page? Keeping a list of all page allocatins within the process would be quite big, but is it the way to go?
What if I share pages? Should I put a counter into my memory regions that counts how many processes have the region attached, and when it's zero I release all pages allocated?
Another design question, should I use my memory regions for all data? IE, when I create a new process, I also create a new memory region.
What if I share pages? Should I put a counter into my memory regions that counts how many processes have the region attached, and when it's zero I release all pages allocated?
Another design question, should I use my memory regions for all data? IE, when I create a new process, I also create a new memory region.