<?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: r80.40 - VSX interface affinity HP DL380G10 Openserver tg3 in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145567#M22948</link>
    <description>&lt;P&gt;thanks for the pointers!&lt;BR /&gt;&lt;BR /&gt;sk166356 looks similar but a bit different case. Now that I look closer, I believe I can emulate the way that fw ctl affinity matches the interfaces to interrupts (maybe it is the "last resort" method):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# grep eth1 /proc/interrupts | tail -1 | awk ' { print $1 } '
267:
# grep eth12 /proc/interrupts | tail -1 | awk ' { print $1 } '
267:&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;for sk171526, I believe this installation started with a clean r80.40. Also this relates to FWK affinity, I don't see a problem there:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# fw ctl affinity -l -v
Interface eth0 (irq 222): CPU 0 1 2 3 4 5 6 7 8 9
Interface eth1 (irq 267): CPU 1
Interface eth2 (irq 242): CPU 1
Interface eth3 (irq 247): CPU 1
Interface eth4 (irq 237): CPU 0
Interface eth5 (irq 227): CPU 0 1 2 3 4 5 6 7 8 9
Interface eth6 (irq 217): CPU 1
Interface eth7 (irq 257): CPU 1
Interface eth11 (irq 212): CPU 1
Interface eth12 (irq 267): CPU 1
Interface eth13 (irq 232): CPU 1
Interface eth14 (irq 252): CPU 1
VS_0: CPU 2 3 4 5 6 7
VS_0 fwk: CPU 2 3 4 5 6 7
VS_1: CPU 2 3 4 5 6 7
VS_1 fwk: CPU 2 3 4 5 6 7
VS_5: CPU 2 3 4 5 6 7
VS_5 fwk: CPU 2 3 4 5 6 7
VS_8: CPU 2 3 4 5 6 7
VS_8 fwk: CPU 2 3 4 5 6 7
The current license permits the use of CPUs 0, 1, 2, 3, 4, 5, 6, 7 only.
Interface eth8: has multi queue enabled
Interface eth9: has multi queue enabled

