[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ocfs2-users
Subject:    Re: [Ocfs2-users] OCFS2 and berkeley database files
From:       Joel Becker <Joel.Becker () oracle ! com>
Date:       2006-12-07 20:52:37
Message-ID: 20061207205237.GI31751 () ca-server1 ! us ! oracle ! com
[Download RAW message or body]

On Wed, Dec 06, 2006 at 05:39:28PM -0800, Alexei_Roudnev wrote:
> Many sources are saying, that maintaining syncronzied memory (mmap to the
> same area == you must syncronized shared memory between 2 servers) is not a
> trivial task. Oracle is doing it inside RAC luster for some objects only,
> using CSSD.

	It's not trivial, but it is certainly doable.  The memory does
not have to be fully synchronized, nothing in a cache is.  All that
matters is that it _appears_ synchronized.
	The kernel provides mechanisms to know when a memory page is
written to.  OCFS2 must have all other nodes flush their copy.  Then,
when the other nodes want to read that memory page, OCFS2 knows to load
it from the disk.
	It's very similar to sharing page cache data for read(2) and
write(2).  When a writing node modifies some data, the other nodes are
told to forget their old copies.  The only difference is in the kernel
mechanisms (the read and write paths are easy, whereas the page access
paths are more complex).

Joel

-- 

"But all my words come back to me
 In shades of mediocrity.
 Like emptiness in harmony
 I need someone to comfort me."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127

_______________________________________________
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic