Re: page sizes



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

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

There are API calls, usually, to get this information. Usually it would
best to write software so that it doesn't care about the page size, or if
it does care, will determine it at runtime and respond appropriately.

For what it's worth, the page size might not always be a constant. For
example, on Sun Solaris, there is a feature called Multiple Page Size Support,
which allows different regions of memory to have different page sizes. This
can be useful if you have a large contiguous chunk of data in memory (like
an uncompressed bitmap, for example) that will be treated as a single unit
and doesn't need the granularity of tons of little pages. The reason this
matters is that the granularity has a cost: each page requires an entry in
the TLB, and TLB misses are bad for similar reasons to why cache misses are
bad. Another example of a usage pattern that can work fine with large pages
is the call stack.

- Logan
.



Relevant Pages

  • Re: FMA 45 - A Rotted Heart
    ... Past cure I am, now reason is past care, ... We open to the confrontation between Dante and Hohenheim. ... create the philosopher's stone, to be replaced by a red- toned scene. ...
    (rec.arts.anime.misc)
  • Re: Announcing my new Sci-fi Book
    ... Even documentaries don't sound too credible all too often. ... And I have no reason to believe it. ... But I don't really care. ... How would that work better with a credit card? ...
    (rec.arts.sf.written)
  • Re: Why I care what people think about me on AVLV
    ... The AVLV is similar to Professional Wrestling. ... useless and destructive posts that Chuck have ... would anyone take what people say about others or even care how anyone feels ... less the reason for the friendship. ...
    (alt.vacation.las-vegas)
  • Re: ATWT -- Fall SPOILERS
    ... Rosanna said "Bye" and waved her hand at them. ... seems to really care what happens to their marriage either). ... But now that the doctors have nixed that, there's no reason to ... Babs up for the cash. ...
    (rec.arts.tv.soaps.cbs)
  • Re: OT: Post Turtle
    ... difference in terms of the science, ... Being "skeptical" is decidedly not the reason. ... First principles physics are used to compute ... I know you don't really care. ...
    (sci.electronics.design)