* tuning/turning off disc caching?
@ 2002-09-05 17:37 Kianusch Sayah Karadji
2002-09-05 19:02 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Kianusch Sayah Karadji @ 2002-09-05 17:37 UTC (permalink / raw)
To: linux-kernel
Hi!
Is there a way tuning (down) or turning off the disc caching in Linux for
certain devices?
What I do is writing data via dd or mkisofs directly to a DVD-RAM
(/dev/srX). The kernel sees the DVD-RAM as a hard-disc. It works fine.
The Problem is that during the write operation (which takes some time for
4,7GB data). The system slows down extremely and all the memory is used
for caching.
Please include me as CC, since I'm not on the list.
Regards
K. Sayah Karadji
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: tuning/turning off disc caching?
2002-09-05 17:37 tuning/turning off disc caching? Kianusch Sayah Karadji
@ 2002-09-05 19:02 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2002-09-05 19:02 UTC (permalink / raw)
To: Kianusch Sayah Karadji; +Cc: linux-kernel
Kianusch Sayah Karadji wrote:
>
> Hi!
>
> Is there a way tuning (down) or turning off the disc caching in Linux for
> certain devices?
>
> What I do is writing data via dd or mkisofs directly to a DVD-RAM
> (/dev/srX). The kernel sees the DVD-RAM as a hard-disc. It works fine.
> The Problem is that during the write operation (which takes some time for
> 4,7GB data). The system slows down extremely and all the memory is used
> for caching.
>
There are no very good solutions to this at present. The following should
help:
- Drastically decrease the dirty memory thresholds in /proc/sys/vm/bdflush
- Make the writing application run fsync(fd) every few megabytes.
- Run /bin/sync once per second.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-05 19:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05 17:37 tuning/turning off disc caching? Kianusch Sayah Karadji
2002-09-05 19:02 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox