Re: sendfile and page usage statistics

From: David G Lawrence <dg_at_dglawrence.com>
Date: Wed, 10 Oct 2007 11:12:59 -0700
> 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.
Received on Wed Oct 10 2007 - 16:13:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:19 UTC