From owner-cvs-src@FreeBSD.ORG Sat Apr 24 13:53:56 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15EAA16A4CE; Sat, 24 Apr 2004 13:53:56 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1086243D5C; Sat, 24 Apr 2004 13:53:56 -0700 (PDT) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3OKrtGe013094; Sat, 24 Apr 2004 13:53:55 -0700 (PDT) (envelope-from alc@repoman.freebsd.org) Received: (from alc@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3OKrtFl013093; Sat, 24 Apr 2004 13:53:55 -0700 (PDT) (envelope-from alc) Message-Id: <200404242053.i3OKrtFl013093@repoman.freebsd.org> From: Alan Cox Date: Sat, 24 Apr 2004 13:53:55 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/alpha/alpha pmap.c src/sys/pci agp.c agp_i810.c src/sys/vm vm_kern.c vm_page.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2004 20:53:56 -0000 alc 2004/04/24 13:53:55 PDT FreeBSD src repository Modified files: sys/alpha/alpha pmap.c sys/pci agp.c agp_i810.c sys/vm vm_kern.c vm_page.c Log: Push down the responsibility for zeroing a physical page from the caller to vm_page_grab(). Although this gives VM_ALLOC_ZERO a different meaning for vm_page_grab() than for vm_page_alloc(), I feel such change is necessary to accomplish other goals. Specifically, I want to make the PG_ZERO flag immutable between the time it is allocated by vm_page_alloc() and freed by vm_page_free() or vm_page_free_zero() to avoid locking overheads. Once we gave up on the ability to automatically recognize a zeroed page upon entry to vm_page_free(), the ability to mutate the PG_ZERO flag became useless. Instead, I would like to say that "Once a page becomes valid, its PG_ZERO flag must be ignored." Revision Changes Path 1.144 +0 -3 src/sys/alpha/alpha/pmap.c 1.39 +0 -2 src/sys/pci/agp.c 1.28 +0 -2 src/sys/pci/agp_i810.c 1.116 +0 -2 src/sys/vm/vm_kern.c 1.280 +2 -0 src/sys/vm/vm_page.c