Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: ext3, mmap() and mtime (was RE: Redhat 7.3 bugfix)

On Fri, 2 Aug 2002, Jeff D'Angelo wrote:

> However I have noticed another quirk with ext3.  Apparently when you write
> changes to a mmap()'ed file, the mtime (and ctime for that matter) on the
> file is not updated in ext3 as it is with ext2 (and Solaris's journalled
> UFS, btw).  This caused us havok when we had a watchdog script check to
> see if the mtime was updating on ldm.pq before paging us about a potential
> problem.

I don't think mmap should be expected to maintain file characteristics.
The reason you use mmap is to efficiently map virtual memory to disk which
I would hope is done at a physical disk access level rather than through
the file system.  If the file characteristics have to be updated every
time you access memory, that would slow things down tremendously.  The
lack of mtime update in ext3 would sound to me like an improvement.

                                   Art.
>
> --
> Jeff D'Angelo
> ZedX, Inc. Systems Group
>

Arthur A. Person
Research Assistant, System Administrator
Penn State Department of Meteorology
email:  person@xxxxxxxxxxxxxxxxxx, phone:  814-863-1563



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690