Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263571AbTKXGEK (ORCPT ); Mon, 24 Nov 2003 01:04:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263574AbTKXGEK (ORCPT ); Mon, 24 Nov 2003 01:04:10 -0500 Received: from holomorphy.com ([199.26.172.102]:26552 "EHLO holomorphy") by vger.kernel.org with ESMTP id S263571AbTKXGEB (ORCPT ); Mon, 24 Nov 2003 01:04:01 -0500 Date: Sun, 23 Nov 2003 22:03:57 -0800 From: William Lee Irwin III To: John Smith Cc: linux-kernel@vger.kernel.org Subject: Re: PTE --> 2 values?? Message-ID: <20031124060357.GW22764@holomorphy.com> Mail-Followup-To: William Lee Irwin III , John Smith , linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: The Domain of Holomorphy User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 19 On Sun, Nov 23, 2003 at 11:50:15PM -0500, John Smith wrote: > I saw that Linux is using a 3 level page tables, pgd, pmd and pte. The value > in the pte can refer to an actual page in memory OR an address on the swap > device. How does the kernel distinguish the two values such that if the > value is refering to an swap device address, it will not lookup the address > in memory ?? There is a present bit. All other bits are available to the OS when the present bit says "not present". On many machines, Linux' 3-level tree is a pure software construct, and the processor is informed of translations in other ways (e.g. inverted pagetables, direct TLB insertion). -- wli - 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/