Page 1 of 1
kmalloc
Posted: Tue Jan 25, 2005 5:59 am
by Balroj
Hi again,
I'm starting now to think about a memory manager to my os. Is there some good info about howto writing a kmalloc and the user side malloc?
I don't know where to start.
thanks for all.
Re:kmalloc
Posted: Tue Jan 25, 2005 6:56 am
by Solar
Google for dlmalloc, or Doug Lea's malloc. There's a website with some good material on how the innards of dlmalloc() work, which should give you some insight on kmalloc() too.
Re:kmalloc
Posted: Tue Jan 25, 2005 7:00 am
by Pype.Clicker
Re:kmalloc
Posted: Tue Jan 25, 2005 10:29 am
by Balroj
thank you guys.
A question about paggin, every process needs to have its own page directory? if yes, where to save them?
Re:kmalloc
Posted: Tue Jan 25, 2005 10:56 am
by Pype.Clicker
well, yes. With the exception of Single Address Space OSes, process get their own page directory. Most of the time (see exceptions in mystran tutorial), a process X don't need to map the directory of process Y, so all you need to keep is its physical address in your process structure: that'll be enough to switch threads once required.
Re:kmalloc
Posted: Tue Jan 25, 2005 11:52 am
by Balroj
thanks pype for your answear.
i'll now take a look to the you gave me and start working.
thanks once again for all