All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 0/9 v6] ocfs2: support append O_DIRECT write
@ 2015-08-04  6:16 Ryan Ding
  2015-08-04  9:03 ` Joseph Qi
  0 siblings, 1 reply; 14+ messages in thread
From: Ryan Ding @ 2015-08-04  6:16 UTC (permalink / raw)
  To: ocfs2-devel

Hi Joseph,

Sorry for bothering you with the old patches. But I really need to know 
what this patch is for.

https://oss.oracle.com/pipermail/ocfs2-devel/2015-January/010496.html

 From above email archive, you mentioned those patches aim to reduce the 
host page cache consumption. But in my opinion, after append direct io, 
the page used for buffer is clean. System can realloc those cached 
pages. We can even call invalidate_mapping_pages to fast that process. 
Maybe more pages will be needed during direct io. But direct io size can 
not be too large, right?

Thanks,
Ryan

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [Ocfs2-devel] [PATCH 0/9 v6] ocfs2: support append O_DIRECT write
@ 2015-01-20  8:01 Joseph Qi
  2015-01-20  8:26 ` Junxiao Bi
  0 siblings, 1 reply; 14+ messages in thread
From: Joseph Qi @ 2015-01-20  8:01 UTC (permalink / raw)
  To: ocfs2-devel

Currently in case of append O_DIRECT write (block not allocated yet),
ocfs2 will fall back to buffered I/O. This has some disadvantages.
Firstly, it is not the behavior as expected.
Secondly, it will consume huge page cache, e.g. in mass backup scenario.
Thirdly, modern filesystems such as ext4 support this feature.

In this patch set, the direct I/O write doesn't fallback to buffer I/O
write any more because the allocate blocks are enabled in direct I/O
now.

changelog:
v6 <- v5:
-- Take Mark's advice to use prefix "dio-" to distinguish dio orphan
   entry from unlink/rename.
-- Take Mark's advice to treat this feature as a ro compat feature.
-- Fix a bug in case of not cluster aligned io, cluster_align should
   be !zero_len, not !!zero_len.
-- Fix a bug in case of fallocate with FALLOC_FL_KEEP_SIZE.
-- Fix the wrong *ppos and written when completing the rest request
   using buffer io.

Corresponding ocfs2 tools (mkfs.ocfs2, tunefs.ocfs2, fsck.ocfs2, etc.)
will be updated later.

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

end of thread, other threads:[~2015-08-06  2:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-04  6:16 [Ocfs2-devel] [PATCH 0/9 v6] ocfs2: support append O_DIRECT write Ryan Ding
2015-08-04  9:03 ` Joseph Qi
2015-08-05  4:40   ` Ryan Ding
2015-08-05  6:40     ` Joseph Qi
2015-08-05  8:07       ` Ryan Ding
2015-08-05 11:18         ` Joseph Qi
2015-08-06  2:35           ` Ryan Ding
2015-08-05  7:08     ` Joseph Qi
  -- strict thread matches above, loose matches on Subject: below --
2015-01-20  8:01 Joseph Qi
2015-01-20  8:26 ` Junxiao Bi
2015-01-20  9:00   ` Joseph Qi
2015-01-22  2:10     ` Junxiao Bi
2015-01-22  3:54       ` Joseph Qi
2015-01-22  5:06         ` Junxiao Bi

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.