From: Nuno Silva <nuno.silva@vgertech.com>
To: Folkert van Heusden <folkert@vanheusden.com>
Cc: "'Rik van Riel'" <riel@conectiva.com.br>,
"'Jean-Eric Cuendet'" <jean-eric.cuendet@linkvest.com>,
linux-kernel@vger.kernel.org
Subject: Re: Disabling file system caching
Date: Mon, 20 Jan 2003 21:39:30 +0000 [thread overview]
Message-ID: <3E2C6C92.6060505@vgertech.com> (raw)
In-Reply-To: <004001c2c0bc$d1e69750$3640a8c0@boemboem>
Folkert van Heusden wrote:
>>>Is it possible to disable file caching for a given partition or mount?
>>
>>No, if you do that mmap(), read(), write() etc. would be impossible.
>
>
> Hmmm, maybe there's some way to explicitly flush the read/write-cache?
> Ok, sync will do nice for the write-cache, but for the read-one?
AFAIK, you simply can't... I'm trying to do this for several months and
no luck. Linux simply caches everything it can in the read-cache. For
99% of all cases this is very good but, for some situations, this is not
desireable.
For the write cache, you can minimize memory usage playing with
/proc/sys/vm (see Documentation/filesystems/proc.txt).
Regards,
Nuno Silva
>
>
> -
> 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/
>
next prev parent reply other threads:[~2003-01-20 21:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-19 17:05 Disabling file system caching Jean-Eric Cuendet
2003-01-20 1:05 ` Rik van Riel
2003-01-20 19:47 ` Folkert van Heusden
2003-01-20 21:39 ` Nuno Silva [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-20 7:47 Balbir
2003-01-20 14:21 ` Jan Hudec
2003-01-20 12:52 Martin Knoblauch
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=3E2C6C92.6060505@vgertech.com \
--to=nuno.silva@vgertech.com \
--cc=folkert@vanheusden.com \
--cc=jean-eric.cuendet@linkvest.com \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@conectiva.com.br \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox