mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: Artem Tashkinov <t.artem@lycos.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: A possibility of turning off file caching for certain operations
Date: Thu, 27 Apr 2006 10:32:56 +0200	[thread overview]
Message-ID: <1146126777.2894.18.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <20060427082922.77DB586B12@ws7-1.us4.outblaze.com>

On Thu, 2006-04-27 at 00:29 -0800, Artem Tashkinov wrote:
> A nice feature of emptying files and buffer cache was introduced in kernel 2.6.16 but my question is: Is it possible to turn off file caching for certain operations? E.g. I do not want the kernel to cache an ISO image which is being copied from HDD to the LAN or burned to CD.


it's called O_DIRECT and madvise()

but do you rEALLY REALLY want to disable caching? Caching, even a little
bit, is essential to get ok performance; if you disable caching it's
your responsibility to do all the things needed to get good IO
performance.


      reply	other threads:[~2006-04-27  8:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-27  8:29 Artem Tashkinov
2006-04-27  8:32 ` Arjan van de Ven [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=1146126777.2894.18.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=t.artem@lycos.com \
    /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

all inboxes | Powered by JetHome®