hi there,
i have an idea of how to code my MM.
i will do it with a list of ram which is used and not.
but this list needs ram for it self.
i dont know how many of ram i should reserve for
this list or if there is a way to do that dynamicly....
some hints?
thanks.
Uni_Sol
need help for startup with my memmory manager
You could start by finding out how many memory the system has. Based on that number and your smallest allocation block, you can decide how large your list should be. For example, you can decide yo use 4K as smallest allocation unit (page frame size on the i386). Calculating how large that list of yours is would be:
List_size = (sys_mem_in_bytes / 4096) * sizeof(list_unit)
or something like this...
succes!
List_size = (sys_mem_in_bytes / 4096) * sizeof(list_unit)
or something like this...
succes!
- jerryleecooper
- Member
- Posts: 233
- Joined: Mon Aug 06, 2007 6:32 pm
- Location: Canada
Yeah, from what I understand the best way to do it is to just put the memory management information (bitmap, or what have you) at a specific address in memory that you will make a conscious effort to not stamp on. If you know the size already, this isn't too hard (just do the math before hand, if you know how much RAM is in the machine you should be able to figure out how much book keeping information is necessary, such as the size of the bitmap).