Re: MD ROOT and image size limitation (makes kernel panic)


On Mon, May 16, 2011 at 11:36 AM, <rank1seeker@xxxxxxxxx> 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>.

Well ..., it looks like my 8.2 RELEASE src, has it, but ONLY for i386

# less /usr/src/sys/i386/conf/NOTES

# Number of initial kernel page table pages used for early bootstrap.
# This number should include enough pages to map the kernel, any
# modules or other data loaded with the kernel by the loader, and data
# structures allocated before the VM system is initialized such as the
# vm_page_t array. Each page table page maps 4MB (2MB with PAE).
options NKPT=31

So, that would be 124 MB for kernel and it's modules or other data loaded with the kernel by the loader (i.e; md image)
In those nums, md image has only about ~45 MB for itself.

Kernel itself and it's ..., needs ~80 MB

I'll build a custom kernel, for "lifting" md image ...

Domagoj Smolčić

freebsd-hackers@xxxxxxxxxxx mailing list
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Re: Etch on USB-HD wont boot - race condition?
    ... notebook but the kernel cannot find the root filesystem. ... I had an initial problem that I think I got solved: On boot, ... Begin: Mounting root file system... ... SCSI device sda: 78140159 512-byte hdwr sectors ...
  • Re: Flaws in recent Linux kernels
    ... Many distributions include other programs which may be ... suitable for exploiting the kernel vulnerability. ... possible to install third-party SUID root programs which may be used. ... A new revision of the Openwall Linux kernel patch, 2.2.19-ow3, is now ...
  • Re: [PATCH] System Wide Capability Bounding Set
    ... root, you can do anything you want to a machine. ... the threat model becomes how do we prevent one guest from attacking another? ... Which root filesystem do kernel helpers run in in such a setup? ... They need to be able to run arbitrary code in ring 0 of the VM. ...
  • Re: Beige PowerMac G3/266 trouble
    ... I downloaded the minimal "netinst" install CD image from ... The kernel initially seemed to load OK, and told me that it had found the ... At this point it threw up an error saying it couldn't open the root device ... request_module: runaway loop modprobe binfmt-0000 ...
  • Re: 2.6.9-rc2-mm1
    ... Fails to boot on my Altix. ... diff between 2.6.9-rc1-mm4 and 2.6.9-rc2 indicates some kind of PCI, ... Mounted root readonly. ... -doneshowconsole: Warning: the ioctl TIOCGDEV is not known by the kernel ...