Re: Few queries
- From: "Kaz Kylheku" <kkylheku@xxxxxxxxx>
- Date: 20 Oct 2006 16:38:06 -0700
Josef Moellers wrote:
I still don't see a difference between a "logical" and a "virtual" address.
Apparently the distinction is that "logical addresses" have a simple,
fixed mapping to physical addresses (e.g. a constant offset) while
virtual addresses have an arbitrary mapping
(http://linux.derkeiler.com/Newsgroups/comp.os.linux.development.system/2006-01/msg00245.html)
IMHO, this is just trying to name things differently.
On some better-designed architectures, there can be sections of memory
which are not subject to paging, but instead to a simple translation.
E.g. the kernel segments or "ksegs" on MIPS.
It would not be quite accurate to call these addresses virtual, since
they don't go through virtual address translation.
It's an advantage to have this feature, because accesses to these
segments do not map through the TLB, which is precious cache space.
It's stupid to use virtual address translation to implement a simple
displacement over a large memory range, and the more physical RAM you
make visible that way, the stupider it gets due to the greater demand
on the TLB.
So, ideally, every platform would have a way to do kernel segments, and
so the MMU hardware would never be used for these logical pages at all.
Only for highmem pages, and for truly virtual allocations (user space
mmap, vmalloc).
So it does make sense to distinguish logical and virtual addresses. On
platforms like i386 can think of logical addresses as being a kernel
segment inefficiently emulated using the paging hardware.
.
- Follow-Ups:
- Re: Few queries
- From: kushneeraj@xxxxxxxxx
- Re: Few queries
- References:
- Few queries
- From: kushneeraj@xxxxxxxxx
- Re: Few queries
- From: Josef Moellers
- Re: Few queries
- From: kushneeraj@xxxxxxxxx
- Re: Few queries
- From: Josef Moellers
- Few queries
- Prev by Date: Re: boot loader that can read from partition?
- Next by Date: Re: boot loader that can read from partition?
- Previous by thread: Re: Few queries
- Next by thread: Re: Few queries
- Index(es):