> (can't one just preemptively map the whole text on first-fault?)

that doesn't make sense on many architectures.
if there isn't a page table system, for instance, but a set of moderate size of 
software-managed tlbs,
perhaps with hardware assistance, that won't work terribly well.
the faults tell you what you're using right now. you need a page size, however,
that's appropriate for your system (including your application set), or
faulting lots of tiny chunks of text that your processor can execute quickly
will give excessive overhead.

Reply via email to