-
Notifications
You must be signed in to change notification settings - Fork 1
/
7.1.1resoverview.html
105 lines (64 loc) · 9.83 KB
/
7.1.1resoverview.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title></title>
</head>
<body>
<div class="sright">
<div class="sub-content-head">
Maui Scheduler
</div>
<div id="sub-content-rpt" class="sub-content-rpt">
<div class="tab-container docs" id="tab-container">
<div class="topNav">
<div class="docsSearch"></div>
<div class="navIcons topIcons">
<a href="index.html"><img src="home.png" title="Home" alt="Home" border="0"></a> <a href="7.1advancereservations.html"><img src="upArrow.png" title="Up" alt="Up" border="0"></a> <a href="7.1advancereservations.html"><img src="prevArrow.png" title="Previous" alt="Previous" border="0"></a> <a href="7.1.2adminreservations.html"><img src="nextArrow.png" title="Next" alt="Next" border="0"></a>
</div>
<h1>7.1.1 Reservation Overview</h1>
<p>Every reservation consists of 3 major components, a set of <i>resources</i>, a <i>timeframe</i>, and an <i>access control list</i>. Additionally, a reservation may also have a number of optional attributes controlling its behavior and interaction with other aspects of scheduling. All reservation attributes are described below.</p>
<h2>7.1.1.1 Resources</h2>
<p>Under Maui, the resources specified for a reservation are specified by way of a <a href="3.2environment.html#taskdescription">task</a> description. Conceptually, a task can be thought of as an atomic, or indivisible, collection of resources. The resources may include processors, memory, swap, local disk, etc. For example, a single task may consist of one processor, 2 GB of memory, and 10 GB of local disk. A reservation consists of one or more tasks. In attempting to locate the resources required for a particular reservation, Maui will examine all feasible resources and locate the needed resources in groups specified by the task description. An example may help clarify this concept:</p>
<p>Reservation A requires 4 tasks. Each task is defined as 1 processor and 1 GB of memory.</p>
<p>Node X has 2 processors and 3 GB of memory available<br>
Node Y has 2 processors and 1 GB of memory available<br>
Node Z has 2 processors and 2 GB of memory available</p>
<p>In attempting to collect the resources needed for the reservation, Maui would examine each node in turn. Maui finds that Node X can support 2 of the 4 tasks needed by reserving 2 processors and 2 GB of memory, leaving 1 GB of memory unreserved. Analysis of Node Y shows that it can only support 1 task reserving 1 processor and 1 GB of memory, leaving 1 processor unreserved. Note that the unreserved memory on Node X cannot be combined with the unreserved processor on Node Y to satisfy the needs of another task because a task requires all resources to be located on the same node. Finally, analysis finds that node Z can support 2 tasks, fully reserving all of its resources.</p>
<p>Both reservations and jobs use the concept of a task description in specifying how resources should be allocated. It is important to note that although a task description is used to allocate resources to a reservation, this description does not in any way constrain the use of those resources by a job. In the above example, a job requesting resources simply sees 4 processors and 4 GB of memory available in reservation A. If the job has access to the reserved resources and the resources meet the other requirements of the job, the job could utilize these resources according to its own task description and needs.</p>
<p>Currently, the resources which can be associated with reservations include processors, memory, swap, local disk, initiator classes, and any number of arbitrary resources. Arbitrary resources may include peripherals such as tape drives, software licenses, or any other site specific resource.</p>
<h2>7.1.1.2 TimeFrame</h2>
<p>Associated with each reservation is a timeframe. This specifies when the resources will be reserved or dedicated to jobs which meet the reservation's ACL. The timeframe simply consists of a start time and an end time. When configuring a reservation, this information may be specified as a start time together with either an end time or a duration.</p>
<h2>7.1.1.3 Access Control List</h2>
<p>A reservation's access control list specifies which jobs can use a reservation. Only jobs which meet one or more of a reservation's access criteria are allowed to use the reserved resources during the reservation timeframe. Currently, the reservation access criteria include the following: users, groups, accounts, classes, QOS, and job duration.</p>
<h2>7.1.1.4 Job to Reservation Mapping</h2>
<p>While a reservation's ACL will allow particular jobs to utilize reserved resources, it does not force any job to utilize these resources. With each job, Maui attempts to locate the best possible combination of available resources whether these are reserved or unreserved. For example, in the figure below, note that job <b>X</b>, which meets access criteria for both reservation <b>A</b> and <b>B</b>, allocates a portion of its resources from each reservation and the remainder from resources outside of both reservations.<img src="resaffinity1.gif" height="180" width="302" align="right"></p>
<p>Although by default, reservations make resources available to jobs which meet particular criteria, Maui can be configured to constrain jobs to only run within accessible reservations. This can be requested by the user on a job by job basis using a resource manager extension flag or can be enabled administratively via a QoS flag. For example, assume two reservations were created as shown below.</p>
<p><tt>> setres -g staff -d 8:00:00 'node[1-4]'</tt></p>
<p><tt>reservation 'staff.1' created on 4 nodes</tt></p>
<p><tt>> setres -u john tasks==2</tt></p>
<p><tt>reservation 'john.1' created on two nodes</tt></p>
<p>If the user <tt>john</tt>, who happened to also be a member of the group <tt>staff</tt>, wanted to force his job to run within a particular reservation, he could do so using the <b>FLAGS</b> <a href="13.3rmextensions.html">resource manager extension</a>. Specifically, in the case of a PBS job, the following submission would force the job to run within the <tt>staff.1</tt> reservation.</p>
<p><tt>> qsub -l nodes=1,walltime=1:00:00 -W x=FLAGS:ADVRES:staff.1 testjob.cmd</tt></p>
<p>Note that for this to work, PBS will need to have resource manager extensions enabled as described in the <a href="13.3.1pbsrmextensions.html">PBS Resource Manager Extension Overview</a>. If the user simply wants the job to run on reserved resources but does not care which, he could submit the job with</p>
<p><tt>></tt> <tt>qsub -l nodes=1,walltime=1:00:00 -W x=FLAGS:ADVRES testjob.cmd</tt></p>
<p>To enable job to reservation mapping via <a href="7.3qos.html">QoS</a>, the QoS flag '<b>USERRESERVED</b>' should be set in a similar manner.</p>
<h2>7.1.1.5 Reservation Specification</h2>
<p>There are two main types of reservations which sites typically deal with. The first, <i>administrative</i> reservations, are typically one time reservations created for special purposes and projects. These reservations are created using the <a href="commands/setres.html">setres</a> command. These reservations provide an integrated mechanism to allow graceful management of unexpected system maintenance, temporary projects, and time critical demonstrations. This command allows an administrator to select a particular set of resources or just specify the quantity of resources needed. For example an administrator could use a regular expression to request a reservation be created on the nodes 'blue0[1-9]' or could simply request that the reservation locate the needed resources by specifying a quantity based request such as 'TASKS==20'.</p>
<p>The second type of reservation is called a <i>standing</i> reservation. It is of use when there is a recurring need for a particular type of resource distribution. For example, a site could use a standing reservation to reserve a subset of its compute resources for quick turnaround jobs during business hours on Monday thru Friday. Standing reservations are created and configured by specifying parameters in the maui.cfg file. The <a href="7.1.3standingreservations.html">Standing Reservation Overview</a> provides more information about configuring and using these reservations.</p>
<h2>7.1.1.6 Reservation Behavior</h2>
<p>As mentioned above, a given reservation may have one or more access criteria. A job can utilize the reserved resources if it meets at least one of these access criteria. It is possible to 'stack' multiple reservations on the same node. In such a situation, a job can only utilize the given node if it meets at least access criteria of each active reservation on the node.</p>
<h2>7.1.1.7 Other Reservation Attributes</h2>
<p>Charge Account - Allows a reservation to charge for resources which are dedicated to the reservation but not used by any job.</p>
<p>See also:</p>
<p>N/A</p>
<div class="navIcons bottomIcons">
<a href="index.html"><img src="home.png" title="Home" alt="Home" border="0"></a> <a href="7.1advancereservations.html"><img src="upArrow.png" title="Up" alt="Up" border="0"></a> <a href="7.1advancereservations.html"><img src="prevArrow.png" title="Previous" alt="Previous" border="0"></a> <a href="7.1.2adminreservations.html"><img src="nextArrow.png" title="Next" alt="Next" border="0"></a>
</div>
</div>
</div>
</div>
<div class="sub-content-btm"></div>
</div>
</body>
</html>