DragonFly BSD
DragonFly users List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: apache and file's access time


From: Mikhail Teterin <mi+dragonflybsd@xxxxxxxxxxxxxxxxx>
Date: Fri, 12 Nov 2004 19:04:25 -0500

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]