<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VSX Affinity Question? in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89000#M8967</link>
    <description>&lt;P&gt;As far as I am concerned, the last second option is not required. Affinity for FWK is handled by the first approach automatically. US affinity with pname is for other processes.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 11:27:07 GMT</pubDate>
    <dc:creator>_Val_</dc:creator>
    <dc:date>2020-06-18T11:27:07Z</dc:date>
    <item>
      <title>VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/88844#M8965</link>
      <description>&lt;P&gt;I have tested a lot in the lab with vsx and affinity over the last days. Now a question has come up which I cannot explain 100%. &lt;BR /&gt;&lt;BR /&gt;Way 1:&lt;BR /&gt;When I search the internet, they all say that the CoreXL instances must be assigned to the Core's. Typical assignment:&lt;BR /&gt;fw ctl affinity -s -d -vsid 0 -cpu 1&lt;BR /&gt;fw ctl affinity -s -d -vsid 1 -cpu 1&lt;BR /&gt;fw ctl affinity -s -d -vsid 2 -cpu 2&lt;BR /&gt;fw ctl affinity -s -d -vsid 3 -cpu 3&lt;BR /&gt;&lt;BR /&gt;After that my affinity looks like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vsx2.JPG" style="width: 187px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/6821i5BE93EA372738198/image-size/large?v=v2&amp;amp;px=999" role="button" title="vsx2.JPG" alt="vsx2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Way 2:&lt;BR /&gt;From my point of view, it would be better to distribute the fwk process to the cores as well. For this purpose I have set the following:&lt;BR /&gt;fw ctl affinity -s -d -pname fwk -vsid 0 -cpu 1&lt;BR /&gt;fw ctl affinity -s -d -pname fwk -vsid 1 -cpu 1&lt;BR /&gt;fw ctl affinity -s -d -pname fwk -vsid 2 -cpu 2&lt;BR /&gt;fw ctl affinity -s -d -pname fwk -vsid 3 -cpu 3&lt;/P&gt;
&lt;P&gt;Here the affinity looks as follows:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vsx3.JPG" style="width: 149px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/6822i3FFD97D96410372C/image-size/large?v=v2&amp;amp;px=999" role="button" title="vsx3.JPG" alt="vsx3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Now the question arises for me, which of the two ways is the better one?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PS: &lt;BR /&gt;Top shows the fwkX processes:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vsx4.JPG" style="width: 578px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/6823i3AEF6FBF4C613BC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="vsx4.JPG" alt="vsx4.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;A small calculation sample for the utilization of process fwkX:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vsx5.JPG" style="width: 706px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/6824iCBC49D8B0712C9E0/image-dimensions/706x90?v=v2" width="706" height="90" role="button" title="vsx5.JPG" alt="vsx5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- fwk0_X -&amp;gt; fw instance thread that takes care for the packet processing&lt;BR /&gt;- fwk0_dev_X -&amp;gt; the thread that takes care for communication between fw instances and other CP daemons &lt;BR /&gt;- fwk0_kissd -&amp;gt; legacy Kernel Infrastructure (obsolete)&lt;BR /&gt;- fwk0_hp -&amp;gt; (high priority) cluster thread&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 06:28:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/88844#M8965</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2021-04-12T06:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/88998#M8966</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt; &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/181"&gt;@_Val_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Is there someone at Check Point who can answer the VSX affinity question?&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 11:14:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/88998#M8966</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-06-18T11:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89000#M8967</link>
      <description>&lt;P&gt;As far as I am concerned, the last second option is not required. Affinity for FWK is handled by the first approach automatically. US affinity with pname is for other processes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 11:27:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89000#M8967</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2020-06-18T11:27:07Z</dc:date>
    </item>
    <item>
      <title>VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89071#M8968</link>
      <description>&lt;P&gt;In the user space firewall, this is basically a process that now calls several threads that work on several cores. It just brought up my question.&amp;nbsp;I did the same with all my VSX installations as you described in the history.&lt;/P&gt;
&lt;P&gt;Here an example from the LAB:&lt;/P&gt;
&lt;P&gt;Test 1:&lt;BR /&gt;# fw ctl affinity -s -d -pname fwk -vsid 0 -cpu 1&lt;BR /&gt;# fw ctl affinity -s -d -pname fwk -vsid 1 -cpu 1-3&lt;BR /&gt;# fw ctl affinity -s -d -pname fwk -vsid 2 -cpu 2&lt;BR /&gt;# fw ctl affinity -s -d -pname fwk -vsid 3 -cpu 3&lt;BR /&gt;# reboot&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ps1.JPG" style="width: 315px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/6848i8D3DC16CA74F5B0D/image-dimensions/315x487?v=v2" width="315" height="487" role="button" title="ps1.JPG" alt="ps1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Test 2:&lt;BR /&gt;# fw ctl affinity -s -d -vsid 0 -cpu 1&lt;BR /&gt;# fw ctl affinity -s -d -vsid 1 -cpu 1-3&lt;BR /&gt;# fw ctl affinity -s -d -vsid 2 -cpu 2&lt;BR /&gt;# fw ctl affinity -s -d -vsid 3 -cpu 3&lt;BR /&gt;# reboot&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ps2.JPG" style="width: 315px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/6847i6F1E0E08F4D17340/image-dimensions/315x538?v=v2" width="315" height="538" role="button" title="ps2.JPG" alt="ps2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When you do research here at LAB, even more amazing things come out. No matter which command I use, the instances always remain the same on Linux level. At the process level, I can't see any difference. See pictures above. I have a system with 4 cores and all instances are assigned to all cores on process level. Whether I change the affinity with one or the other command here.&lt;/P&gt;
&lt;P&gt;I would expect to see even one thread process if I set only one over the affinity. I don't understand that. Hmmmm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 16:46:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89071#M8968</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-06-18T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89106#M8969</link>
      <description>If this is an R80.40 box, I think what you're seeing with fwk on all CPUs is expected behavior.&lt;BR /&gt;We have a mechanism to dynamically allocate the worker/SND split without a reboot. &lt;BR /&gt;As I recall, we basically allocate all core/CPUs to both functions and just dynamically use them (or not) depending on system demand.</description>
      <pubDate>Thu, 18 Jun 2020 22:57:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89106#M8969</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-06-18T22:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89272#M8970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With R80.40 this would be a logical explanation. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But it is an R80.30 VSX LS cluster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jun 2020 05:46:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89272#M8970</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-06-20T05:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89280#M8971</link>
      <description>Is it 3.10 kernel or 2.6 kernel?</description>
      <pubDate>Sat, 20 Jun 2020 17:03:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89280#M8971</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-06-20T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: VSX Affinity Question?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89288#M8972</link>
      <description>&lt;P&gt;2.6 kernel&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="af1.JPG" style="width: 303px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/6895i05ABFFD164BB5C98/image-size/large?v=v2&amp;amp;px=999" role="button" title="af1.JPG" alt="af1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 08:12:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/VSX-Affinity-Question/m-p/89288#M8972</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-06-21T08:12:53Z</dc:date>
    </item>
  </channel>
</rss>

