From c9cb2ee851f8b3688fba35d75581a183b80f4317 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 26 Sep 2012 19:23:01 +0000 Subject: [PATCH] HBASE-6884 Update documentation on unit tests git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1390687 13f79535-47bb-0310-9956-ffa450edef68 --- src/docbkx/developer.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/docbkx/developer.xml b/src/docbkx/developer.xml index 98f4afa9f9b..6c7b4a17858 100644 --- a/src/docbkx/developer.xml +++ b/src/docbkx/developer.xml @@ -475,17 +475,18 @@ report: "[INFO] Tests are skipped". It's harmless. By default, $ mvn test -P runAllTests 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: -mvn test -P runAllTests -Dsurefire.secondPartThreadCount=16. +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: +mvn test -P runAllTests -Dsurefire.secondPartThreadCount=12. 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: $ sudo mkdir /ram2G sudo mount -t tmpfs -o size=2048M tmpfs /ram2G You can then use it to run all HBase tests with the command: -mvn test -P runAllTests -Dsurefire.secondPartThreadCount=16 -Dtest.build.data.basedirectory=/ram2G +mvn test -P runAllTests -Dsurefire.secondPartThreadCount=12 -Dtest.build.data.basedirectory=/ram2G