All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] OCFS2 cache coherent quesiton
@ 2016-04-13 11:17 Gechangwei
  2016-04-13 19:29 ` Gang He
  0 siblings, 1 reply; 2+ messages in thread
From: Gechangwei @ 2016-04-13 11:17 UTC (permalink / raw)
  To: ocfs2-devel

Hi OCFS2 experts,

According to OCFS2 user guide, OCFS2 supports cache consistency, which means one node writes to shared disk while another node can get the newest data just written.

I am working hard on OCFS2 kernel code. I am confused that OCFS2 also adopts page cache provided by Linux Kernel, however, page cache does not know anything about other nodes in cluster.

Well, my question is that if data is cached by page cache in one node, how could another node read the newest data from it? At this scenario, the page cache is dirty and the disk data is old. How OCFS2 can support cache consistency?

Thanks,

Best regards.


Gechangwei
H3C Technologies Co., Limited


-------------------------------------------------------------------------------------------------------------------------------------
????????????????????????????????????????
????????????????????????????????????????
????????????????????????????????????????
???
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20160413/f731e386/attachment.html 

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

* [Ocfs2-devel] OCFS2 cache coherent quesiton
  2016-04-13 11:17 [Ocfs2-devel] OCFS2 cache coherent quesiton Gechangwei
@ 2016-04-13 19:29 ` Gang He
  0 siblings, 0 replies; 2+ messages in thread
From: Gang He @ 2016-04-13 19:29 UTC (permalink / raw)
  To: ocfs2-devel

Hello Changwei,

You can take a look at dlm_lock related code, dlm_lock callback functions will handle how to make other nodes' certain inode page cache invalidate. Or, force the writing page cache to disk before read the data from other nodes.


Thanks
Gang


>>> 
> Hi OCFS2 experts,
> 
> According to OCFS2 user guide, OCFS2 supports cache consistency, which means 
> one node writes to shared disk while another node can get the newest data 
> just written.
> 
> I am working hard on OCFS2 kernel code. I am confused that OCFS2 also adopts 
> page cache provided by Linux Kernel, however, page cache does not know 
> anything about other nodes in cluster.
> 
> Well, my question is that if data is cached by page cache in one node, how 
> could another node read the newest data from it? At this scenario, the page 
> cache is dirty and the disk data is old. How OCFS2 can support cache 
> consistency?
> 
> Thanks,
> 
> Best regards.
> 
> 
> Gechangwei
> H3C Technologies Co., Limited
> 
> 
> ----------------------------------------------------------------------------
> ---------------------------------------------------------
> ????????????????????????????????????????
> ????????????????????????????????????????
> ????????????????????????????????????????
> ???
> This e-mail and its attachments contain confidential information from H3C, 
> which is
> intended only for the person or entity whose address is listed above. Any 
> use of the
> information contained herein in any way (including, but not limited to, 
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the 
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please 
> notify the sender
> by phone or email immediately and delete it!

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

end of thread, other threads:[~2016-04-13 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-13 11:17 [Ocfs2-devel] OCFS2 cache coherent quesiton Gechangwei
2016-04-13 19:29 ` Gang He

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.