Difference between revisions of "Add resources (machines) to the pool"

From Supercomputación y Cálculo Científico UIS
(Tag added)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Back to [[OAR]]
+
__NOTOC__
  
1. Agregar los recursos del nuevo nodo a OAR. Edite un archivo /tmp/nodos con el nombre de los nodos nuevos
+
<div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div>
(uno por línea)
+
<p><div class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> [[Job Scheduler OAR]]</div></p>
 +
<div class="column clearfix">
 +
    <div class="col-md-14">
 +
        <div class="well well-midnight">
 +
            <h4>Add resources (machines) to the pool</h4>
 +
        </div>
 +
    </div>
 +
</div>
 +
 
 +
<div class="col-md-14">
 +
    <div class="panel panel-darker-white-border">
 +
        <div class="panel-heading">
 +
            <h3 class="panel-title">Add the resources (new nodes) to OAR</h3>
 +
        </div>
 +
        <div class="panel-body">
 +
            <p>
 +
 
 +
1. Edit a file /tmp/nodos with the names of the new nodes (one per line)
 
{{File|/tmp/nodos|<pre><nowiki>
 
{{File|/tmp/nodos|<pre><nowiki>
 
...
 
...
Line 11: Line 28:
 
...
 
...
 
</nowiki></pre>}}
 
</nowiki></pre>}}
2. Luego, ejecute
+
 
 +
2. Then run the following command
 
{{Command|<nowiki>oar_resources_init /tmp/nodos</nowiki>}}
 
{{Command|<nowiki>oar_resources_init /tmp/nodos</nowiki>}}
3. Ejecute el siguiente comando
+
 
 +
3. Now run
 
{{Command|<nowiki>source /tmp/oar_resources_init.cmd</nowiki>}}
 
{{Command|<nowiki>source /tmp/oar_resources_init.cmd</nowiki>}}
4. Agregar los recursos de GPU del nuevo nodo. Edite un archivo (GPUresources.cmd) con las siguientes líneas
+
 
 +
4. Add GPU resources from nodes. Edit a file (GPUresources.cmd) with the following lines:
 
{{File|GPUresources.cmd|<pre><nowiki>
 
{{File|GPUresources.cmd|<pre><nowiki>
 
...
 
...
Line 26: Line 46:
 
</nowiki></pre>}}
 
</nowiki></pre>}}
 
{{Note|<nowiki>
 
{{Note|<nowiki>
compagine cada core nuevo con los GPUs nuevos. En el caso de guane donde cada nodo tiene 24 cores y 8 GPUs, se ha asignado un GPU a 3 cores. Puede utilizar el siguiente script para generar ese archivo. Cambie a conveniencia los contadores: i, j, k, gpu
+
Each new core must correspond with the new GPU. In guane, for instance, where each node has 24 cores and 8 GPU, each GPU has been assigned to 3 cores. The following script can be used to generate that file. Choose the counters accordingly to the situation: i, j, k, gpu.
 
</nowiki>}}
 
</nowiki>}}
 
{{File|script.sh|<pre><nowiki>
 
{{File|script.sh|<pre><nowiki>
Line 52: Line 72:
 
   done
 
   done
 
</nowiki></pre>}}
 
</nowiki></pre>}}
5. Agregue los recursos con el siguiente comando
+
5. Add the resources with the following command:
 
{{Command|<nowiki>source GPUresources.cmd</nowiki>}}
 
{{Command|<nowiki>source GPUresources.cmd</nowiki>}}
 +
 +
            </p>
 +
        </div>
 +
    </div>
 +
</div>

Latest revision as of 19:24, 9 April 2015


Logo_sc33.png

Add resources (machines) to the pool

Add the resources (new nodes) to OAR

1. Edit a file /tmp/nodos with the names of the new nodes (one per line)

File: /tmp/nodos
...
guane12
guane17
.
.
...

2. Then run the following command

oar_resources_init /tmp/nodos


3. Now run

source /tmp/oar_resources_init.cmd


4. Add GPU resources from nodes. Edit a file (GPUresources.cmd) with the following lines:

File: GPUresources.cmd
...
oarnodesetting --sql "core=169" -p gpu=YES -p gpunum=57 -p gputype=M2075
oarnodesetting --sql "core=170" -p gpu=YES -p gpunum=57 -p gputype=M2075
oarnodesetting --sql "core=171" -p gpu=YES -p gpunum=57 -p gputype=M2075
.
.
...
NOTE: Each new core must correspond with the new GPU. In guane, for instance, where each node has 24 cores and 8 GPU, each GPU has been assigned to 3 cores. The following script can be used to generate that file. Choose the counters accordingly to the situation: i, j, k, gpu.
File: script.sh
# Este script genera un (CPUresources.cmd) que contiene
# las líneas necesarias para agregar los recursos GPU de un
# nodo a la BD de OAR
# En el caso de guane, hay 24 cores por nodo y 8 GPUs por nodo
# Entonces se asigna un GPU cada 3 cores.
#!/bin/bash

i=169
j=170
k=171
gpu=57

while [ $gpu -lt 65 ]
   do
      echo "oarnodesetting --sql \"core=$i\" -p gpu=YES -p gpunum=$gpu -p gputype=M2075" >> GPUresources.cmd
      echo "oarnodesetting --sql \"core=$j\" -p gpu=YES -p gpunum=$gpu -p gputype=M2075" >> GPUresources.cmd
      echo "oarnodesetting --sql \"core=$k\" -p gpu=YES -p gpunum=$gpu -p gputype=M2075" >> GPUresources.cmd
      i=`echo $i + 3 | bc`
      j=`echo $j + 3 | bc`
      k=`echo $k + 3 | bc`
      gpu=`echo $gpu + 1 | bc`
   done

5. Add the resources with the following command:

source GPUresources.cmd