Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Oct 2011 20:43:29 +0200
From:      rank1seeker@gmail.com
To:        hackers@freebsd.org
Subject:   Re: 8.2R i386 bassed md root, doesn't like all machines
Message-ID:  <20111011.184329.046.1@DEV>
In-Reply-To: <4E5F8E91.3060206@gmail.com>
References:  <20110901.131731.343.1@DEV> <4E5F8E91.3060206@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----

From: Mark Tinguely <marktinguely@gmail.com>

To: rank1seeker@gmail.com

Cc: hackers@freebsd.org

Date: Thu, 01 Sep 2011 08:54:25 -0500

Subject: Re: 8.2R i386 bassed md root, doesn't like all machines



> On 9/1/2011 8:17 AM, rank1seeker@gmail.com wrote:

> > Works excellent!

> > I boot it from USB stick.

> >

> > Now I added ~150 MB of ports to it.

> >  >From that point on, it doesn't boot on all machines.

> >

> > Booting 2 times in a row on laptop with 4 gb ram:

> > http://www.starforce.biz/md_root_1.jpg

> > http://www.starforce.biz/md_root_2.jpg

> >

> > Without ports, it did booted fine!

> >

> > Then I plug it in desktop with 2 GB of ram and booted it and it works!

> > I've did it again, just to be sure.

> >

> > Back to my laptop and same fail again.

> >

> >

> > Domagoj Smolčić

> > _______________________________________________

> > freebsd-hackers@freebsd.org mailing list

> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

> >

> 

> This must be a 32 bit i386 kernel.

> 

>  From the vm_thread_new() error messages, your kernel virtual memory map 

> is depleted.

> 

> The OS uses KVA for a physical page attribute table. Therefore the 4GB 

> machine will use more KVA than a 2GB. Apparently this difference is a 

> enough to cause you problems.

> 

> Either increase your KVA (KVA_PAGES setting in your kernel configuration 

> file; see sys/i386/include/pmap.h look for values) or decrease your KVA 

> use (memory drive?).

> 





I see. It worked.

Yes it is 8.2 i386, as it is the only that has NKPT kernel option.

For other archs, I would have to edit src code.



What 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)





Domagoj Smolčič





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