linux-mips
[Top] [All Lists]

Re: [PATCH] 64K page size

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH] 64K page size
From: Peter Watkins <treestem@gmail.com>
Date: Thu, 31 Aug 2006 11:12:02 -0400
Cc: linux-mips@linux-mips.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=PZ5o7ne9uOcVn7/pfSr9EGVzkTcolfdltuftPbzX/h1hJCiVgGxxqwE4+vXcQvDw3kYyFBeJboVjSkSNBg7W4EJCxXd357/scQSpQ31tC6oYpSareS2hQ7tiLhUNIRGWTdjXoRcvM+yHXJqahNyr39pLRHhvq9uQouqLTfut10c=
In-reply-to: <20060829135055.GB29289@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <44EC7125.7000000@gmail.com> <20060829135055.GB29289@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050831)
Ralf Baechle wrote:

The code in pgtable-64.h assumes TASK_SIZE is always bigger than a first level PGDIR_SIZE. This is not the case for 64K pages, where task size is 40 bits (1TB) and a pgd entry can map 42 bits. This leads to USER_PTRS_PER_PGD being zero for 64K pages.

Do you actually need large address space?  The kernel could allow 2, 3 and
4-level pagetables easily but doesn't give that choice currently.


Yes, in some cases. I'd like to benchmark the performance difference between 2 and 3 level pagetables, so the choice is valuable.


<Prev in Thread] Current Thread [Next in Thread>