From owner-freebsd-current@FreeBSD.ORG Wed Oct 10 18:13:01 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38F3F16A421 for ; Wed, 10 Oct 2007 18:13:01 +0000 (UTC) (envelope-from dg@dglawrence.com) Received: from dglawrence.com (static-72-90-113-2.ptldor.fios.verizon.net [72.90.113.2]) by mx1.freebsd.org (Postfix) with ESMTP id 024DE13C4A7 for ; Wed, 10 Oct 2007 18:13:00 +0000 (UTC) (envelope-from dg@dglawrence.com) Received: from tnn.dglawrence.com (localhost [127.0.0.1]) by dglawrence.com (8.14.1/8.14.1) with ESMTP id l9AID0Yv059413; Wed, 10 Oct 2007 11:13:00 -0700 (PDT) (envelope-from dg@dglawrence.com) Received: (from dg@localhost) by tnn.dglawrence.com (8.14.1/8.14.1/Submit) id l9AID0pR059412; Wed, 10 Oct 2007 11:13:00 -0700 (PDT) (envelope-from dg@dglawrence.com) X-Authentication-Warning: tnn.dglawrence.com: dg set sender to dg@dglawrence.com using -f Date: Wed, 10 Oct 2007 11:12:59 -0700 From: David G Lawrence To: Igor Sysoev Message-ID: <20071010181259.GF56714@tnn.dglawrence.com> References: <20071009125001.GC5758@rambler-co.ru> <20071010055748.GA18931@rambler-co.ru> <20071010060605.GB18931@rambler-co.ru> <470C6DD4.1060509@mawer.org> <20071010062541.GA23840@rambler-co.ru> <20071010093436.GB2180@deviant.kiev.zoral.com.ua> <20071010095018.GA28123@rambler-co.ru> <20071010102756.GE56714@tnn.dglawrence.com> <20071010173601.GB35652@rambler-co.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071010173601.GB35652@rambler-co.ru> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (dglawrence.com [127.0.0.1]); Wed, 10 Oct 2007 11:13:00 -0700 (PDT) Cc: Kostik Belousov , freebsd-current@freebsd.org, Antony Mawer Subject: Re: sendfile and page usage statistics X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2007 18:13:01 -0000 > The read() from file certainly updates vnode pages' PG_A/PG_REFERENCED, > because coping to userland is made by CPU. I think write() does the same. No, it does not. The kernel virtual mappings involved in that copy are "special"; page bits (PG_A, PG_M, etc) from those mapping are not preserved from the PTEs (at least not on x86). -DG David G. Lawrence President Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500 The FreeBSD Project - http://www.freebsd.org Pave the road of life with opportunities.