Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2010 18:30:36 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Mikolaj Golub <to.my.trociny@gmail.com>
Cc:        freebsd-stable@freebsd.org, Pete French <petefrench@ticketswitch.com>
Subject:   Re: hast vs ggate+gmirror sychrnoisation speed
Message-ID:  <20101028163036.GA2347@garage.freebsd.pl>
In-Reply-To: <86wrp3wj67.fsf@kopusha.home.net>
References:  <E1PAlxN-000H5x-Eh@dilbert.ticketswitch.com> <86wrp3wj67.fsf@kopusha.home.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 b=
e some
> synchronization is needed here?
>=20
> 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?

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--rwEMma7ioTxnRzrJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkzJpSwACgkQForvXbEpPzSqfwCdEOoi4BV1Iu0NiRrybQvnrdKG
rU8AoLZfOONZqaiXOSBdUO5XP9bWEOMi
=B6zi
-----END PGP SIGNATURE-----

--rwEMma7ioTxnRzrJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101028163036.GA2347>