Date: Sun, 30 Mar 2003 17:30:37 -0600 (CST) From: Mike Silbersack <silby@silby.com> To: Jake Burkholder <jake@locore.ca> Cc: cvs-all@FreeBSD.org Subject: Re: HEADS UP Re: cvs commit: src/sys/conf options.i386 src/sys/i386/i386 bios.c locore.s machdep.c mpboot.s pmap.c vm86bios.s vm_machdep.c src/sys/i386/include _types.h bus_at386.h param.h pmap. Message-ID: <20030330172835.O7123@odysseus.silby.com> In-Reply-To: <20030330232030.GB32298@locore.ca> References: <200303300524.h2U5Ora7061852@repoman.freebsd.org> <20030330201113.GA32298@locore.ca><20030330232030.GB32298@locore.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 30 Mar 2003, Jake Burkholder wrote: > I'm not sure I understand the question, you mean is it possible to use > separate address spaces for the kernel and userland, giving a full 4G each? > Yes it is possible, but it is not practical. It would be prohibitively > expensive and ugly. For example you would need to use task gates for > system calls, and copyin or copyout would need to look up the user pages > and map them temporarily, something like that. > > Keep in mind that the restriction is what can be mapped. It is still > possible to keep around huge amounts of memory as long as its not all > mapped all the time. For example many device drivers just do dma and > don't need a virtual mapping for every chunk of memory they see, avoiding > mapping and unmapping it would save a lot of KVA. > > Jake Yes, 4G/4G is what I was asking about. The reason I'm confused is that I don't understand how copies from the upper 2G of a 6G box work any better than copies from overlapping user memory with < 4G addresses. Are we using 64 pointers throughout the kernel while in PAE mode? (I didn't think i386 supported that, which is why I'm asking.) Sorry if these are "dumb" questions, but I'm quite green when it comes to address space mapping. Thanks, Mike "Silby" Silbersack
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030330172835.O7123>