Ryan Ding
2015-Aug-04 06:16 UTC
[Ocfs2-devel] [PATCH 0/9 v6] ocfs2: support append O_DIRECT write
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
Joseph Qi
2015-Aug-04 09:03 UTC
[Ocfs2-devel] [PATCH 0/9 v6] ocfs2: support append O_DIRECT write
Hi Ryan, On 2015/8/4 14:16, Ryan Ding wrote:> 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? >We introduced the append direct io because originally ocfs2 would fall back to buffer io in case of thin provision, which was not the actual behavior that user expect. I didn't get you that more pages would be needed during direct io. Could you please explain it more clearly? Thanks, Joseph> Thanks, > Ryan > >