Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752603Ab0DFPCp (ORCPT ); Tue, 6 Apr 2010 11:02:45 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:40451 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104Ab0DFPCk (ORCPT ); Tue, 6 Apr 2010 11:02:40 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wJb2N+3elvxk8/IgScKgfCuckI3HH0dwjPW2dctv4omwr3h8rJYUxMpfkrvTf65xzj 9xyAIQpLh6Ja8GSNEzQyca1WMQDg19JRW1zcxpGML9jE12baxiCfKXigjAWYi6spJdHB WT8lBd9Irw+VdABA9K1bsVxV5jn2pz+WqbBoA= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 6 Apr 2010 20:32:39 +0530 Message-ID: Subject: Re: why choose 896MB to the start point of ZONE_HIGHMEM From: Joel Fernandes To: hayfeng Lee Cc: linux-kernel@vger.kernel.org, linux-kernel@zh-kernel.org, kernelnewbies@nl.linux.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1306 Lines: 29 Hi Hayfeng, On Tue, Apr 6, 2010 at 8:07 PM, hayfeng Lee wrote: > hello,every one. > I have a question: > Why does linux choose 896MB to do a start point of ZONE_HIGHMEM and > the end point of ZONE_NORMAL. Just for experience? > What is the advantages? This is not an advantage but a limitation of 32 bit processor and architecture. Only physical memory in first 896MB is directly mapped to the kernel virtual memory address space. This is called ZONE_NORMAL. To access any physical memory in ZONE_HIGHMEM, the kernel has to set up page table entries to indirectly map the physical memory into a virtual memory address (I think around 128MB or so worth page table entries are reused for this purpose). On the other hand, on 64 bit architectures, the entire physical memory is directly mapped and accessible to the kernel. ZONE_HIGHMEM doesn't exist on 64 bit. Take the above with a grain of salt, someone with a better knowledge about this intrusive topic can be give a more detailed explanation :) Hope this helps, thanks, -Joel -- 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/