mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Does VFS cache individual files? Is the linker involved?
@ 2001-10-29 12:03 Magnus Sundberg
  2001-10-29 12:26 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Sundberg @ 2001-10-29 12:03 UTC (permalink / raw)
  To: linux-kernel

Dear sirs,

QUESTION:
Does VFS cache the content of a file?

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


RELATED INFORMATION:
Operating system RedHat 7.1, kernel 2.4.3-12 (from RedHat RPM)
My webserver runs tripwire for integrity test of critical files.

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.

Thank you for your time reading this

regards,

Magnus Sundberg



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Does VFS cache individual files? Is the linker involved?
  2001-10-29 12:03 Does VFS cache individual files? Is the linker involved? Magnus Sundberg
@ 2001-10-29 12:26 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2001-10-29 12:26 UTC (permalink / raw)
  To: Magnus Sundberg; +Cc: linux-kernel

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-29 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-29 12:03 Does VFS cache individual files? Is the linker involved? Magnus Sundberg
2001-10-29 12:26 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®