lkml.org 
[lkml]   [2001]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Does VFS cache individual files? Is the linker involved?
Date
From
> Does VFS cache the content of a file?

It caches arbitary pages of the file.

> Does VFS consult memory instead of disk, when accessing a file that is
> already linked to a process that is running?

Depends if the block is already in memory. If it is paged in then it will
used a shared read only copy when there is one. If not then it will load it

> One night, when the PHP runtime of apache had crashed, tripwire reported
> checksum error of
> /usr/lib/apache/libphp4.so
> The next night, when apache was restarted, there where no checksum
> errors of the file.
>
> I have seen checksum errors of /lib/libc-2.2.2.so, rpm also reported md5
> checksum error when I
> used rpm to verify the installation of glibc.

That is consistent with in memory file cache corruption yes. Since the error
never got written back to disk (and its probably in a clean page) it
vanished when the cached copy did
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:11    [W:0.032 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site