Re: Apache et find -atime

Pàgina inicial

Reply to this message
Autor: Frédéric
Data:  
A: guilde
Assumpte: Re: Apache et find -atime

Le 3/4/2008, "Olivier Allard-Jacquin" <olivieraj@???> a écrit:

> Pour Apache, je ne sais pas. Mais pour info, vérifie que la partition n'est
>pas monté avec l'option "noatime", qui a pour but de ne pas mettre à jour cette
>information lorsque qu'un fichier est modifiée.


Non, cette option n'est pas utilisée pour cette partition.

Et je confirme : en regardant avec stat, même si je fais un wget sur la
même machine (pour éviter de passer au travers des caches et proxies
divers), le atime n'est pas modifié :

$ stat app-CPU.png
  File: `app-CPU.png'
  Size: 198510          Blocks: 400        IO Block: 4096   fichier
régulier
Device: 805h/2053d      Inode: 541136      Links: 1
Access: (0644/-rw-r--r--)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2008-04-03 12:25:34.000000000 +0200
Modify: 2008-04-02 22:49:14.000000000 +0200
Change: 2008-04-02 22:49:14.000000000 +0200


$ date
jeudi 3 avril 2008, 12:29:16 (UTC+0200)

$ wget http://<path_to_file>/app-CPU.png -o /tmp/app-CPU.png
--12:29:59--  http://<path_to_file>/app-CPU.png
           => `app-CPU.png'
Résolution de <site>... xxx.xxx.xxx.xxx
Connexion vers <site>|xxx.xxx.xxx.xxx|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 198 510 (194K) [image/png]


100%[===========================>] 198 510       --.--K/s


12:30:00 (118.20 MB/s) - « app-CPU.png » sauvegardé [198510/198510]

$  stat app-CPU.png
  File: `app-CPU.png'
  Size: 198510          Blocks: 400        IO Block: 4096   fichier
régulier
Device: 805h/2053d      Inode: 541136      Links: 1
Access: (0644/-rw-r--r--)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2008-04-03 12:25:34.000000000 +0200
Modify: 2008-04-02 22:49:14.000000000 +0200
Change: 2008-04-02 22:49:14.000000000 +0200


$ cp app-CPU.png /tmp/app-CPU.png

$ stat app-CPU.png
  File: `app-CPU.png'
  Size: 198510          Blocks: 400        IO Block: 4096   fichier
régulier
Device: 805h/2053d      Inode: 541136      Links: 1
Access: (0644/-rw-r--r--)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2008-04-03 12:30:25.000000000 +0200
Modify: 2008-04-02 22:49:14.000000000 +0200
Change: 2008-04-02 22:49:14.000000000 +0200


Doit donc bien y avoir un truc au niveau d'Apache, un cache ou autre...