From: Andrew Morton <akpm@zip.com.au>
To: Kianusch Sayah Karadji <kianusch@sk-tech.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tuning/turning off disc caching?
Date: Thu, 05 Sep 2002 12:02:59 -0700 [thread overview]
Message-ID: <3D77AA63.D4E5AA9F@zip.com.au> (raw)
In-Reply-To: Pine.LNX.4.43.0209051929160.2388-100000@merlin
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.
prev parent reply other threads:[~2002-09-05 19:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 17:37 tuning/turning off disc caching? Kianusch Sayah Karadji
2002-09-05 19:02 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D77AA63.D4E5AA9F@zip.com.au \
--to=akpm@zip.com.au \
--cc=kianusch@sk-tech.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.