From owner-cvs-src-old@FreeBSD.ORG Tue Jun 28 19:27:54 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6638B1065675 for ; Tue, 28 Jun 2011 19:27:54 +0000 (UTC) (envelope-from trociny@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3AC668FC14 for ; Tue, 28 Jun 2011 19:27:54 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p5SJRsFX088822 for ; Tue, 28 Jun 2011 19:27:54 GMT (envelope-from trociny@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p5SJRsFg088821 for cvs-src-old@freebsd.org; Tue, 28 Jun 2011 19:27:54 GMT (envelope-from trociny@repoman.freebsd.org) Message-Id: <201106281927.p5SJRsFg088821@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to trociny@repoman.freebsd.org using -f From: Mikolaj Golub Date: Tue, 28 Jun 2011 19:27:34 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sbin/hastctl hastctl.c src/sbin/hastd control.c hast.h primary.c secondary.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2011 19:27:54 -0000 trociny 2011-06-28 19:27:34 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sbin/hastctl hastctl.c sbin/hastd control.c hast.h primary.c secondary.c Log: SVN rev 223651 on 2011-06-28 19:27:34Z by trociny MFC r222164, r222228, r222467, r223181: r222164 (pjd): Recognize HIO_FLUSH requests. r222228 (pjd): Keep statistics on number of BIO_READ, BIO_WRITE, BIO_DELETE and BIO_FLUSH requests as well as number of activemap updates. Number of BIO_WRITEs and activemap updates are especially interesting, because if those two are too close to each other, it means that your workload needs bigger number of dirty extents. Activemap should be updated as rarely as possible. r222467: If READ from the local node failed we send the request to the remote node. There is no use in doing this for synchronization requests. r223181: In HAST we use two sockets - one for only sending the data and one for only receiving the data. In r220271 the unused directions were disabled using shutdown(2). Unfortunately, this broke automatic receive buffer sizing, which currently works only for connections in ETASBLISHED state. It was a root cause of the issue reported by users, when connection between primary and secondary could get stuck. Disable the code introduced in r220271 until the issue with automatic buffer sizing is not resolved. Reported by: Daniel Kalchev , danger, sobomax Tested by: Daniel Kalchev , danger Approved by: pjd (mentor) Revision Changes Path 1.1.2.8 +11 -0 src/sbin/hastctl/hastctl.c 1.1.2.8 +17 -0 src/sbin/hastd/control.c 1.1.2.9 +11 -0 src/sbin/hastd/hast.h 1.3.2.15 +14 -1 src/sbin/hastd/primary.c 1.1.2.11 +19 -0 src/sbin/hastd/secondary.c