Guus Bosman

software engineering director

You are here


Minix memory compaction

Yesterday afternoon I got the basic technology right, now I'm working on a policy. The goal of the exercise is: implement memory compaction. It's not extremely specific though about what is considered memory compaction, so I have to find a good policy myself. I'm now thinking about this: fetch a hole (start with first one, lowest in memory). If this is imediately followed by a process, this process should be moved (slided down), and the current hole size = hole size - proc. size. If the hole is not followed by a process (for example next to the BIOS or shadowed ROM area), see if the next thing it's followed by it a hole, and copy it (when it fits) -- no sliding thus. If copied: hole size = hole size - proc size, else hole++.

Recent comments

Recently read

Books I've recently read: