Introduction to Moab for users » History » Version 2
Miguel Dias Costa, 29/02/2012 15:48
1 | 1 | Miguel Dias Costa | h1. Introduction to Moab for users |
---|---|---|---|
2 | 1 | Miguel Dias Costa | |
3 | 2 | Miguel Dias Costa | Moab is the workload management system that is used in FEUP's high performance computing clusters. |
4 | 2 | Miguel Dias Costa | |
5 | 2 | Miguel Dias Costa | h2. Getting started |
6 | 2 | Miguel Dias Costa | |
7 | 2 | Miguel Dias Costa | After gaining ssh accesh to a moab frontend, a user can see what resources are available and check the status of the queue by running |
8 | 2 | Miguel Dias Costa | |
9 | 2 | Miguel Dias Costa | <pre> |
10 | 2 | Miguel Dias Costa | mshow |
11 | 2 | Miguel Dias Costa | </pre> |
12 | 2 | Miguel Dias Costa | |
13 | 2 | Miguel Dias Costa | In order to submit jobs, one needs to create a submit script that defines the requirements and the command to be executed. A simple example to get started would be |
14 | 2 | Miguel Dias Costa | |
15 | 2 | Miguel Dias Costa | h3. Example serial job submission script helloworld.submit |
16 | 2 | Miguel Dias Costa | |
17 | 2 | Miguel Dias Costa | <pre> |
18 | 2 | Miguel Dias Costa | #!/bin/bash |
19 | 2 | Miguel Dias Costa | #MOAB -l nodes=1:ppn=1 |
20 | 2 | Miguel Dias Costa | #MOAB -l partition=torque1 |
21 | 2 | Miguel Dias Costa | #MOAB -j oe |
22 | 2 | Miguel Dias Costa | cd $PBS_O_WORKDIR |
23 | 2 | Miguel Dias Costa | #!/bin/bash |
24 | 2 | Miguel Dias Costa | echo "----------------------" |
25 | 2 | Miguel Dias Costa | hostname |
26 | 2 | Miguel Dias Costa | echo "----------------------" |
27 | 2 | Miguel Dias Costa | date |
28 | 2 | Miguel Dias Costa | echo "----------------------" |
29 | 2 | Miguel Dias Costa | echo "Sleeping 20s" |
30 | 2 | Miguel Dias Costa | sleep 20 |
31 | 2 | Miguel Dias Costa | echo "----------------------" |
32 | 2 | Miguel Dias Costa | echo "Hello World!" |
33 | 2 | Miguel Dias Costa | </pre> |
34 | 2 | Miguel Dias Costa | |
35 | 2 | Miguel Dias Costa | After creating this file, the job would be submitted by running |
36 | 2 | Miguel Dias Costa | |
37 | 2 | Miguel Dias Costa | <pre> |
38 | 2 | Miguel Dias Costa | msub helloworld.submit |
39 | 2 | Miguel Dias Costa | </pre> |
40 | 2 | Miguel Dias Costa | |
41 | 2 | Miguel Dias Costa | h2. Checking status |
42 | 2 | Miguel Dias Costa | |
43 | 2 | Miguel Dias Costa | To see details about the status of each job in the queue, one would run |
44 | 2 | Miguel Dias Costa | |
45 | 2 | Miguel Dias Costa | <pre> |
46 | 2 | Miguel Dias Costa | mshow |
47 | 2 | Miguel Dias Costa | </pre> |
48 | 2 | Miguel Dias Costa | |
49 | 2 | Miguel Dias Costa | To check the status of a specific job, |
50 | 2 | Miguel Dias Costa | |
51 | 2 | Miguel Dias Costa | <pre> |
52 | 2 | Miguel Dias Costa | checkjob jobid |
53 | 2 | Miguel Dias Costa | </pre> |
54 | 2 | Miguel Dias Costa | |
55 | 2 | Miguel Dias Costa | To check the status of a specific node, |
56 | 2 | Miguel Dias Costa | |
57 | 2 | Miguel Dias Costa | <pre> |
58 | 2 | Miguel Dias Costa | checknode nodeid |
59 | 2 | Miguel Dias Costa | </pre> |
60 | 2 | Miguel Dias Costa | |
61 | 2 | Miguel Dias Costa | To cancel a job |
62 | 2 | Miguel Dias Costa | |
63 | 2 | Miguel Dias Costa | <pre> |
64 | 2 | Miguel Dias Costa | canceljob jobid |
65 | 2 | Miguel Dias Costa | </pre> |
66 | 2 | Miguel Dias Costa | |
67 | 2 | Miguel Dias Costa | h2. More Information |
68 | 2 | Miguel Dias Costa | |
69 | 2 | Miguel Dias Costa | http://www.adaptivecomputing.com/resources/docs/ |