From owner-freebsd-fs@FreeBSD.ORG Tue Dec 8 00:01:04 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6ACF1065672 for ; Tue, 8 Dec 2009 00:01:04 +0000 (UTC) (envelope-from mattjreimer@gmail.com) Received: from mail-px0-f192.google.com (mail-px0-f192.google.com [209.85.216.192]) by mx1.freebsd.org (Postfix) with ESMTP id 9EBAE8FC19 for ; Tue, 8 Dec 2009 00:01:03 +0000 (UTC) Received: by pxi30 with SMTP id 30so2223908pxi.14 for ; Mon, 07 Dec 2009 16:01:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=6Sa9OxI+kKXPKFqRsbuSVN1dZVGXbap2JxieYh0J9kA=; b=liIbv07PZt2zTz5nwJrtaGkBtmLiOHHDG8v0XUwYE/LYj9Oq6MBiQ0C2yWOfQiv9/c 43uUbCESlLvflYvzRCMscaIvIrpVkbl+X6a0y7OHWPaOWFdSoIpRnokomAFxw7sG5U+o KjizsngZlEncjzX5s5oeKL7pMdbuibbOOFlnA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AU9sK3XwMaxB1FDV2w7G6kVI8uEvp+a86OsZDonHCOmWOjXN7bHoz0v6GzpJkCijvj v4Ej58PZFBcMDqu7+QjsG43+oyqUyKy4QArEBWXY8AXaW/GqWf2JILGCcE3tdAzjnnAQ 9vZ5dWvosU2Qf8HiNe0v8rd1S/bf9KxEa/354= MIME-Version: 1.0 Received: by 10.143.26.32 with SMTP id d32mr805085wfj.297.1260230463367; Mon, 07 Dec 2009 16:01:03 -0800 (PST) Date: Mon, 7 Dec 2009 16:01:03 -0800 Message-ID: From: Matt Reimer To: freebsd-fs Content-Type: multipart/mixed; boundary=001636e0ac8f1aab05047a2c4518 Subject: PATCH: increase heap size for (gpt)zfsboot X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2009 00:01:04 -0000 --001636e0ac8f1aab05047a2c4518 Content-Type: text/plain; charset=ISO-8859-1 Enlarge the heap size for gptzfsboot and zfsboot. This is necessary so the ZFS code has enough memory to handle decompression and error recovery. Before this patch the heap grew from the end of the (gpt)zfsboot code and static data up to 640KB, possibly overrunning the stack. Now the heap is located at 16MB-64MB. Note that this requires machines with at least 64MB RAM, but this is not likely to be a problem on any machine running ZFS. Sponsored by: VPOP Technologies, Inc. Matt Reimer --001636e0ac8f1aab05047a2c4518 Content-Type: application/octet-stream; name="more-mem.patch" Content-Disposition: attachment; filename="more-mem.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g2xwmr700 LS0tIC9zeXMvYm9vdC9pMzg2L3pmc2Jvb3QvemZzYm9vdC5jLk9SSUcJMjAwOS0xMi0wNyAxMDoz MjoyMi4wMDAwMDAwMDAgLTA4MDAKKysrIC9zeXMvYm9vdC9pMzg2L3pmc2Jvb3QvemZzYm9vdC5j CTIwMDktMTItMDcgMTI6NDg6MDUuMDAwMDAwMDAwIC0wODAwCkBAIC0yNDEsOCArMjQxLDggQEAK IAlzdGF0aWMgY2hhciAqaGVhcF9lbmQ7CiAKIAlpZiAoIWhlYXBfbmV4dCkgewotCQloZWFwX25l eHQgPSAoY2hhciAqKSBkbWFkYXQgKyBzaXplb2YoKmRtYWRhdCk7Ci0JCWhlYXBfZW5kID0gKGNo YXIgKikgKDY0MCoxMDI0KTsKKwkJaGVhcF9uZXh0ID0gKGNoYXIgKikgKDE2ICogMTAyNCAqIDEw MjQpOworCQloZWFwX2VuZCA9IChjaGFyICopICg2NCAqIDEwMjQgKiAxMDI0KTsKIAl9CiAKIAlj aGFyICp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