MD ROOT and image size limitation (makes kernel panic)

Neel Natu neelnatu at gmail.com
Mon May 16 21:57:29 UTC 2011


Hi,

On Mon, May 16, 2011 at 11:36 AM,  <rank1seeker at gmail.com> wrote:
> I have a 4 GB or ram, so why kernel panic with my MD ROOT, if larger then
> ~40 MB?
> I've tried to split up root in 20MB image and usr in 160 MB
> Via loader.conf root becomes md0 and usr md1 and panic occurs even when
> they are split
>
> I had to get rid of md1, to be able to boot with md0 as a root.
>
> What exactly imposes limitation, inside kernel's code to SIZE of an image?
> My hardware definatelly isn't ...
>
> Is this different on amd64?
> I've tested this, only with i386.
>

We hit this problem at work and the solution was to increase NKPT.

If you are using -current then NKPT is already a kernel config option.
With 8.x you will need to modify <machine/pmap.h>.

best
Neel

>
> Domagoj S.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list