04-19-07 12:19 PM
Chris Friesen <cbf123@mail.usask.ca> writes:
> bohu.seattle@gmail.com wrote:
>
> With linux you normally have a 1G/3G split, but there is the 4G/4G
> patch where the kernel runs in a separate memory space, thus allowing
> 4GB per userspace process at some penalty to context switching
> overhead.
This isn't quite true. If the kernel is mapped into each processes
address space, a system call just needs to trap into the kernel
somehow, with cache and TLB contents (insofar applicable) just remaining
valid. Otherwise, parts or all of both needs to be flushed.
The difference is roughly the same as the difference between
context-switching among threads that are part of the same process and
context-switching between independent processes.
[ Post a follow-up to this message ]
|