From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 11 18:43:33 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DC291065674 for ; Tue, 11 Oct 2011 18:43:33 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2E7FE8FC1A for ; Tue, 11 Oct 2011 18:43:32 +0000 (UTC) Received: by gyf2 with SMTP id 2so8733611gyf.13 for ; Tue, 11 Oct 2011 11:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:in-reply-to:references:x-mailer; bh=vQBUhTLCcfEx90y7X+c3zGl3r58tIEg/FaawNYHwTfY=; b=BM/GKUw+re10p6fOpqK5oPben6JmJ4HHt1uPNgmucsH24mmiGHB2tb1edTEnQbR3S7 G+vz84OaTE5N0nCjO9yqnhDnbdy6+o/gUv8Z89wNaVg5g1n/OEMVnGbhfe4MR0wOHrYV KBUBAfT0QKYj7fkczZHrMxQ7FOFCuN5Yaa5QY= Received: by 10.223.62.19 with SMTP id v19mr40876164fah.27.1318358612179; Tue, 11 Oct 2011 11:43:32 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id c1sm38886305fab.15.2011.10.11.11.43.27 (version=SSLv3 cipher=OTHER); Tue, 11 Oct 2011 11:43:30 -0700 (PDT) Message-ID: <20111011.184329.046.1@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org Date: Tue, 11 Oct 2011 20:43:29 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable In-Reply-To: <4E5F8E91.3060206@gmail.com> References: <20110901.131731.343.1@DEV> <4E5F8E91.3060206@gmail.com> X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: Re: 8.2R i386 bassed md root, doesn't like all machines X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2011 18:43:33 -0000 ----- Original Message -----=0D=0AFrom: Mark Tinguely = =0D=0ATo: rank1seeker@gmail.com=0D=0ACc: = hackers@freebsd.org=0D=0ADate: Thu, 01 Sep 2011 08:54:25 = -0500=0D=0ASubject: Re: 8.2R i386 bassed md root, doesn't like all = machines=0D=0A=0D=0A> On 9/1/2011 8:17 AM, rank1seeker@gmail.com = wrote:=0D=0A> > Works excellent!=0D=0A> > I boot it from USB = stick.=0D=0A> >=0D=0A> > Now I added ~150 MB of ports to it.=0D=0A> > = >From that point on, it doesn't boot on all machines.=0D=0A> >=0D=0A> > = Booting 2 times in a row on laptop with 4 gb ram:=0D=0A> > = http://www.starforce.biz/md_root_1.jpg=0D=0A> > = http://www.starforce.biz/md_root_2.jpg=0D=0A> >=0D=0A> > Without ports, = it did booted fine!=0D=0A> >=0D=0A> > Then I plug it in desktop with 2 GB = of ram and booted it and it works!=0D=0A> > I've did it again, just to be = sure.=0D=0A> >=0D=0A> > Back to my laptop and same fail again.=0D=0A> = >=0D=0A> >=0D=0A> > Domagoj Smol=E8i=E6=0D=0A> > = _______________________________________________=0D=0A> > = freebsd-hackers@freebsd.org mailing list=0D=0A> > = http://lists.freebsd.org/mailman/listinfo/freebsd-hackers=0D=0A> > To = unsubscribe, send any mail to = "freebsd-hackers-unsubscribe@freebsd.org"=0D=0A> >=0D=0A> =0D=0A> This = must be a 32 bit i386 kernel.=0D=0A> =0D=0A> From the vm_thread_new() = error messages, your kernel virtual memory map =0D=0A> is = depleted.=0D=0A> =0D=0A> The OS uses KVA for a physical page attribute = table. Therefore the 4GB =0D=0A> machine will use more KVA than a 2GB. = Apparently this difference is a =0D=0A> enough to cause you = problems.=0D=0A> =0D=0A> Either increase your KVA (KVA_PAGES setting in = your kernel configuration =0D=0A> file; see sys/i386/include/pmap.h look = for values) or decrease your KVA =0D=0A> use (memory drive?).=0D=0A> = =0D=0A=0D=0A=0D=0AI see. It worked.=0D=0AYes it is 8.2 i386, as it is the = only that has NKPT kernel option.=0D=0AFor other archs, I would have to = edit src code.=0D=0A=0D=0AWhat would be the formula, to set the KVA_PAGES = to, if I know the size of MD(in Mb), so it would work on all machines, = regardled of RAM amount (for i386, all less then 4 = GB)=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E8=0D=0A