From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 16 Sep 2011 18:27:35 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] gar nix! Topicbox-Message-UUID: 2483f33e-ead7-11e9-9d60-3106f5b1d025 On Fri Sep 16 18:18:25 EDT 2011, forsyth@terzarima.net wrote: > > (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. sure but we are talking about x86_64, which has a limited number of possible page sizes and hardware managed tlbs. it would seem that one could give the architecture code the info and let it decide? - erik