Subject: RE: how can kernel space expand to >1GB?
To: Ming Lei , 'Stephan Uphoff' <firstname.lastname@example.org>
From: Gary Thorpe <email@example.com>
Date: 07/31/2003 22:41:35
--- Ming Lei <mlei@Brocade.COM> wrote: >
> thanks all. think remaping work is expensive though.
> -----Original Message-----
> From: Stephan Uphoff [mailto:firstname.lastname@example.org]
> Sent: Thursday, July 31, 2003 5:08 PM
> To: Ming Lei
> Cc: 'Jonathan Stone'; Jason Thorpe; tech-kern@NetBSD.org;
> Subject: Re: how can kernel space expand to >1GB?
> Ming Lei wrote:
> > netbsd does have an config option to split kernel/user space to
> 1G/3G as
> > linux does. This option exists for every platform.
> > Jason, sorry that I didnt make myself clear in the previous emails.
> > get an example, say I have kernel subsystem D(D is not an user
> app!) needs
> > to use *lots of memory* and I enable the code to use all the kernel
> > that I can grab. Do you think D has the limit of how much memory it
> > I think D would first reach the limit posted by kernel 1GB virtual
> > restriction. When all the kernel virtual addess(1GB) are exhausted,
> and if
> > wants even more memory(see there are still some phys memory left),
> > kernel do?
> > This is basically my question.
> > Thanks,
> > Ming
> NetBSD does not linearly map physical space into the kernel virtual
>>>>>>>>>>> You can however allocate purely virtual kernel space and
use it to
> arbitrary physical pages later.
> Think of it as always using HIGHMEM.
Ok, here is what I think is being asked: can you make the kernel's
virtual address space larger than 1 GB i.e. can you make the "purely
virtual kernel space" _larger_, so that you can map/unmap _more_
physical pages later. How do you bump the virtual memory limit of the
kernel itself: how can you increase the size of the kernel's own page
tables? How can you make the kernel's virtual address space larger in
NetBSD so that you can say allocate 2GB of kernel memory on i386
instead of the current 1GB limit?
Remapping is not the issue: you cannot map anything into the kernel if
its address space is exhausted. FreeBSD and Linux ("ports"?) have knobs
to do this, does NetBSD also?
Post your free ad now! http://personals.yahoo.ca