# fw ctl multik stat
ID | Active  | CPU    | Connections | Peak    
----------------------------------------------
 0 | Yes     | 2-7    |          26 |      212
 1 | Yes     | 2-7    |          20 |      212
 2 | Yes     | 2-7    |          23 |      212
 3 | Yes     | 2-7    |          24 |      213
 4 | Yes     | 2-7    |          26 |      212
 5 | Yes     | 2-7    |          24 |      213&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Apr 2022 08:22:07 GMT</pubDate>
    <dc:creator>jkougoulos</dc:creator>
    <dc:date>2022-04-06T08:22:07Z</dc:date>
    <item>
      <title>r80.40 - VSX interface affinity HP DL380G10 Openserver tg3</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145426#M22911</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new in Checkpoint firewalls (well I configured a couple of rules 20 years ago in Solaris based one, but this does not count) and I have inherited a VSX HA cluster running on HP DL380 Gen10 Openserver with 3 quad tg3 based (broadcom) 1G NICs and a couple of dual Intel 10G NICs. The box has 2x10 cores, the first 8 of them are licensed.&lt;/P&gt;&lt;P&gt;I have read a lot of documents and skXXXXX in the last days, many forum posts and have done several experiments. I still have some issues with setting up the affinity of the interfaces properly.&lt;/P&gt;&lt;P&gt;Long story short, it looks like each tg3 interface is serviced by 5 IRQs&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;LI-SPOILER&gt;# grep "eth0-" /proc/interrupts | awk ' { print $1, $23 } '&lt;BR /&gt;218: eth0-0&lt;BR /&gt;219: eth0-txrx-1&lt;BR /&gt;220: eth0-tx-2&lt;BR /&gt;221: eth0-tx-3&lt;BR /&gt;222: eth0-tx-4&lt;/LI-SPOILER&gt;&lt;P&gt;Now, when I setup the affinity of the interface eth0 to CPU 0, this is what I get:&lt;/P&gt;&lt;LI-SPOILER&gt;# fw ctl affinity -s -i eth0 0&lt;BR /&gt;Interface eth0: CPU 0 - set successfully&lt;BR /&gt;Multi-queue affinity was not changed. For More info, see sk113834.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# fw ctl affinity -l -r -v -a&lt;BR /&gt;CPU 0: eth0 (irq 222) eth4 (irq 237) eth5 (irq 227)&lt;BR /&gt;CPU 1: eth0 (irq 222) eth1 (irq 267) eth2 (irq 242) eth3 (irq 247) eth5 (irq 227) eth6 (irq 217) eth7 (irq 257) eth11 (irq 212) eth12 (irq 267) eth13 (irq 232) eth14 (irq 252)&lt;BR /&gt;CPU 2: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 3: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 4: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 5: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 6: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 7: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 8: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 9: eth0 (irq 222) eth5 (irq 227)&lt;BR /&gt;CPU 10:&lt;BR /&gt;CPU 11:&lt;BR /&gt;CPU 12:&lt;BR /&gt;CPU 13:&lt;BR /&gt;CPU 14:&lt;BR /&gt;CPU 15:&lt;BR /&gt;CPU 16:&lt;BR /&gt;CPU 17:&lt;BR /&gt;CPU 18:&lt;BR /&gt;CPU 19:&lt;BR /&gt;All:&lt;BR /&gt;The current license permits the use of CPUs 0, 1, 2, 3, 4, 5, 6, 7 only.&lt;BR /&gt;Interface eth8: has multi queue enabled&lt;BR /&gt;Interface eth9: has multi queue enabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# fw ctl affinity -l&lt;BR /&gt;Interface eth0: CPU 0 1 2 3 4 5 6 7 8 9&lt;BR /&gt;Interface eth1: CPU 1&lt;BR /&gt;Interface eth2: CPU 1&lt;BR /&gt;Interface eth3: CPU 1&lt;BR /&gt;Interface eth4: CPU 0&lt;BR /&gt;Interface eth5: CPU 0 1 2 3 4 5 6 7 8 9&lt;BR /&gt;Interface eth6: CPU 1&lt;BR /&gt;Interface eth7: CPU 1&lt;BR /&gt;Interface eth11: CPU 1&lt;BR /&gt;Interface eth12: CPU 1&lt;BR /&gt;Interface eth13: CPU 1&lt;BR /&gt;Interface eth14: CPU 1&lt;BR /&gt;VS_0: CPU 2 3 4 5 6 7&lt;BR /&gt;VS_0 fwk: CPU 2 3 4 5 6 7&lt;BR /&gt;VS_1: CPU 2 3 4 5 6 7&lt;BR /&gt;VS_1 fwk: CPU 2 3 4 5 6 7&lt;BR /&gt;VS_5: CPU 2 3 4 5 6 7&lt;BR /&gt;VS_5 fwk: CPU 2 3 4 5 6 7&lt;BR /&gt;VS_8: CPU 2 3 4 5 6 7&lt;BR /&gt;VS_8 fwk: CPU 2 3 4 5 6 7&lt;BR /&gt;The current license permits the use of CPUs 0, 1, 2, 3, 4, 5, 6, 7 only.&lt;BR /&gt;Interface eth8: has multi queue enabled&lt;BR /&gt;Interface eth9: has multi queue enabled&lt;/LI-SPOILER&gt;&lt;P&gt;Now if I go a bit deeper:&lt;/P&gt;&lt;LI-SPOILER&gt;# for i in `grep "eth0-" /proc/interrupts | awk -F: ' { print $1 } ' | sed 's/://' `; do echo -n "$i -&amp;gt; " ; cat /proc/irq/$i/smp_affinity ; done&lt;BR /&gt;218 -&amp;gt; 00001&lt;BR /&gt;219 -&amp;gt; 003ff&lt;BR /&gt;220 -&amp;gt; 003ff&lt;BR /&gt;221 -&amp;gt; 003ff&lt;BR /&gt;222 -&amp;gt; 003ff&lt;/LI-SPOILER&gt;&lt;P&gt;Notice also that in the output of fw ctl affinity -l -r -v -a, eth1 seems to use the same IRQ with eth12.&lt;/P&gt;&lt;P&gt;While, in reality:&lt;/P&gt;&lt;LI-SPOILER&gt;# grep "eth1-" /proc/interrupts | awk ' { print $1, $23 } '&lt;BR /&gt;258: eth1-0&lt;BR /&gt;259: eth1-txrx-1&lt;BR /&gt;260: eth1-tx-2&lt;BR /&gt;261: eth1-tx-3&lt;BR /&gt;262: eth1-tx-4&lt;BR /&gt;&lt;BR /&gt;# grep "eth12-" /proc/interrupts | awk ' { print $1, $23 } '&lt;BR /&gt;263: eth12-0&lt;BR /&gt;264: eth12-txrx-1&lt;BR /&gt;265: eth12-tx-2&lt;BR /&gt;266: eth12-tx-3&lt;BR /&gt;267: eth12-tx-4&lt;/LI-SPOILER&gt;&lt;P&gt;So, my question is... does it look the same in other installations using tg3 driver in r80.40 / is it expected behaviour or should I look for something else?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 18:11:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145426#M22911</guid>
      <dc:creator>jkougoulos</dc:creator>
      <dc:date>2022-04-04T18:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: r80.40 - VSX interface affinity HP DL380G10 Openserver tg3</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145515#M22935</link>
      <description>&lt;P&gt;This looks similar&amp;nbsp;&lt;A class="cp_link sc_ellipsis" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk171526&amp;amp;partition=Advanced&amp;amp;product=Quantum" target="_blank"&gt;sk171526: Output of 'fw ctl &lt;STRONG&gt;affinity&lt;/STRONG&gt;' does not show FWK &lt;STRONG&gt;affinity&lt;/STRONG&gt; to CPU core after upgrade of R80.30 Security Gateway to R80.40&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The issue you have should be fixed in R80.40&amp;nbsp;&lt;A class="cp_link sc_ellipsis" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk166356&amp;amp;partition=Advanced&amp;amp;product=CoreXL" target="_blank"&gt;sk166356: 'fw ctl &lt;STRONG&gt;affinity&lt;/STRONG&gt;' and "sim &lt;STRONG&gt;affinity&lt;/STRONG&gt;" commands showing wrong data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:32:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145515#M22935</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2022-04-05T15:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: r80.40 - VSX interface affinity HP DL380G10 Openserver tg3</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145517#M22936</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/74795"&gt;@jkougoulos&lt;/a&gt;&amp;nbsp;one more thing to observe.... disable your unlicensed cores in the BIOS of your open server hardware. There are some known strange problems if more cores active then licensed.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:45:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145517#M22936</guid>
      <dc:creator>Wolfgang</dc:creator>
      <dc:date>2022-04-05T15:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: r80.40 - VSX interface affinity HP DL380G10 Openserver tg3</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145565#M22947</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1447"&gt;@Wolfgang&lt;/a&gt;thanks for this hint. I saw somewhere that tg3 may enable more channels depending on number of cores, but if I want to reduce the cores to 8 in Bios, probably this would mean to switch to 2x4 cores - moving the load between the 2 processors which might have some performance impact.&lt;BR /&gt;&lt;BR /&gt;I will start with ethtool tuning first and if it plays any role and see if I need to resort to reducing the number of cores. I guess I could also set the affinity manually using commands to /proc/irq/xxx/smp_affinity&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 07:54:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145565#M22947</guid>
      <dc:creator>jkougoulos</dc:creator>
      <dc:date>2022-04-06T07:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: r80.40 - VSX interface affinity HP DL380G10 Openserver tg3</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145567#M22948</link>
      <description>&lt;P&gt;thanks for the pointers!&lt;BR /&gt;&lt;BR /&gt;sk166356 looks similar but a bit different case. Now that I look closer, I believe I can emulate the way that fw ctl affinity matches the interfaces to interrupts (maybe it is the "last resort" method):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# grep eth1 /proc/interrupts | tail -1 | awk ' { print $1 } '
