I don't think you can turn off file caching in Linux (at least with the
2.0.x kernels).
Also, depending on the size of files, the memory the cached versions are
occupying could be getting paged to disk so you won't get much of a gain.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Martin Gloeckle
Sent: Tuesday, May 25, 1999 11:26 AM
To: [EMAIL PROTECTED]
Subject: file cache
*** i'm writing a file cache to use together with my servlets.
pretty straight forward: when a file first is requested, load it from file
and put it into memory. from then on use the copy from memory.
the problem that i have is that there is _no_ performance gain at all when
reading a file from the cache as opposed to reading it from the file system.
my programming may not be perfect but i should see _some_ gain.
it looks like linux itself is caching the file, because the first access
from the file system is a little slower than subsequent access from the file
system.
is this possible? can i turn the file caching on the operating system level
off (for testing purposes)?
any other ideas?
and, is there source code for a file cache available somewhere?
thanks,
- martin
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html