apache and file's access time

Mikhail Teterin mi+dragonflybsd at aldan.algebra.com
Fri Nov 12 16:04:25 PST 2004


Matthew Dillon wrote:

>     Well, if you 'cat' the file and the atime changes, and you http it and
>     it doesn't change, then apache is almost guarenteed to be mmap()ing
>     the file.

To mmap(), one needs to open() -- at least once, after a restart of httpd or
system reboot. open() would updated the atime. I think, Apache is doing
sendfile(), actually, but that also needs a file descriptor and thus an
open().

>     You could ktrace the apache process(es), issue the request, and see
>     what apache actually does with it.

I'll try that. Thanks,

 -mi





More information about the Users mailing list