From owner-freebsd-stable@FreeBSD.ORG Wed Oct 27 19:05:29 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DA9C106564A; Wed, 27 Oct 2010 19:05:29 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 60C328FC15; Wed, 27 Oct 2010 19:05:27 +0000 (UTC) Received: by fxm17 with SMTP id 17so1084387fxm.13 for ; Wed, 27 Oct 2010 12:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :x-comment-to:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=ed0T6D1gzKSh9p+SWKemgMI9kSpJ8aYVzOeKLKnnuQ4=; b=SYZtw0fUsYAmnWq3+Xn8Zh8RTcj61AeLYChwGIQdwwfw0Mc8ZUQYWy5b/ME4TZKJM+ yByYeqndkyOTM5wR21ckLTqkqQLStfqGwBh2y3OLw5WFksWHq7t+4r+naqbNe1YQTLPl YGfVGRaD/xtP/bM+y1KuZo1qCYvZXrtQhWri8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:x-comment-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=VLcUJ0KbHX18r3VeEiaQxmqmVmsMfry54RnhPmqNGURpEkE6bui015mINLpNrmx9sM z+26rcA5yEkBW+Illhlsk4exnwAcmOx+9Oi3PfGYVLBz5KwpvEfwIuMDa43qufsqFRvM Dd43gkDFNfeEe2wf+bERD16PltgQt4GqyJWmY= Received: by 10.223.96.15 with SMTP id f15mr2735354fan.10.1288206327129; Wed, 27 Oct 2010 12:05:27 -0700 (PDT) Received: from localhost ([95.69.174.185]) by mx.google.com with ESMTPS id b15sm69563fah.4.2010.10.27.12.05.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 27 Oct 2010 12:05:25 -0700 (PDT) From: Mikolaj Golub To: Pete French References: X-Comment-To: Pete French Date: Wed, 27 Oct 2010 22:05:20 +0300 In-Reply-To: (Pete French's message of "Tue, 26 Oct 2010 17:01:01 +0100") Message-ID: <86wrp3wj67.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pawel Jakub Dawidek , freebsd-stable@freebsd.org Subject: Re: hast vs ggate+gmirror sychrnoisation speed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 19:05:29 -0000 On Tue, 26 Oct 2010 17:01:01 +0100 Pete French wrote: PF> Actually, I just llooked I dmesg on the secondary - it is full PF> of messages thus: PF> Oct 26 15:44:59 serpentine-passive hastd[10394]: [serp0] (secondary) Unable to receive request header: RPC version wrong. PF> Oct 26 15:45:00 serpentine-passive hastd[782]: [serp0] (secondary) Worker process exited ungracefully (pid=10394, exitcode=75). PF> Oct 26 15:46:59 serpentine-passive hastd[10421]: [serp0] (secondary) Unable to receive request header: RPC version wrong. PF> Oct 26 15:47:04 serpentine-passive hastd[782]: [serp0] (secondary) Worker process exited ungracefully (pid=10421, exitcode=75). I saw this too but only sporadic messages so I forgot and did not investigate then this :-). Now running synchronization I see them too (but again only sporadic). Setting the assertion and looking at the received header: (gdb) list 309 goto fail; 310 311 if (hdr.version != HAST_PROTO_VERSION) { 312 assert(0); 313 errno = ERPCMISMATCH; 314 goto fail; 315 } 316 317 hdr.size = le32toh(hdr.size); 318 (gdb) p/x hdr $2 = {version = 0x9, size = 0x65657266} So it looks like garbage. 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. -- Mikolaj Golub