267:
# grep eth12 /proc/interrupts | tail -1 | awk ' { print $1 } '
267:&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;for sk171526, I believe this installation started with a clean r80.40. Also this relates to FWK affinity, I don't see a problem there:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# fw ctl affinity -l -v
Interface eth0 (irq 222): CPU 0 1 2 3 4 5 6 7 8 9
Interface eth1 (irq 267): CPU 1
Interface eth2 (irq 242): CPU 1
Interface eth3 (irq 247): CPU 1
Interface eth4 (irq 237): CPU 0
Interface eth5 (irq 227): CPU 0 1 2 3 4 5 6 7 8 9
Interface eth6 (irq 217): CPU 1
Interface eth7 (irq 257): CPU 1
Interface eth11 (irq 212): CPU 1
Interface eth12 (irq 267): CPU 1
Interface eth13 (irq 232): CPU 1
Interface eth14 (irq 252): CPU 1
VS_0: CPU 2 3 4 5 6 7
VS_0 fwk: CPU 2 3 4 5 6 7
VS_1: CPU 2 3 4 5 6 7
VS_1 fwk: CPU 2 3 4 5 6 7
VS_5: CPU 2 3 4 5 6 7
VS_5 fwk: CPU 2 3 4 5 6 7
VS_8: CPU 2 3 4 5 6 7
VS_8 fwk: CPU 2 3 4 5 6 7
The current license permits the use of CPUs 0, 1, 2, 3, 4, 5, 6, 7 only.
Interface eth8: has multi queue enabled
Interface eth9: has multi queue enabled

# fw ctl multik stat
ID | Active  | CPU    | Connections | Peak    
----------------------------------------------
 0 | Yes     | 2-7    |          26 |      212
 1 | Yes     | 2-7    |          20 |      212
 2 | Yes     | 2-7    |          23 |      212
 3 | Yes     | 2-7    |          24 |      213
 4 | Yes     | 2-7    |          26 |      212
 5 | Yes     | 2-7    |          24 |      213&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:22:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/r80-40-VSX-interface-affinity-HP-DL380G10-Openserver-tg3/m-p/145567#M22948</guid>
      <dc:creator>jkougoulos</dc:creator>
      <dc:date>2022-04-06T08:22:07Z</dc:date>
    </item>
  </channel>
</rss>

