apache and file's access time

Matthew Dillon dillon at apollo.backplane.com
Fri Nov 12 15:16:59 PST 2004


:AFAIK, Apache will only use mmap for selected "frequently used" files -- it
:can't keep more than a total of 2Gb mmap-ed anyway.
:
:http://httpd.apache.org/docs-2.0/mod/mod_file_cache.html.en#mmapfile
:
:In any case, I tried to shut the httpd down completely and re-request the
:file upon restart. atime did not change. It even survived the system reboot
:-- re-requesting the file from the freshly booted machine did not change
:any of the file's timestamps either :-\
:
: -mi

    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.

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

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Users mailing list