From owner-freebsd-stable@FreeBSD.ORG Thu Jun 2 09:16:22 2011 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 173571065676; Thu, 2 Jun 2011 09:16:22 +0000 (UTC) (envelope-from yurius.r@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id DF25A8FC13; Thu, 2 Jun 2011 09:16:21 +0000 (UTC) Received: by pvg11 with SMTP id 11so388129pvg.13 for ; Thu, 02 Jun 2011 02:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=qvrrlF+6TZkGxp8YGqe+BPvbWmCy8YFyPDHmcNuYcdg=; b=RRX3j0r/MWQkpDqQxU9z3zS2abHiTkkLZXF0SLnIipebiDBsDT/w4f84jSW/lCL6T9 EjlwEJ5PIjtyfEUenr6i9Zn8ChGU9MjagPnRXKMY4ARl+ZyrrSXpwLoAstXip+WNiS97 LjbnUZRit1pALF9s15YzalyMVK7pXnih+vnhk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=fmNtBn/hZiBDLLCKlxZP2cjBAy9CuWT02I37LgYttu1O1Bgj+x1Z0Pvd5Vd4RAN4ez tGarSzGkscjef1J9CyQQAqpGQoxOxOiwoYf3pyLEO4vtqwKx4lU4L824/zkC56i3s37F a73MP9vTmgzYjp5Nk9aDrpCRLgW7xO6h4YB90= Received: by 10.143.154.11 with SMTP id g11mr89502wfo.38.1307004466101; Thu, 02 Jun 2011 01:47:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.111.7 with HTTP; Thu, 2 Jun 2011 01:47:26 -0700 (PDT) From: Yurius Radomskyi Date: Thu, 2 Jun 2011 11:47:26 +0300 Message-ID: To: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: hast syncronization speed issue 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: Thu, 02 Jun 2011 09:16:22 -0000 Hi, I have a HAST device set up between two systems. I experience very low speed with dirty blocks synchronization after split-brain condition been recovered: it's 200KB/s average on 1Gbit link. On the other side, when i copy a big file to the zfs partition that is created on top of the hast device the synchronization speed between the host is 50MB/s (wich is not too high for 1Gbit link, but acceptable.) uname -a FreeBSD rest 8.2-STABLE FreeBSD 8.2-STABLE #3: Tue May 31 18:51:19 EEST 2011 root@rest:/usr/obj/usr/src/sys/GENERIC amd64 Both systems have the same hardware and FreeBSD version. cat /etc/hast.conf resource mirror0 { local /dev/mfid0s3 on rest2 { remote 192.168.1.51 } on rest { remote 192.168.1.52 } } hastctl status mirror0: role: primary provname: mirror0 localpath: /dev/mfid0s3 extentsize: 2097152 (2.0MB) keepdirty: 64 remoteaddr: 192.168.3.53 replication: fullsync status: complete dirty: 26944208896 (25GB) df -h Filesystem Size Used Avail Capacity Mounted on failover 34G 31G 2.9G 91% /failover The /dev/mfid0s3 size is 34G, and synchronization has been running for 19 hours and still 25G remaining. That's terribly slow! What could be the reason of that? The other question that bothers me is that i filled the partition to 91% and it was written to the secondary host (at list the data was transfered to the secondary host at rate 50MB/s), but hast still showed all 34G of data as dirty after the copying. Why is that so? P.S. I am not in the list, so please, CC