Hi,
On modern MINIX, the difference between memory allocation mechnisms doesn't really apply anymore as almost all allocations can be filled with non-contiguous ranges of pages. Contiguous allocations have become rare and are usually small, so memory fragmentation shouldn't usually be an issue anymore.
This sounds like a homework exercise, in which case the intention was probably for you to work with an older version of MINIX that did allocate memory contiguously. I recommend you contact the course supervisor to ask which version of MINIX you are supposed to be using.
With kind regards,
Erik
Op zaterdag 3 november 2012 21:01:24 UTC+1 schreef Chirag Choudhary het volgende:
hi,
I was trying to change the memory allocation algorithm from first fit to best fit in minix 3.2.0 So i need some help understand a few things.
In the VM server in alloc.c file ( /usr/src/servers/vm/alloc.c ) 1.in the function alloc_pages :- why is PAF_LOWER1MB and PAF_LOWER16MB used simultaneously
2: and why are boundary16 and boundary1 used simultaneously.
Also what is the significance and use of these variables ?
Regards,
Chirag Choudhary