<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.uni-due.de/ittp/index.php?action=history&amp;feed=atom&amp;title=Slurm%2FTask-Affinity</id>
	<title>Slurm/Task-Affinity - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.uni-due.de/ittp/index.php?action=history&amp;feed=atom&amp;title=Slurm%2FTask-Affinity"/>
	<link rel="alternate" type="text/html" href="https://wiki.uni-due.de/ittp/index.php?title=Slurm/Task-Affinity&amp;action=history"/>
	<updated>2026-04-13T02:27:46Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in IT Physics</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.uni-due.de/ittp/index.php?title=Slurm/Task-Affinity&amp;diff=13&amp;oldid=prev</id>
		<title>Brendel: /* Checking with htop */ HT</title>
		<link rel="alternate" type="text/html" href="https://wiki.uni-due.de/ittp/index.php?title=Slurm/Task-Affinity&amp;diff=13&amp;oldid=prev"/>
		<updated>2021-09-20T20:43:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Checking with htop: &lt;/span&gt; HT&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 20. September 2021, 22:43 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Zeile 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Checking with &amp;lt;code&amp;gt;htop&amp;lt;/code&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Checking with &amp;lt;code&amp;gt;htop&amp;lt;/code&amp;gt; =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Following &amp;lt;code&amp;gt;/proc/cpuinfo&amp;lt;/code&amp;gt;, the &amp;quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;effective &lt;/del&gt;core id&amp;quot; of &amp;lt;code&amp;gt;htop&amp;lt;/code&amp;gt; is T*32+S*16+C with&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Following &amp;lt;code&amp;gt;/proc/cpuinfo&amp;lt;/code&amp;gt;, the &amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;logical &lt;/ins&gt;core id&amp;quot; of &amp;lt;code&amp;gt;htop&amp;lt;/code&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on a &amp;#039;&amp;#039;Xeon Gold 6226R&amp;#039;&amp;#039; &lt;/ins&gt;is T*32+S*16+C with&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* T = thread-ID ϵ {0,1} (the two threads on a core)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* T = thread-ID ϵ {0,1} (the two threads on a core &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for enabled hyperthreading&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* S = socket-ID ϵ {0,1} (the two CPUs with 16 cores)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* S = socket-ID ϵ {0,1} (the two CPUs with 16 cores)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* C = core-ID ϵ {0,1,...,15} (the 16 physical cores)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* C = core-ID ϵ {0,1,...,15} (the 16 physical cores)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In other words, the 4 columns in &amp;quot;htop&amp;quot; are  S0T0 | S1T0 | S0T1 | S1T1, and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;avoiding hyper threading means to fill only the first two columns&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In other words, the 4 columns in &amp;quot;htop&amp;quot; are  S0T0 | S1T0 | S0T1 | S1T1 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with hyperthreading&lt;/ins&gt;, and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;S0 | S0 | S1 | S1 without&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Brendel</name></author>
	</entry>
	<entry>
		<id>https://wiki.uni-due.de/ittp/index.php?title=Slurm/Task-Affinity&amp;diff=12&amp;oldid=prev</id>
		<title>Brendel: neu</title>
		<link rel="alternate" type="text/html" href="https://wiki.uni-due.de/ittp/index.php?title=Slurm/Task-Affinity&amp;diff=12&amp;oldid=prev"/>
		<updated>2021-09-18T05:54:17Z</updated>

		<summary type="html">&lt;p&gt;neu&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Cf. https://www.glennklockwood.com/hpc-howtos/process-affinity.html for an explanation.&lt;br /&gt;
&lt;br /&gt;
Slurm is configured with &amp;lt;code&amp;gt;TaskPlugin=task/affinity&amp;lt;/code&amp;gt; and &amp;#039;&amp;#039;can&amp;#039;&amp;#039; reserve cores for a job. &amp;lt;code&amp;gt;srun&amp;lt;/code&amp;gt;&amp;#039;s option &amp;lt;code&amp;gt;--cpu-bind&amp;lt;/code&amp;gt; provides detailed control for that.&lt;br /&gt;
&lt;br /&gt;
= Checking with &amp;lt;code&amp;gt;htop&amp;lt;/code&amp;gt; =&lt;br /&gt;
&lt;br /&gt;
Following &amp;lt;code&amp;gt;/proc/cpuinfo&amp;lt;/code&amp;gt;, the &amp;quot;effective core id&amp;quot; of &amp;lt;code&amp;gt;htop&amp;lt;/code&amp;gt; is T*32+S*16+C with&lt;br /&gt;
* T = thread-ID ϵ {0,1} (the two threads on a core)&lt;br /&gt;
* S = socket-ID ϵ {0,1} (the two CPUs with 16 cores)&lt;br /&gt;
* C = core-ID ϵ {0,1,...,15} (the 16 physical cores)&lt;br /&gt;
&lt;br /&gt;
In other words, the 4 columns in &amp;quot;htop&amp;quot; are  S0T0 | S1T0 | S0T1 | S1T1, and avoiding hyper threading means to fill only the first two columns.&lt;/div&gt;</summary>
		<author><name>Brendel</name></author>
	</entry>
</feed>