Open MPI logo

MTT Devel Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all MTT Devel mailing list

Subject: Re: [MTT devel] Best way to run ftb_database_server and ftb_agent
From: Joshua Hursey (jjhursey_at_[hidden])
Date: 2010-11-05 08:40:47


DongInn,

Do you need to restart the FTB daemons before every test, or just start them once before running an entire test suite?

Adding another phase is pretty involved (will likely require changes to every piece of MTT - client, database, reporter), so I would suggest doing something like this in 'Test Run'. Something like a pre-exec hook.

As an alternative you could write a script that would encapsulate:
 - Launch FTB Daemons
 - Run a specific test
 - Shutdown FTB Daemons

This would occur for each test in the 'Test Run' phase. This is similar to what I did for the C/R support. So in the 'MPI Details' section I have something like:
============================
[MPI Details: OMPI]
exec = ./run-cr-correctness.pl -test &test_executable() \
       -storage-dir /storage/tmp/snapshot/ \
       -np &test_np() \
       -mca "@fixes@ -am ft-enable-cr @pml@" \
       --prefix &test_prefix() -v 2

fixes = -mca orte_base_help_aggregate 0
============================

Then for each of the Test Runs the '&test_executable()' funclet is filled in with the test name, and the perl script handles the rest of the launch from there.

If it is helpful, the C/R 'Test Get/Build/Run' phases are in ompi-tests/iu/mtt/etc/mtt2/ftcr.ini.
And the 'MPI Details' is under "OMPI DETAILS COMMON FTCR TEST" in ompi-tests/iu/mtt/odin/etc/general/generic-subs2.config

Let me know if that helps.

-- Josh

On Nov 5, 2010, at 2:06 AM, DongInn Kim wrote:

> Hi,
>
> Is there any way to put some lines to the mtt ini file to run the FTB daemons(ftb_database_server and ftb_agent)?
>
> Should we make another "FTB Run" phase after "FTB Install" or run the two daemons inside "Test run" but run the daemons before running the test scripts?
> I think either way would be fine if I have a working syntax for the both cases.
>
> Any help would be really appreciated.
>
> Regards,
>
> --
> - DongInn
> _______________________________________________
> mtt-devel mailing list
> mtt-devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/mtt-devel
>

------------------------------------
Joshua Hursey
Postdoctoral Research Associate
Oak Ridge National Laboratory
http://users.nccs.gov/~jjhursey