Re: Caches, page coloring, virtual indexed caches, and more

From: Anton Blanchard (anton@linuxcare.com.au)
Date: Mon Jan 15 2001 - 07:51:13 EST


 
Hi,

> shared mmap. This is the important one. Since we have a logical
> backing store this is easy to handle. We just enforce that the
> virtual address in a process that we mmap something to must match the
> logical address to VIRT_INDEX_BITS. The effect is the same as a
> larger page size with virtually no overhead.

Check out arch/sparc64/kernel/sys_sparc32.c. Dave and I fixed this a while
ago. In particular look at the arch specific SPARC_FLAG_MMAPSHARED flag.

> sysv shared memory is exactly the same as shared mmap. Except instead
> of a file offset you have an offset into the sysv segment.

sysv shared mem when you specify an attach address should work fine (ie
aligned to SHMLBA). On the other hand sysv shared mem without requesting
an address is broken and I havent got around to fixing it yet.

> mremap. Linux specific but pretty much the same as mmap, but easier.
> We just enforce that the virtual address of the source of mremap,
> and the destination of mremap match on VIRT_INDEX_BITS.

See above.

Cheers,
Anton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 21:00:41 EST