Veo pérdidas de archivos justo después de ejecutar sync; echo 3> /proc/sys/vm/drop_caches
.
No estoy seguro de si este es el caso, pero como el sistema de archivos está sobre NFS, tal vez cuando descargo los cachés, el caché de archivos también desaparece.
Puede soltar los cachés usando sync; echo 3> /proc/sys/vm/drop_caches
conducir a la pérdida de archivos?
Respuesta aceptada:
No debería perder archivos si el núcleo funciona correctamente. De man 5 proc
:
/proc/sys/vm/drop_caches (since Linux 2.6.16)
Writing to this file causes the kernel to drop clean caches,
dentries, and inodes from memory, causing that memory to become
free ...
...
Because writing to this file is a nondestructive operation and
dirty objects are not freeable, the user should run sync(1)
first.
Como dice el manual, solo se vacían los cachés limpios y se escribe algo en drop_caches
es una operación no destructiva. Los objetos sucios no se molestan en absoluto.