From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751595Ab0CTS4a (ORCPT ); Sat, 20 Mar 2010 14:56:30 -0400 Received: from terminus.zytor.com ([198.137.202.10]:42428 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822Ab0CTS43 (ORCPT ); Sat, 20 Mar 2010 14:56:29 -0400 Message-ID: <4BA51A48.6010509@zytor.com> Date: Sat, 20 Mar 2010 11:56:08 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 MIME-Version: 1.0 To: Nigel Kukard CC: linux-kernel@vger.kernel.org Subject: Re: [BUG] kernel 2.6.33-rc4 OOPS's with large initramfs References: <4B519F14.7020104@lbsd.net> <4B5CD711.7050204@zytor.com> <4BA51022.4010309@lbsd.net> In-Reply-To: <4BA51022.4010309@lbsd.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/20/2010 11:12 AM, Nigel Kukard wrote: > On 01/24/10 23:26, H. Peter Anvin wrote: >> On 01/16/2010 03:12 AM, Nigel Kukard wrote: >> >>> Generating a initramfs with the following, one of about 30Mb, one of 77Mb. >>> find . | cpio -o -H newc > ../initramfs.cpio >>> >>> Only difference is adding of more files to the 77Mb image. >>> >>> It makes no difference if its compiled into kernel or used as initrd. >>> Compression types makes no difference either. >>> >>> Tested on 2.6.32.3->2.6.33-rc4 , all fail with the below. >>> >>> The 30Mb initramfs loads fine, the 77Mb image throws the following... >>> >>> >> What are the exact compressed and uncompressed files (or is that an >> uncompressed initramfs)? >> > > Ok ... I revisited this, sorry for the delay, all tests done on kernel > 2.6.33.1 > > (initramfs uploaded, link below) > > It is generated using two commands... > find . | cpio -o --quiet -H newc -A -O ../initramfs.cpio > > and the kernel modules are appended to this using... > find . | cpio -o --quiet -H newc -A -O ../initramfs.cpio > > The exact size is .. > % ls -la initramfs.cpio > -rw-r--r-- 1 nkukard nkukard 115944448 Mar 19 22:15 initramfs.cpio > How much RAM are you giving your VM? The default for Qemu is 128 MB, and if you have a 110 MB initramfs it's hardly surprising that you get an out of memory error. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.