From owner-freebsd-emulation@FreeBSD.ORG Thu Apr 29 17:04:44 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AACBA16A4CF for ; Thu, 29 Apr 2004 17:04:44 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7221D43D5A for ; Thu, 29 Apr 2004 17:04:44 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (localhost [127.0.0.1]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i3U04bS5039115; Thu, 29 Apr 2004 17:04:37 -0700 (PDT) (envelope-from marcel@ns1.xcllnt.net) Received: (from marcel@localhost) by ns1.xcllnt.net (8.12.11/8.12.11/Submit) id i3U04b4g039114; Thu, 29 Apr 2004 17:04:37 -0700 (PDT) (envelope-from marcel) Date: Thu, 29 Apr 2004 17:04:37 -0700 From: Marcel Moolenaar To: Andrew Gallatin Message-ID: <20040430000437.GB39055@ns1.xcllnt.net> References: <16528.65255.326986.106534@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16528.65255.326986.106534@grasshopper.cs.duke.edu> User-Agent: Mutt/1.5.5.1i cc: freebsd-emulation@freebsd.org Subject: Re: user mode linux? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 00:04:44 -0000 On Thu, Apr 29, 2004 at 09:11:03AM -0400, Andrew Gallatin wrote: > > The first problem I have is really stumping me. The linux kernel > (http://uml.linode.com/linux-2.4.19-5.bz2) is failing to start very > early. Its creating a 1785856 byte sparse file and failing to mmap > it: > > 2974 linux-2.4.19-5 CALL linux_llseek(0x3,0,0x1b4000,0xbfbfe280,0) > 2974 linux-2.4.19-5 RET linux_llseek 0 > 2974 linux-2.4.19-5 CALL write(0x3,0xbfbfe2d7,0x1) > 2974 linux-2.4.19-5 GIO fd 3 wrote 1 byte > "\0" > 2974 linux-2.4.19-5 RET write 1 > 2974 linux-2.4.19-5 CALL linux_fcntl64(0x3,0x2,0x1) > 2974 linux-2.4.19-5 RET linux_fcntl64 0 > 2974 linux-2.4.19-5 CALL linux_mmap(0xbfbfe2d0) > 2974 linux-2.4.19-5 RET linux_mmap -1 errno 12 Cannot allocate > memory > 2974 linux-2.4.19-5 PSIG SIGSEGV SIG_DFL > 2974 linux-2.4.19-5 NAMI "linux-2.4.19-5.core" Two things you might wan to look into: 1. Is there an issue with mmap(2)'ing sparse files? 2. Are limits being hit (most notably RLIMIT_DATA)? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net