From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 23:29:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E023216A4CE for ; Tue, 17 Aug 2004 23:29:12 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B27343D2D for ; Tue, 17 Aug 2004 23:29:10 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id 439B669A8C; Tue, 17 Aug 2004 19:29:09 -0400 (EDT) Date: Tue, 17 Aug 2004 19:29:08 -0400 From: Bill Moran To: Mikhail Teterin Message-Id: <20040817192908.228cca04.wmoran@potentialtech.com> In-Reply-To: <4122370A.1010102@aldan.algebra.com> References: <200408170835.45402@aldan> <20040817151725.GA782@gentoo-npk.bmp.ub> <4122370A.1010102@aldan.algebra.com> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: nkinkade@ub.edu.bz cc: questions@FreeBSD.org Subject: Re: web-serving does not update a file's atime? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 23:29:13 -0000 Mikhail Teterin wrote: > Nathan Kinkade wrote: > > >On Tue, Aug 17, 2004 at 08:35:45AM -0400, Mikhail Teterin wrote: > > > >>Hello! > >> > >>I tried to use stat(1) to see the last time a file was downloaded > >>through Apache. > >> > >>To my surprise, all three dates displayed by stat are long ago, even > >>though the web-server's log is showing downloads from a just a few > >>hours back. > >> > >>The file-system used to be mounted noatime, but I turned that option > >>off some time ago. If I read one of those files (with head(1) or > >>file(1), for example), the atime is updated. But if Apache serves it > >>out -- it is not... There is no caching in Apache either. > > > >Is this all running on your local machine? If not, is it possible that > >there is a proxy server between you and the host running Apache? > >Perhaps a transparent proxy? > > > > > There are not other servers and no proxies. The locally running apache logs > successful requests for the files, but their atimes are not updated. > > Just checked -- the file was last downloaded 13 minutes ago, but all of > the three time-stamps (according to stat(1)) point to many hours back... My guess on this would be that Apache is caching the file and has only actually loaded it from disk once. Try stop/starting Apache and see if it has to reload the file to see if my guess is correct. -- Bill Moran Potential Technologies http://www.potentialtech.com