All of lore.kernel.org
 help / color / mirror / Atom feed
* difference between xip and o_direct
@ 2013-12-05 22:17 jon ernst
  2013-12-05 23:51 ` Theodore Ts'o
  0 siblings, 1 reply; 3+ messages in thread
From: jon ernst @ 2013-12-05 22:17 UTC (permalink / raw)
  To: linux-fsdevel

Hi,
I am trying to understand difference between xip and o_direct.

For XIP, document xip.txt says
"instead of keeping
data in the page cache, the need to have a page cache copy is eliminated
completely. With execute-in-place, read&write type operations are performed
directly from/to the memory backed storage device."

For O_Direct,

" File I/O is done directly to/from user-
space buffers.  " from manual of open(2)

So, are those 2 trying to do the same thing ? The difference I can
tell is, XIP option can be used when mounting fs. O_Direct is used in
open system-call.
Can anybody kindly teach me what are other differences?

thank you!

Jon

^ permalink raw reply	[flat|nested] 3+ messages in thread
* difference between xip and o_direct.
@ 2013-12-05 22:47 jon ernst
  0 siblings, 0 replies; 3+ messages in thread
From: jon ernst @ 2013-12-05 22:47 UTC (permalink / raw)
  To: linux-ext4@vger.kernel.org List

Hi,
I am trying to understand difference between xip and o_direct.

For XIP, document xip.txt says
"instead of keeping
data in the page cache, the need to have a page cache copy is eliminated
completely. With execute-in-place, read&write type operations are performed
directly from/to the memory backed storage device."

For O_Direct,

" File I/O is done directly to/from user-
space buffers.  " from manual of open(2)

So, are those 2 trying to do the same thing ? The difference I can
tell is, XIP option can be used when mounting fs. O_Direct is used in
open system-call.
Can anybody kindly teach me what are other differences?

thank you!

Jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-06  2:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 22:17 difference between xip and o_direct jon ernst
2013-12-05 23:51 ` Theodore Ts'o
  -- strict thread matches above, loose matches on Subject: below --
2013-12-05 22:47 jon ernst

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.