Messages in this thread | | | Date | Wed, 19 Oct 2005 05:33:30 +0500 | From | Fawad Lateef <> | Subject | Re: large files unnecessary trashing filesystem cache? |
| |
On 10/19/05, Badari Pulavarty <pbadari@gmail.com> wrote: > On Tue, 2005-10-18 at 23:58 +0200, Bodo Eggert wrote: > > Changing a few programs will only partly cover the problems. > > > > I guess the solution would be using random cache eviction rather than > > a FIFO. I never took a look the cache mechanism, so I may very well be > > wrong here. > > Read-only pages should be re-cycled really easily & quickly. I can't > belive read-only pages are causing you all the trouble. >
I don't think the file is marked read-only ... that is when it is accessed for reading the cache will contain the new file data and the previous cached data will be lost .... So how u can say that read-only pages or read-pages are not causing the problem ??
And I think the large files trashing filesystem caching problem can be handled by the application using direct I/O or that must and might already be managed by the file-system it-self because I think besides application and file-system there isn't any thing present which can detect the file currently accessing is a large file (as underlying layer deals with blocks of data, or at block level with sectors and u can't say what kind of data it is) ....
Is I m correct ??? or missing something ??
-- Fawad Lateef - 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/
| |