<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi mahmood,<br>
<br>
yes that is totally normal.<br>
<br>
please use sbatch instead of salloc.<br>
<br>
If you use salloc, you just create an allocation. You would normally
srun to that allocation.<br>
<br>
To be clear, salloc does not create a batchjob, which gets executed
on the remote host. After salloc returns (which might take a while,
if your cluster is full), you are still on the login node, but have
a "reservation" for the asked resources.<br>
You will see, that your environment is "poisened" with additional
env variables. So, I would strongly recommend to use different
terminals, if you would like to have parallel allocations opened by
salloc. srun would then use these env variables to get onto the
right node (if I remember right).<br>
<br>
What you want to do, is create a batchscript, submit it to the
scheduler, such that the jobs gets executed on the host as soon as
there are free resources.<br>
This is done via "sbatch run.sh", not salloc run.sh.<br>
<br>
<br>
Best<br>
Marcus<br>
<br>
<div class="moz-cite-prefix">On 7/9/19 9:46 AM, Mahmood Naderan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADa2P2UHT5ow6fj3frz=55q9fkcOgRncqgNEyQw_A6YNbfzJ3g@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">I
use the following script for qemu run</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">#!/bin/bash<br>
#SBATCH --nodelist=compute-0-1<br>
#SBATCH --cores=8<br>
#SBATCH --mem=40G<br>
#SBATCH --partition=QEMU<br>
#SBATCH --account=q20_8<br>
<br>
USERN=`whoami`<br>
qemu-system-x86_64 -m 40000 -smp cores=8 -hda win7_sp1_x64.img
-boot c -usbdevice tablet -enable-kvm -device
e1000,netdev=host_files -netdev user,net=<a
href="http://10.0.2.0/24,id=host_files"
moz-do-not-send="true">10.0.2.0/24,id=host_files</a></div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">Although
I have specified "compute-0-1", when I run "salloc ./run.sh",
it puts the job on the frontend. <br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">Is
that normal? If there is any problem with the node I have
specified, then I should receive an error or waiting message.
Isn't that?</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br
clear="all">
</div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>
Mahmood</font><br>
<br>
<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Marcus Wagner, Dipl.-Inf.
IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
<a class="moz-txt-link-abbreviated" href="mailto:wagner@itc.rwth-aachen.de">wagner@itc.rwth-aachen.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.itc.rwth-aachen.de">www.itc.rwth-aachen.de</a>
</pre>
</body>
</html>