From owner-freebsd-stable@FreeBSD.ORG Fri Feb 22 06:14:13 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06F3016A403 for ; Fri, 22 Feb 2008 06:14:13 +0000 (UTC) (envelope-from iamdxy@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id AD6E313C474 for ; Fri, 22 Feb 2008 06:14:12 +0000 (UTC) (envelope-from iamdxy@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so550548pyb.10 for ; Thu, 21 Feb 2008 22:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=GasC5n05jEQfH169Jjn5oypHXpHNorstiBUHSU46zJ4=; b=J00WXI8276gf+Ct52rU5bhhQkuRHthG1i9blGBrnqez0bPLZf/6p/Z9+8uRzuvgtQoONl9m37e6W/3n3BiTtfGFm7M/a+EqtoglmAlAL7v//UiILcDGKN/QEtCtEIKL8rrTpDaIN9dFs9YeQShhHnb9ubrBJuVYJ+Z/WOJF3e98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=a0bPBf4sHadLRCCqv154iqDGIEf+N2G7GSZV4Z9y2m82Yede+zt7FWPlaPyC5+U7xIQrICX83x1iTcnhckJoqwobSdy7GYL7mjqUuoVuuAKV9NPplVaHWZfReZbpmyXYpGKkHIhzIE5bNlOCsrDOBmGFMrYf2y4NihN3taz88Nc= Received: by 10.141.163.12 with SMTP id q12mr7359101rvo.190.1203659118385; Thu, 21 Feb 2008 21:45:18 -0800 (PST) Received: by 10.141.40.19 with HTTP; Thu, 21 Feb 2008 21:45:18 -0800 (PST) Message-ID: <9c2955e10802212145m30315c18o7249d83db19e8b98@mail.gmail.com> Date: Fri, 22 Feb 2008 13:45:18 +0800 From: "Xinyu Dong" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: mddisk(ramdisk) root system that image size limit ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 06:14:13 -0000 OS: FreeBSD 6.2-RELEASE Environment = VMWare (Version 5) and Computer (CPU=Intel P4 2.4G, Memory=Kingston 1G DDR400, Storage=2G CF) create a less-than 100MB of image (image for ramdisk, mfs root) The loader.rc { load kernel // The kernel used 6.2 GENERIC load -t mfs_root /image // dd if=/dev/zero of=/image bs=1k count=95k } above config can boot normal. create a greater than 100MB of image (image for ramdisk, mfs root) The loader.rc { load kernel // The kernel used 6.2 GENERIC load -t mfs_root /image // dd if=/dev/zero of=/image bs=1k count=128k } above config can't boot normal, reboot immediately. create a equal 100MB or equal 99MB of image (image for ramdisk, mfs root) The loader.rc { load kernel // The kernel used 6.2 GENERIC load -t mfs_root /image // dd if=/dev/zero of=/image bs=1k count=100k (or count=99k) } above config can't boot normal, kernel panic. [TEST after system up] 1. dd if=/dev/zero of=/image bs=1k count=128k 2. mdconfig -a -t vnode -f /image -u 0 3. bsdlabel -Bw /dev/md0 auto 4. newfs /dev/md0a 5. mount /dev/md0a /mnt When system up normally: df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 23G 1.5G 20G 7% / devfs 1.0K 1.0K 0B 100% /dev /dev/md0a 124M 4.0K 114M 0% /mnt system not panic. but config loader.rc, add "load -t mfs_root /image" or "load -t md_image /image" will panic. I tried configuring the kernel, change MD_ROOT_SIZE and MAXDSIZ=(1024UL*1024*1024); MAXSSIZ=(512UL*1024*1024); DFLDSIZ=(1024UL*1024*1024), panic still.