Paging problems

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Szabadember
Posts: 1
Joined: Mon Oct 31, 2005 12:00 am

Paging problems

Post by Szabadember »

I want to write a memory manager for my OS, but i don't know where to begin. Could anyone suggest me a good tutorial(not just theory)?
User avatar
carbonBased
Member
Member
Posts: 382
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Re: Paging problems

Post by carbonBased »

If you implement sbrk() or morecore() along with some other simple libc portions you can use dlmalloc as a plug-in memory manager. You'll probably want to implement paging first, though, and use a stack based page allocator.

--Jeff
vbbrett
Posts: 5
Joined: Sat May 07, 2005 11:00 pm

Re: Paging problems

Post by vbbrett »

Yeah, I was getting sick of theory before my Manager was finished! Like he said, put together paging first, yes it may complicate things a tiny bit when it gets to the coding, but it's worth it in the long run. Besides, it so simple to turn on and off and edit. Just make sure you don't let the OS access memory that is not free! You get the picture about mem access, I'm sure. After you get do that, check out the theory so that you know where you want to get to. First deal with the Paging.
Brett
Post Reply