From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 20 08:33:30 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9472106564A for ; Sun, 20 Mar 2011 08:33:30 +0000 (UTC) (envelope-from alan.l.cox@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 214A58FC08 for ; Sun, 20 Mar 2011 08:33:29 +0000 (UTC) Received: by fxm11 with SMTP id 11so5569968fxm.13 for ; Sun, 20 Mar 2011 01:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=K8lRCZVqz0SmlOlDWXuhv/ArxtPg/wOHywDPG1bCS+A=; b=mk5oMPTtMwklP6PzTdbe5fDnyRMs6yLpfMZhWBdsiMTTgecpv1pkWHkaRewBVpvzYl SzcQ43yhkj368JX0WEs2iGTSerYfBk8pP+fyKI0+R4R645h/51B4QKvQ0GAvpk6PFUQE qlbz4vo9W8GlDzeX2xx4a+jgFkrWF8lNTFIRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=DudGaVW0Cma6LgTNzRb0H5rnmGYicfQDWpDwqjZy5ma5x+DUCGpt86PP8yOd5CfaYt dsuYC00MD5tTXXVBFYjTc47dXE8di3Ptp9tnzl1mcj0yYZY4jza9AAcMMdvzCrQ5/7ib 3CZzjKxJN/fLdh41PEnYKydtB4QUpAexnH8cw= MIME-Version: 1.0 Received: by 10.223.127.213 with SMTP id h21mr1711349fas.139.1300608179691; Sun, 20 Mar 2011 01:02:59 -0700 (PDT) Received: by 10.223.115.148 with HTTP; Sun, 20 Mar 2011 01:02:59 -0700 (PDT) In-Reply-To: References: Date: Sun, 20 Mar 2011 03:02:59 -0500 Message-ID: From: Alan Cox To: J L Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Question about Reverse Mappings in FreeBSD. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alc@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 08:33:30 -0000 On Fri, Mar 18, 2011 at 7:30 PM, J L wrote: > I read an article about Reverse Mappings technique in memory management > part. It improves a lot from Linux 2.4 to 2.6. I am wondering is FreeBSD > also have this feature? Which source files should I go to find these? I > want > to do some study on this. > Wish someone can enlighten me. Thank you. > Reverse mappings are implemented by the machine-dependent layer of the virtual memory system, which is called the "pmap". Look for files named pmap.c in the source tree, such as sys/amd64/amd64/pmap.c. In particular, look for the code that manages pv entries. Alan