Re: pte_addr_t size reduction for 64 GB case?

From: Andrew Morton
Date: Wed May 19 2004 - 02:46:49 EST


Albert Cahalan <albert@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> When handling 64 GB on i386, pte_addr_t really only
> needs 33 bits to find the PTE. It sure doesn't need
> the full 64 bits it is using.

yup.

> How about cheating a bit? If the pte_addr_t only had
> the high 32 bits of the 36-bit pointer, it would point
> to a pair of the 8-byte PTEs in a 16-byte chunk of RAM.
> Then simply examine the PTEs to see which one is the
> correct one.

They might both map the same page. It could overflow into page->flags.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/