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:
parent
e2d9560d65
commit
c9cb2ee851
|
@ -475,17 +475,18 @@ report: "[INFO] Tests are skipped". It's harmless.
|
|||
<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,
|
||||
if you have a 8 cores and 24Gb box, you can have 16 tests in parallel.
|
||||
To run 16 in parallel, do this:
|
||||
<command>mvn test -P runAllTests -Dsurefire.secondPartThreadCount=16</command>.
|
||||
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.
|
||||
but the memory available limits it to 12 (24/2), To run all tests with 12 tests
|
||||
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 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:
|
||||
<programlisting>$ sudo mkdir /ram2G
|
||||
sudo mount -t tmpfs -o size=2048M tmpfs /ram2G</programlisting>
|
||||
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>
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Reference in New Issue