Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: PCDATA invalid Char value 26 in Entity, line: 140 in /srv/lkml.org/scripts/getmail.php on line 208
Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: PCDATA invalid Char value 4 in Entity, line: 140 in /srv/lkml.org/scripts/getmail.php on line 208
Warning: XSLTProcessor::transformToXml() expects parameter 1 to be object, boolean given in /srv/lkml.org/scripts/getmail.php on line 211
This message generated a parse failure. Raw output follows here. Please use 'back' to navigate.
From devnull@lkml.org Wed Dec 3 06:51:37 2008
Delivery-date: Thu, 11 Jan 2007 13:12:12 +0000
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030308AbXAKMeS (ORCPT ); Thu, 11 Jan 2007 07:34:18 -0500
Received: from spirit.analogic.com ([204.178.40.4]:4792 "EHLO spirit.analogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030307AbXAKMeR convert rfc822-to-8bit (ORCPT ); Thu, 11 Jan 2007 07:34:17 -0500
Received: from chaos.analogic.com ([10.112.50.11]) by phoenix.analogic.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 11 Jan 2007 07:34:05 -0500
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Received: from chaos.analogic.com (localhost [127.0.0.1]) by chaos.analogic.com (8.12.11/8.12.11) with ESMTP id l0BCY5sn019381; Thu, 11 Jan 2007 07:34:05 -0500
Received: (from linux-os@localhost) by chaos.analogic.com (8.12.11/8.12.11/Submit) id l0BCY02u019380; Thu, 11 Jan 2007 07:34:00 -0500
X-OriginalArrivalTime: 11 Jan 2007 12:34:05.0915 (UTC) FILETIME=[C87C3AB0:01C7357C]
content-class: urn:content-classes:message
Subject: Re: O_DIRECT question
Date: Thu, 11 Jan 2007 07:34:00 -0500
Message-Id:
In-Reply-To: <6d6a94c50701101857v2af1e097xde69e592135e54ae@mail.gmail.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: O_DIRECT question
Thread-Index: Acc1fMiPVFyFTizbRPaAXwTuk/kVtw==
References: <6d6a94c50701101857v2af1e097xde69e592135e54ae@mail.gmail.com>
From: "linux-os \(Dick Johnson\)"
To: "Aubrey"
Cc: "Hua Zhong" , "Hugh Dickins" , , , , , ,
Reply-To: "linux-os \(Dick Johnson\)"
Sender: linux-kernel-owner@vger.kernel.org
Precedence: bulk
X-Mailing-List: linux-kernel@vger.kernel.org
On Wed, 10 Jan 2007, Aubrey wrote:
> Hi all,
>
> Opening file with O_DIRECT flag can do the un-buffered read/write access.
> So if I need un-buffered access, I have to change all of my
> applications to add this flag. What's more, Some scripts like "cp
> oldfile newfile" still use pagecache and buffer.
> Now, my question is, is there a existing way to mount a filesystem
> with O_DIRECT flag? so that I don't need to change anything in my
> system. If there is no option so far, What is the right way to achieve
> my purpose?
>
> Thanks a lot.
> -Aubrey
> -
I don't think O_DIRECT ever did what a lot of folks expect, i.e.,
write this buffer of data to the physical device _now_. All I/O
ends up being buffered. The `man` page states that the I/O will
be synchronous, that at the conclusion of the call, data will have
been transferred. However, the data written probably will not be
in the physical device, perhaps only in a DMA-able buffer with
a promise to get it to the SCSI device, soon.
Maybe you need to say why you want to use O_DIRECT with its terrible
performance?
Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5592.72 BogoMips).
New book: http://www.AbominableFirebug.com/
_
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
-
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/