Kernel & User space

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.
grasper

Kernel & User space

Post by grasper »

What is better?
512MB for kernel and other for user or 1GB and other for user?
User avatar
Kevin McGuire
Member
Member
Posts: 843
Joined: Tue Nov 09, 2004 12:00 am
Location: United States
Contact:

Re:Kernel & User space

Post by Kevin McGuire »

If it is for testing purposes just to get you're OS up and running some then I would go with 512MB for kernel. If its a design you want to keep then I would go with 512MB for kernel still. I don't forsee the kernel needing more space than that for it-self and drivers if they run in kernel mode.

I would recommend using a dynamic way of allocating memory for the kernel that can be adjusted on the fly when needed. You are going to run into performance issues testing that in BOCHS or any emulator with a pc with less than 1024MB of ram. I would actually go smaller than 512MB if it is just for testing purposes. I'd say about 4MB.
User avatar
Kevin McGuire
Member
Member
Posts: 843
Joined: Tue Nov 09, 2004 12:00 am
Location: United States
Contact:

Re:Kernel & User space

Post by Kevin McGuire »

Unless, You are placing the 512MB figure for the maximum amount of allocatable space the kernel can have and not actually allocating that much space. :D
grasper

Re:Kernel & User space

Post by grasper »

I'm using a real pc i don't like emulators :)
User avatar
Kevin McGuire
Member
Member
Posts: 843
Joined: Tue Nov 09, 2004 12:00 am
Location: United States
Contact:

Re:Kernel & User space

Post by Kevin McGuire »

I do not see anything wrong with using 512MB for youre kernel and the rest for user, if that can help you get the kernel booted and working - but later on it would be best to use a dynamic way of allocating memory for the kernel and user space.
grasper

Re:Kernel & User space

Post by grasper »

I know but i will be later :P. And my OS is very simple at the moment ;)
User avatar
Kevin McGuire
Member
Member
Posts: 843
Joined: Tue Nov 09, 2004 12:00 am
Location: United States
Contact:

Re:Kernel & User space

Post by Kevin McGuire »

Yep, that will work. :D
grasper

Re:Kernel & User space

Post by grasper »

Now I'm working with Memory Manager. After month will be first oficial OS release.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Kernel & User space

Post by Solar »

The mroe address space you can keep free for the user, the better (obviously). Don't be mistaken, applications requiring 3 GB RAM or more do exist, and will get more common.
Every good solution is obvious once you've found it.
grasper

Re:Kernel & User space

Post by grasper »

Thx Solar. It will be... :D
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Re:Kernel & User space

Post by kataklinger »

Don't be mistaken, applications requiring 3 GB RAM or more do exist, and will get more common.
By that time 64bit techonlogy will be wide accepted ;)
grasper

Re:Kernel & User space

Post by grasper »

I'm accepting withu U :)
And C64 Forever! RE :)
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Re:Kernel & User space

Post by kataklinger »

Good old time int 8-bit world :D
dh

Re:Kernel & User space

Post by dh »

I do hope that no DESKTOP/HACKER system needs 3gb of ram. Besides for gamming, that's outrageous! What ever happened to optimizing for size? Oh ya, something from long ago.

I hope I have 64-bit stuff before I get too far into OSdev so I can map my kernel to 16384 peta bytes :P. rofl, maybe if we just get 48-bit or something, it'll be ok :D. that's about 256 tera bytes :D.

Cheers, DH.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Kernel & User space

Post by Solar »

Dragon_Hilord wrote: I do hope that no DESKTOP/HACKER system needs 3gb of ram. Besides for gamming, that's outrageous!
Photoshop springs immediately to mind. Video / audio editing and FX work. Any kind of significant server work.
What ever happened to optimizing for size?
You might want to ask that question to the OS taking up 1 GB of space...
Every good solution is obvious once you've found it.
Post Reply