Re: [BK PATCH 2.5] Introduce 64-bit versions of PAGE_{CACHE_,}{MASK,ALIGN}

Andi Kleen (ak@suse.de)
30 Jul 2002 15:44:58 +0200


Andrea Arcangeli <andrea@suse.de> writes:

> > Then again, Andi says that sizeof(struct page) is a problem for
> > x86-64.
>
> not true.

x86-64 has slightly below 100 bytes struct page

Big struct page eats your cache like crazy for many operations.
In addition it costs a considerable amount of memory.

Of course it is not a showstopper because there is no resource to run
out of too quickly, but still needs attention as an important optimization
(either smaller struct page or bigger softpage size)

Of course longer term bigger softpage size is the best solution - that
would make the >16GB i386 people happy too and avoid overhead on big memory
systems both 32bit and 64bit.. Unfortunately there are some
problems with the ELF alignment and the mmap API with it, which may be
no easy to solve.

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