Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2004 17:04:37 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: user mode linux?
Message-ID:  <20040430000437.GB39055@ns1.xcllnt.net>
In-Reply-To: <16528.65255.326986.106534@grasshopper.cs.duke.edu>
References:  <16528.65255.326986.106534@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040430000437.GB39055>