<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://piotrek-orlowski.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://piotrek-orlowski.github.io/" rel="alternate" type="text/html" /><updated>2026-06-11T20:09:54-07:00</updated><id>https://piotrek-orlowski.github.io/feed.xml</id><title type="html">Piotr Orłowski’s Personal Page</title><subtitle>personal description</subtitle><author><name>Piotr Orłowski</name><email>piotr.orlowski@hec.ca</email></author><entry><title type="html">SSH tunneling</title><link href="https://piotrek-orlowski.github.io/posts/2021/11/ssh-tunnel" rel="alternate" type="text/html" title="SSH tunneling" /><published>2021-11-11T00:00:00-08:00</published><updated>2021-11-11T00:00:00-08:00</updated><id>https://piotrek-orlowski.github.io/posts/2021/11/ssh-tunnel</id><content type="html" xml:base="https://piotrek-orlowski.github.io/posts/2021/11/ssh-tunnel"><![CDATA[<p>To forward local port <code class="language-plaintext highlighter-rouge">local_port</code> to remote port <code class="language-plaintext highlighter-rouge">remote_port</code> while connecting vis <code class="language-plaintext highlighter-rouge">ssh</code> on port <code class="language-plaintext highlighter-rouge">ssh_port</code>, run</p>
<pre>
 ssh -p ssh_port -L local_port:remote_host:remote_port username@remote_host
</pre>

<p>You can forward multiple ports by adding multiple <code class="language-plaintext highlighter-rouge">-L</code> options.</p>

<p>If <code class="language-plaintext highlighter-rouge">ssh-agent</code> is not available, include the key by adding <code class="language-plaintext highlighter-rouge">-i path/to/key</code>.</p>]]></content><author><name>Piotr Orłowski</name><email>piotr.orlowski@hec.ca</email></author><category term="ssh" /><category term="ubuntu" /><summary type="html"><![CDATA[To forward local port local_port to remote port remote_port while connecting vis ssh on port ssh_port, run ssh -p ssh_port -L local_port:remote_host:remote_port username@remote_host]]></summary></entry><entry><title type="html">SLURM queue management</title><link href="https://piotrek-orlowski.github.io/posts/2021/10/slurm-queue" rel="alternate" type="text/html" title="SLURM queue management" /><published>2021-10-12T00:00:00-07:00</published><updated>2021-10-12T00:00:00-07:00</updated><id>https://piotrek-orlowski.github.io/posts/2021/10/slurm-management-plugins</id><content type="html" xml:base="https://piotrek-orlowski.github.io/posts/2021/10/slurm-queue"><![CDATA[<p>The following have to be set in <code class="language-plaintext highlighter-rouge">/etc/slurm-llnl/slurm.conf</code> in order to manage the queue with memory limits and CPU limits:</p>
<pre>
MaxMemPerNode=48500
SchedulerType=sched/backfill
SelectType=select/cons_res
SelectTypeParameters=CR_Core_Memory
</pre>

<p>If you only need CPU limits, this is the solution:</p>
<pre>
SchedulerType=sched/backfill
SelectType=select/cons_res
SelectTypeParameters=CR_Core
</pre>

<p>Full compute node setup at the end of the file:</p>
<pre word-wrap="break-word">
# COMPUTE NODES
# Threadripper 3960X
NodeName=hpc-9000 CPUs=24 RealMemory=48500 Sockets=8 CoresPerSocket=3 ThreadsPerCore=1 State=UNKNOWN
PartitionName=batch Nodes=hpc-9000 Default=YES MaxTime=INFINITE State=UP
</pre>

<p>After making the changes run <code>scontrol reconfigure</code>.</p>]]></content><author><name>Piotr Orłowski</name><email>piotr.orlowski@hec.ca</email></author><category term="slurm" /><category term="ubuntu" /><summary type="html"><![CDATA[The following have to be set in /etc/slurm-llnl/slurm.conf in order to manage the queue with memory limits and CPU limits: MaxMemPerNode=48500 SchedulerType=sched/backfill SelectType=select/cons_res SelectTypeParameters=CR_Core_Memory]]></summary></entry></feed>