From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 24 13:20:12 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03BFF16A4BF for ; Sun, 24 Aug 2003 13:20:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 640E743FF2 for ; Sun, 24 Aug 2003 13:20:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7OKKAUp034773 for ; Sun, 24 Aug 2003 13:20:10 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7OKKAiO034772; Sun, 24 Aug 2003 13:20:10 -0700 (PDT) Resent-Date: Sun, 24 Aug 2003 13:20:10 -0700 (PDT) Resent-Message-Id: <200308242020.h7OKKAiO034772@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thorsten Kuehnemann Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F75D16A4C0 for ; Sun, 24 Aug 2003 13:10:55 -0700 (PDT) Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7721543FE0 for ; Sun, 24 Aug 2003 13:10:54 -0700 (PDT) (envelope-from tk@ef80.jnx.de) Received: from Haby.thorstenK.nu (213.54.46.165) by webmail.tiscali.de (6.7.019) id 3F2FB429005046DC for FreeBSD-gnats-submit@freebsd.org; Sun, 24 Aug 2003 22:10:53 +0200 Received: from ef80.jnx.de (ef80.thorstenK.nu [10.0.0.42]) by Haby.thorstenK.nu (8.12.9/8.12.9) with ESMTP id h7OKApZN009416 for ; Sun, 24 Aug 2003 22:10:52 +0200 (CEST) (envelope-from tk@ef80.jnx.de) Received: from ef80.jnx.de (localhost.jnx.de [127.0.0.1]) by ef80.jnx.de (8.12.9/8.12.9) with ESMTP id h7OKAvej001266 for ; Sun, 24 Aug 2003 22:10:57 +0200 (CEST) (envelope-from tk@ef80.jnx.de) Received: (from tk@localhost) by ef80.jnx.de (8.12.9/8.12.9/Submit) id h7OKAvVT001265; Sun, 24 Aug 2003 22:10:57 +0200 (CEST) Message-Id: <200308242010.h7OKAvVT001265@ef80.jnx.de> Date: Sun, 24 Aug 2003 22:10:57 +0200 (CEST) From: Thorsten Kuehnemann To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/55934: kernel panics while restoring into vinum volume with 64MB RAM X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thorsten Kuehnemann List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2003 20:20:12 -0000 >Number: 55934 >Category: kern >Synopsis: kernel panics while restoring into vinum volume with 64MB RAM >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 24 13:20:09 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Thorsten Kuehnemann >Release: FreeBSD 5.1-RELEASE-p2 i386 >Organization: private >Environment: System: FreeBSD ef80.jnx.de 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #0: Wed Aug 20 13:41:44 CEST 2003 tk@ef80.jnx.de:/home/usr/obj/home/usr/src/sys/GENERIC-DEBUG i386 GENERIC-DEBUG is GENERIC with activated "makeoptions DEBUG=-g" The machine has only 64 MB RAM. >Description: While restoring a filesystem into a vinum volume /dev/vinum/root the kernel panics with the message: panic: kmem_malloc(4096): kmem_map too small: 27398144 total allocated Restoring the same data into a manually calculated overlay partition /dev/da0s1a (as described in Chapter 13.9.2 of the Handbook) works without problems. >How-To-Repeat: On a system with only 64 MB RAM create a big vinum volume for root and start to dump/restore all filesystems (with populated /usr/src and /usr/ports) into the new volume. >Fix: 1. Add the following line to the file /boot/lader.conf: kern.vm.kmem.size="59000000" Question to the kernel expert: Is it a good idea to change the default calculation of vm_kmem_size in /sys/kern/kern_malloc.c for low memory systems (for example lower VM_KMEM_SIZE_SCALE)??? or 2. Inrease the physical RAM size to a minimum of 128MB. >Release-Note: >Audit-Trail: >Unformatted: