* a basic question
@ 2005-10-22 16:09 Nitin Gupta
2005-10-22 18:11 ` Rik van Riel
0 siblings, 1 reply; 2+ messages in thread
From: Nitin Gupta @ 2005-10-22 16:09 UTC (permalink / raw)
To: linux-mm
Hi,
These are the questions that have been troubling me for long time.
I'm beginning to work on a vmm project, so kindly spare a min to
answer these:
- How does processor know that 3GB-4GB is mapped linearly on first 1GB
of memory. Is there a pagetable for this segment mapping it linearly?
- Why isn't it like this - userspace tasks have 4GB virtual address
space and for kernel also a 4GB virtual address space that is linearly
mapped to fist 4GB of memory.
Thanks
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: a basic question
2005-10-22 16:09 a basic question Nitin Gupta
@ 2005-10-22 18:11 ` Rik van Riel
0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2005-10-22 18:11 UTC (permalink / raw)
To: Nitin Gupta; +Cc: linux-mm
On Sat, 22 Oct 2005, Nitin Gupta wrote:
> - How does processor know that 3GB-4GB is mapped linearly on first 1GB
> of memory. Is there a pagetable for this segment mapping it linearly?
Yes, there are page tables for this.
> - Why isn't it like this - userspace tasks have 4GB virtual address
> space and for kernel also a 4GB virtual address space that is linearly
> mapped to fist 4GB of memory.
With the 4:4 split patch, this is done. However, there is a
cost to this approach - every time the system switches from
user mode to kernel mode it goes through a context switch.
An extra two context swiches on every system call, every
interrupt. For most systems the gained space is simply not
worth the time overhead.
--
All Rights Reversed
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-22 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-22 16:09 a basic question Nitin Gupta
2005-10-22 18:11 ` Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox