HBASE-6884 Update documentation on unit tests

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1390687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-09-26 19:23:01 +00:00
parent e2d9560d65
commit c9cb2ee851
1 changed files with 6 additions and 5 deletions

View File

@ -475,17 +475,18 @@ report: "[INFO] Tests are skipped". It's harmless.
<para> <para>
By default, <code>$ mvn test -P runAllTests</code> runs 5 tests in parallel. 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 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, tests in parallel per core, and you need about 2Gb of memory per test (at the
if you have a 8 cores and 24Gb box, you can have 16 tests in parallel. extreme), if you have an 8 core, 24Gb box, you can have 16 tests in parallel.
To run 16 in parallel, do this: but the memory available limits it to 12 (24/2), To run all tests with 12 tests
<command>mvn test -P runAllTests -Dsurefire.secondPartThreadCount=16</command>. in parallell, 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 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. 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: The typical way to configure a ramdisk on Linux is:
<programlisting>$ sudo mkdir /ram2G <programlisting>$ sudo mkdir /ram2G
sudo mount -t tmpfs -o size=2048M tmpfs /ram2G</programlisting> sudo mount -t tmpfs -o size=2048M tmpfs /ram2G</programlisting>
You can then use it to run all HBase tests with the command: You can then use it to run all HBase tests with the command:
<command>mvn test -P runAllTests -Dsurefire.secondPartThreadCount=16 -Dtest.build.data.basedirectory=/ram2G</command> <command>mvn test -P runAllTests -Dsurefire.secondPartThreadCount=12 -Dtest.build.data.basedirectory=/ram2G</command>
</para> </para>
</section> </section>