Re: page sizes



copx wrote:

Do memory managers usually use page sizes which are a power of two or
not?

Yes. This optimizes the variables and hardware registers used to manage
the pages. None of their bits are wasted. User-level code doesn't need
these optimizations, so they pick array sizes with different conveniences.

Which page size can one expect on Windows/i386 and Linux/i386?

Usually 4096 bytes. But what will you do with the answer - it might vary
for any conceivable reason, including odd bus architectures.

--
Phlip
.