Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932878AbaKRXDL (ORCPT ); Tue, 18 Nov 2014 18:03:11 -0500 Received: from foss-mx-na.foss.arm.com ([217.140.108.86]:60892 "EHLO foss-mx-na.foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754345AbaKRXDK (ORCPT ); Tue, 18 Nov 2014 18:03:10 -0500 Date: Tue, 18 Nov 2014 23:02:55 +0000 From: Catalin Marinas To: Russell King - ARM Linux Cc: Konstantin Khlebnikov , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH RFC 3/3] ARM: reduce size of page table directory for short mode Message-ID: <20141118230255.GA3841@e104818-lin.cambridge.arm.com> References: <20141118165313.9958.1242.stgit@buzz> <20141118165325.9958.84370.stgit@buzz> <20141118181412.GO28279@e104818-lin.cambridge.arm.com> <20141118191104.GD4042@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141118191104.GD4042@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 18, 2014 at 07:11:04PM +0000, Russell King - ARM Linux wrote: > On Tue, Nov 18, 2014 at 06:14:12PM +0000, Catalin Marinas wrote: > > Actually, with LPAE you can save a pmd and pte allocated for the vectors > > page at 0xffff0000. So you can save 8K per task here. Similarly with the > > classic MMU, you can save another 4K for the vectors page pte. > > No. For any CPU which has high vectors (approximately ARMv5 and up), > there is no "vectors page pte". The vectors page PTE is only allocated > when we need low vectors. You are right. The kernel pgd entries are copied by pgd_alloc, so no need for additional pmd/pte allocations (they would be shared). -- Catalin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/