Re: Is there a way to turn file caching off ?

From: Andrea Arcangeli (andrea@suse.de)
Date: Wed Apr 18 2001 - 14:00:00 EST


On Wed, Apr 18, 2001 at 11:21:46AM -0700, David Schwartz wrote:
>
>
> [..] If we assume the caching isn't helping [..]

If you know kernel data cache doesn't help your workload at all then you want
use O_DIRECT at least to save the CPU. You can run 2.4.4pre3aa3 or apply the
rawio-3 patch and then the o_direct-2 patch on top of 2.4.4pre3 if you want
O_DIRECT support (it also fixes the O_SYNC wait for locked inode bug noticed by
Marcelo).

You will find detailed explanation on the O_DIRECT feature and where to
find the patches if you grep for subject O_DIRECT in the l-k list in the
messages of this month.

Andrea
-
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/



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:27 EST