HBASE-11855 HBase handbook chapter 18.9 out of date (Michael Tauscher)

This commit is contained in:
stack 2014-09-02 15:25:56 -07:00
parent 842f4808db
commit 767aced0f9
1 changed files with 12 additions and 7 deletions

View File

@ -1044,17 +1044,22 @@ public class TestHRegionInfo {
<title>Running tests faster</title>
<para> By default, <code>$ mvn test -P runAllTests</code> runs 5 tests in parallel.
It can be increased on a developer's machine. Allowing that you can have 2 tests
in parallel per core, and you need about 2Gb of memory per test (at the
extreme), if you have an 8 core, 24Gb box, you can have 16 tests in parallel.
in parallel per core, and you need about 2GB of memory per test (at the
extreme), if you have an 8 core, 24GB box, you can have 16 tests in parallel.
but the memory available limits it to 12 (24/2), To run all tests with 12 tests
in parallel, do this: <command>mvn test -P runAllTests
-Dsurefire.secondPartThreadCount=12</command>. To increase the speed, you
can as well use a ramdisk. You will need 2Gb of memory to run all tests. You
will also need to delete the files between two test run. The typical way to
configure a ramdisk on Linux is:</para>
-Dsurefire.secondPartForkCount=12</command>. If using a version earlier than
2.0, do: <command>mvn test -P runAllTests -Dsurefire.secondPartThreadCount=12
</command>. To increase the speed, you can as well use a ramdisk. You will need 2GB
of memory to run all tests. You will also need to delete the files between two
test run. The typical way to configure a ramdisk on Linux is:</para>
<screen language="bourne">$ sudo mkdir /ram2G
sudo mount -t tmpfs -o size=2048M tmpfs /ram2G</screen>
<para>You can then use it to run all HBase tests with the command: </para>
<para>You can then use it to run all HBase tests on 2.0 with the command: </para>
<screen language="bourne">mvn test
-P runAllTests -Dsurefire.secondPartForkCount=12
-Dtest.build.data.basedirectory=/ram2G</screen>
<para>On earlier versions, use: </para>
<screen language="bourne">mvn test
-P runAllTests -Dsurefire.secondPartThreadCount=12
-Dtest.build.data.basedirectory=/ram2G</screen>