From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751357AbaLRSA0 (ORCPT ); Thu, 18 Dec 2014 13:00:26 -0500 Received: from terminus.zytor.com ([198.137.202.10]:36370 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbaLRSAY (ORCPT ); Thu, 18 Dec 2014 13:00:24 -0500 Message-ID: <5493162E.7060305@zytor.com> Date: Thu, 18 Dec 2014 10:00:14 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "Yu, Fenghua" , Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , "Williamson, Glenn P" CC: linux-kernel , x86 Subject: Re: [PATCH v2] X86-32: Allocate 256 bytes for pgd in PAE paging References: <1418852859-18852-1-git-send-email-fenghua.yu@intel.com> <54930E14.30800@zytor.com> <3E5A0FA7E9CA944F9D5414FEC6C712205A6C1D8F@ORSMSX106.amr.corp.intel.com> In-Reply-To: <3E5A0FA7E9CA944F9D5414FEC6C712205A6C1D8F@ORSMSX106.amr.corp.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> 4*8 = 32 bytes, where did 256 bytes come from? > > You are right. It should be 32 bytes. I will change the wording in future patch. The real calculation in code is right though. I don't know if it makes sense to round up to a cache line. My suspicion is that it won't matter, as these fields will be read-mostly, on the other hand, wasting 32 bytes isn't exactly a problem, either. -hpa