Porting of Scientific Applications to Grid Computing on Gridway1

Porting of Scientific Applications to Grid Computing on Gridway1

Scientific Programming 13 (2005) 317–331 317 IOS Press Porting of scientific applications to Grid Computing on GridW ay1 J. Herreraa,∗, E. Huedob, R.S. Monteroa and I.M. Llorentea,b aDepartamento de Arquitectura de Computadores y Automatica,´ Facultad de Informatica,´ Universidad Complutense de Madrid, 28040 Madrid, Spain bLaboratorio de Computacion´ Avanzada, Simulacion,´ y Aplicaciones Telematicas,´ Centro de Astrobiolog´ıa (CSIC-INTA), 28850 Torrejon´ de Ardoz, Spain Abstract. The expansion and adoption of Grid technologies is prevented by the lack of a standard programming paradigm to port existing applications among different environments. The Distributed Resource Management Application API has been proposed to aid the rapid development and distribution of these applications across different Distributed Resource Management Systems. In this paper we describe an implementation of the DRMAA standard on a Globus-based testbed, and show its suitability to express typical scientific applications, like High-Throughput and Master-Worker applications. The DRMAA routines are supported by the functionality offered by the GridWay2framework, which provides the runtime mechanisms needed for transparently executing jobs on a dynamic Grid environment based on Globus. As cases of study, we consider the implementation with DRMAA of a bioinformatics application, a genetic algorithm and the NAS Grid Benchmarks. 1. Introduction bility of existing applications among different environ- ments. The Distributed Resource Management Appli- The deployment of existing applications across the cation API WorkingGroup (DRMAA-WG)3, within the Grid continues requiring a high level of expertise and Global Grid Forum (GGF)4, has recently developed an a significant amount of effort, mainly due to the char- API specification for job submission, monitoring and acteristics of the Grid: complexity, heterogeneity, dy- control that provides a high level interface with Dis- namism, high fault rate, etc. To deal with such charac- tributed Resource Management Systems (DRMS). In teristics, we have developed GridW ay [11]: a Globus this way, DRMAA, or higher level tools that use DR- submission framework that allows an easier and more MAA, could aid scientists and engineers to express their efficient execution of jobs on dynamic Grid environ- computational problems by providing a portable direct ments. GridW ay automatically performs all the job interface to a DRMS. It is foreseeable, as it happened scheduling steps [20], provides fault recovery mecha- with other standards like MPI or OpenMP, that DR- nisms, and adapts job scheduling and execution to the MAA will be progressively adopted by most DRMS, changing Grid conditions. making them easier and worthier to learn, thus lowering On the other hand, the lack of a standard program- its barrier to acceptance, and making Grid applications ming paradigm for the Grid has prevented the porta- portable across DRMS adhered to the standard. In this work, we discuss several aspects of the im- plementation of DRMAA within the GridW ay frame- 1 This research was supported by Ministerio de Ciencia y Tec- work, and investigate the suitability of the DRMAA nolog´ia through the research grant TIC 2003-01321 and Instituto Na- cional de Tecnica´ Aeroespacial “Esteban Terradas” (INTA) – Centro specification to distribute typical scientific workloads de Astrobiolog´ıa. ∗Corresponding author. Tel.: +34 91 394 75 41; Fax: +34 91 394 76 42; E-mail: [email protected]. 3http://www.drmaa.org (2004). 2http://www.gridway.org. 4http://www.gridforum.org (2004). ISSN 1058-9244/05/$17.00 © 2005 – IOS Press and the authors. All rights reserved 318 J. Herrera et al. / Porting of scientific applications to Grid Computing on GridWay Table 1 Characteristics of the machines in the first configuration of the UCM-CAB research testbed Name VO Model Speed OS Memory DRMS babieca CAB 5×Alpha EV67 466 MHz Linux 2.2 256 MB PBS pegasus UCM Intel P4 2.4 GHz Linux 2.4 1 GB fork solea UCM 2×Sun US-II 296 MHz Solaris 7 256 MB fork ursa UCM Sun US-IIe 500 MHz Solaris 8 128 MB fork draco UCM Sun US-I 167 MHz Solaris 8 128 MB fork Computational Problem drmaa_init(); Task B Task A drmaa_finalize(); Task C .C Grid-Aware Executable Distributed GridWay Resource Management Results Grid Middleware Globus PBS SGE Local Jobmanagers Fig. 1. Development and execution cycle using the DRMAA interface. across the Grid. We demonstrate the ability of the can be used to implement several scientific application GridW ay framework when executing different com- paradigms, like High-Throughput and Master-Worker, putational workloads distributed using DRMAA. The and provide results of real-life applications. Finally, in examples shown resemble typical scientific problems Section 6, we evaluate the suitability of the DRMAA for whose structure is well suited to the Grid architecture. implementing the NAS Grid Benchmarks (NGB) [22]. The experiments were conducted in the UCM-CAB re- The NGB suite constitutes an excellent case-of-study, search testbed, based on the Globus Toolkit [8], briefly since it models distributed communicating applications described in Tables 1 and 2. typically executed on the Grid. The paper ends in Sec- In Section 2, we first analyze several aspects involved tion 7 with some conclusions. in the efficient execution of distributed applications re- lated to the barriers to use the Grid, and how they 2. The GridW ay framework are overcome by the GridW ay framework. Section 3 briefly describes the DRMAA standard, and the devel- The GridW ay framework [11] provides the follow- opment and execution process adopted in this work. ing techniques to allow a robust an efficient execution Then, in Sections 4 and 5, we illustrate how DRMAA of jobs in heterogeneous and dynamic Grids: J. Herrera et al. / Porting of scientific applications to Grid Computing on GridWay 319 Table 2 Characteristics of the machines in the second configuration of the UCM-CAB research testbed Name VO Model Speed OS Memory DRMS babieca CAB 5×Alpha EV67 466 MHz Linux 2.2 256 MB PBS hydrus UCM Intel P4 2.5 GHz Linux 2.4 512 MB fork cygnus UCM Intel P4 2.5 GHz Linux 2.4 512 MB fork cepheus UCM Intel PIII 600 MHz Linux 2.4 256 MB fork aquila UCM Intel PIII 666 MHz Linux 2.4 128 MB fork Pre-processing Job Job 0 Job i Job n Post-processing Job rc = drmaa_init(contact, err); // Execute initial job and wait for it rc = drmaa_run_job(job_id, jt, err); rc = drmaa_wait(job_id, &stat, timeout, rusage, err); // Execute n jobs simultaneously and wait rc = drmaa_run_bulk_jobs(job_ids,jt,1, JOB_NUM,1,err); rc = drmaa_synchronize(job_ids, timeout, 1, err); // Execute final job and wait for it rc = drmaa_run_job(job_id, jt, err); rc = drmaa_wait(job_id, &stat, timeout, rusage, err); rc = drmaa_exit(err_diag); Fig. 2. High-Throughput scheme and its codification using the DRMAA standard. – Given the dynamic characteristics of the Grid, – The GridW ay framework also provides adaptive the GridW ay framework periodically adapts the job execution to migrate running applications to schedule to the available resources and their char- more suitable resources. So improving application acteristics [13]. GridW ay incorporates a resource performance by adapting it to the dynamic avail- ability, capacity and cost of Grid resources. Once selector that reflects the applications demands, in the job is initially allocated, it is rescheduled when terms of requirements and preferences, and the dy- one of the following circumstances occurs [11]: namic characteristics of Grid resources, in terms (i) A “better” resource is discovered; (ii) The sub- of load, availability and proximity (bandwidth and mitted job is cancelled or suspended; (iii) Perfor- latency) [17]. mance degradation or performance contract viola- 320 J. Herrera et al. / Porting of scientific applications to Grid Computing on GridWay 14 12 10 babieca down 8 6 pegasus discovered 4 testbed fully available pegasus discovered Throughput (Jobs per hour) babieca down 2 0 0123456789 Time (hours) Fig. 4. Dynamic throughput in the execution of the application when the testbed is fully available, when pegasus is discovered and when babieca is down. 1.4 – parsing the standard output of the execution mod- ules. This is also useful to capture the job exit 1.2 code, which is used to determine whether the job 1 was successfully executed or not. If the job exit 0.8 code is not set, the job was prematurely terminated, so it failed or was intentionally cancelled. 0.6 When an unrecoverable failure is detected, GridW ay Jobs per minute 0.4 Testbed Productivity retries the submission of the job a number of times 0.2 specified by the user. If the failure persists, GridW ay 0 performs an action chosen by the user among two pos- 0 5 10 15 20 25 30 35 40 sibilities: stop the job for manually resuming it later, or Time (minutes) automatically generate a rescheduling event to migrate the job. Fig. 3. Testbed productivity in the execution of the High-Throughput The aim of the GridW ay project is similar to that application. of other projects [4,5,9,16]: simplify distributed het- erogeneous computing. However, it has some remark- tion is detected; (iv) The resource requirements or able differences. Our framework provides a submission preferences of the application change. agent that incorporates the runtime mechanisms needed GridW ay also provides the application with the fault for transparently executing jobs in a Grid by combining detection capabilities needed in a Grid environment, both adaptive scheduling and execution. Our modular by: architecture for job adaptation to a dynamic environ- ment presents the following advantages: – handling the Globus GRAM (Grid Resource Al- location and Management) job manager call- – It is not bounded to a specific class of application backs [7]. The GRAM callbacks notify submis- generated by a given programming environment, sion failures that include connection, authentica- which extends its application range.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    16 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us