Date: Fri, 25 Jan 2019 10:38:30 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234576] hastd exits ungracefully Message-ID: <bug-234576-227-7FdtBijD2F@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-234576-227@https.bugs.freebsd.org/bugzilla/> References: <bug-234576-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234576 --- Comment #2 from Paul Thornton <freebsd-bugzilla@prt.org> --- I have reproduced this problem in the simplest form I can with ZFS: A ZFS pool made up of one HAST device, with a disk as the underlying storage. It appears (as is always the case when you make statements like this) that I was wrong earlier - this problem *is* directly related to the issues I had with 11.x and MAXPHYS being too small - my added debug to hastd/primary.c showed: hastd: disk2 (primary) hastd 3741 - - [disk2] (primary) G_GATE_CMD_START failed: Cannot allocate memory. This is in the source as being 'impossible' and appears to have happened. allocated=20200 length=100000 maxphys=20000 I don't know enough about the internals of GEOM_GATE to know what/why/how this changed between 11.x and 12.0 but I've changed my patch to allow a length of 0x100000 which now makes it work - this is likely not the best fix for the problem, and someone with more knowledge may want to chime in with a better solution. I've also not done extensive testing so there may be occasions where the problem recurs, but the extra log message remains in the patch so you can immediately see if this is/was a problem. I'm testing this with bonnie++ in case that makes a material difference (which is how we tested under 11.x) -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234576-227-7FdtBijD2F>
