hast vs ggate+gmirror sychrnoisation speed
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Oct 28 16:31:21 UTC 2010
On Wed, Oct 27, 2010 at 10:05:20PM +0300, Mikolaj Golub wrote:
> In hast_proto_send() we send header and then data. Couldn't it be that
> remote_send and sync threads interfere and their packets are mixed? May be some
> synchronization is needed here?
>
> I set sleep(1) in hast_proto_send() between proto_send(header) and
> proto_send(data). The error started to occur frequently.
Synchronization requests are sent through the remote thread just like
regular I/O requests, exactly because of races that can occur.
I looked at the code and the keepalive packets arbe sent from another
thread. Could you try turning them off in primary.c and see if that
helps?
--
Pawel Jakub Dawidek http://www.wheelsystems.com
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20101028/3976825f/attachment.pgp
More information about the freebsd-stable
mailing list