]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Default to not performing the early-boot memory tests when we detect we
authorgavin <gavin@FreeBSD.org>
Sat, 31 Dec 2011 13:24:53 +0000 (13:24 +0000)
committergavin <gavin@FreeBSD.org>
Sat, 31 Dec 2011 13:24:53 +0000 (13:24 +0000)
commit596f1a19e7c884be2c86e55f6c0053453c04acc7
tree4f17b0ac7c625d0acb40828c9f7d3db8cf21a6cc
parent21c9c8f9bc530abe04f437b584b590b8ad325671
Default to not performing the early-boot memory tests when we detect we
are booting inside a VM.  There are three reasons to disable this:

o  It causes the VM host to believe that all the tested pages or RAM are
   in use.  This in turn may force the host to page out pages of RAM
   belonging to other VMs, or otherwise cause problems with fair resource
   sharing on the VM cluster.
o  It adds significant time to the boot process (around 1 second/Gig in
   testing)
o  It is unnecessary - the host should have already verified that the
   memory is functional etc.

Note that this simply changes the default when in a VM - it can still be
overridden using the hw.memtest.tests tunable.

MFC after: 4 weeks
sys/amd64/amd64/machdep.c
sys/i386/i386/machdep.c