sendfile and page usage statistics

David G Lawrence dg at dglawrence.com
Wed Oct 10 11:13:01 PDT 2007


> 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.


More information about the freebsd-current mailing list