Re: Disable cache disk

From: Michael Tokarev
Date: Wed Mar 30 2005 - 10:35:38 EST


Yves Crespin wrote:
Hello,

I write a lot of files on a USB disk for video monitoring archiving.
The write program is faster than the USB.
Cache disk take all RAM and kernel start swapping and everything become very slow.
1/ is-it possible to *really* be synchronize. I prefer to have a blocked write() than use cache and get swap!
2/ is-it possible to disable cache disk ?

Try open() with O_DIRECT flag for a start.

/mjt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/