Page 1 of 2
Kernel & User space
Posted: Wed Jan 04, 2006 7:07 am
by grasper
What is better?
512MB for kernel and other for user or 1GB and other for user?
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:11 am
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.
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:13 am
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.
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:14 am
by grasper
I'm using a real pc i don't like emulators
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:16 am
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.
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:17 am
by grasper
I know but i will be later
. And my OS is very simple at the moment
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:20 am
by Kevin McGuire
Yep, that will work.
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:22 am
by grasper
Now I'm working with Memory Manager. After month will be first oficial OS release.
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:42 am
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.
Re:Kernel & User space
Posted: Wed Jan 04, 2006 7:55 am
by grasper
Thx Solar. It will be...
Re:Kernel & User space
Posted: Wed Jan 04, 2006 9:15 am
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
Re:Kernel & User space
Posted: Wed Jan 04, 2006 9:57 am
by grasper
I'm accepting withu U
And C64 Forever! RE
Re:Kernel & User space
Posted: Wed Jan 04, 2006 11:58 am
by kataklinger
Good old time int 8-bit world
Re:Kernel & User space
Posted: Thu Jan 05, 2006 10:49 am
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
. rofl, maybe if we just get 48-bit or something, it'll be ok
. that's about 256 tera bytes
.
Cheers, DH.
Re:Kernel & User space
Posted: Thu Jan 05, 2006 11:17 pm
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...