From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3AEB21A007F for ; Mon, 21 Sep 2015 18:14:59 +1000 (AEST) Message-ID: <1442823285.2819.1.camel@kernel.crashing.org> Subject: Re: [PATCH 18/31] powerpc/mm: Increase the pte frag size. From: Benjamin Herrenschmidt To: "Aneesh Kumar K.V" , paulus@samba.org, mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org Date: Mon, 21 Sep 2015 18:14:45 +1000 In-Reply-To: <1442817658-2588-19-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1442817658-2588-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1442817658-2588-19-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2015-09-21 at 12:10 +0530, Aneesh Kumar K.V wrote: > /* > - * We use a 2K PTE page fragment and another 2K for storing > - * real_pte_t hash index > + * We use a 2K PTE page fragment and another 4K for storing > + * real_pte_t hash index. Rounding the entire thing to 8K > */ Isn't this a LOT of memory wasted ? Page tables have a non-negligible footprint, we were already wasting half, now we are wasting 3/4 no ? Ie, in most cases on modern machines we never use the other "half"... Ben.