From owner-freebsd-current@FreeBSD.ORG Thu May 7 21:07:43 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35D575CE for ; Thu, 7 May 2015 21:07:43 +0000 (UTC) Received: from mail03.SiriusCloud.jp (mail03.SiriusCloud.jp [219.118.72.3]) by mx1.freebsd.org (Postfix) with ESMTP id 070BA1E39 for ; Thu, 7 May 2015 21:07:42 +0000 (UTC) Received: from artemis (pl2497.nas82m.p-tokyo.nttpc.ne.jp [157.65.58.193]) (Authenticated sender: jack@st.rim.or.jp) by access03.SiriusCloud.jp (Postfix) with ESMTPA id DEC473000243D for ; Fri, 8 May 2015 06:02:02 +0900 (JST) Authentication-Results: access03.SiriusCloud.jp; dkim=none (no signature) header.i=unknown; x-dkim-adsp=none (insecure policy) Message-ID: <8A0CADA1C80C4310BFFA1828554F473C@ad.peach.ne.jp> From: "Daisuke Aoyama" To: Subject: hastd fail and panic on MAXPHYS=1m Date: Fri, 8 May 2015 06:02:03 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: clamav-milter 0.97.8 at si-mail03 X-Virus-Status: Clean X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2015 21:07:43 -0000 Hi all, I have problem with MAXPHYS=1m. (I don't know MAXPHYS=1m works on HAST.) I put "options MAXPHYS=(1024*1024)" in kernel config. Then, update primary node to the kernel and world. If the role back to primary on the machine, writing to the hast device cause an error and panic. I didn't check carefully, but it seems that geom_gate.ko use MAXPHYS=1m and hastd use MAXPHYS=128k. Of course, secondary is MAXPHYS=128k at this time. Is it an expected result? Here is a log while manually mounted test: [DEBUG][2] [hast1] (primary) ggate_recv: (0x20c4b240) Request received from the kernel: READ(163840, 28672). [DEBUG][2] [hast1] (primary) ggate_recv: (0x20c4b240) Moving request to the send queues. [DEBUG][2] [hast1] (primary) ggate_recv: Taking free request. [DEBUG][2] [hast1] (primary) ggate_recv: (0x20c4b1f0) Gotg_vfs_done():hast/hast1p1[WRITE(offset=174784512, length=393216)]error = 6 /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem /mnt: got error 6 while accessing filesystem free request. [DEBUG][2] [hast1] (primary) ggate_recv: (0x20c4b1f0) Waiting for request from the kernel. [DEBUG][2] [hast1] (primary) local_send: (0x20c4b240) Got request. [DEBUG][2] [hast1] (primary) local_send: (0x20c4b240) Moving request to the done queue. [DEBUG][2] [hast1] (primary) [DEBUG][2] [hast1] (primary) ggate_send: (0x20c4b240) Got request. local_send: Taking request. [DEBUG][2] [hast1] (primary) ggate_send: (0x20c4b240) Moving request to the free queue. [DEBUG][2] [hast1] (primary) ggate_send: Taking request. [ERROR] [hast1] (primary) G_GATE_CMD_START failed: Cannot allocate memory. [DEBUG][1] Unable to receive event header: Socket is not connected. softdep_deallocate_dependencies: got error 6 while accessing filesystem /dev: got error 6 while accessing filesystem panic: brelvp: Buffer 0xb33129d0 not on queue. cpuid = 3 KDB: enter: panic -- Daisuke Aoyama