<?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: How to find core density(physical cores/physical processor) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5316853#M475537</link>
    <description>&lt;P&gt;Sorry...should have been more specific.&amp;nbsp; Run 'sar -M 1 1'&amp;nbsp; (sar expects interval and time delay options as its a metrics/performance tool.&amp;nbsp;&amp;nbsp; For example, the following is showing 8 processors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HP-UX rx7640a B.11.31 U ia64    08/30/11

08:53:40     cpu    %usr    %sys    %wio   %idle
08:53:41       0       0       0       0     100
               1       0       0       0     100
               2       0       1       1      98
               3       0       0       0     100
               4       0       0       0     100
               5       0       0       0      99
               6       0       0       0     100
               7       0       0       0     100
          system       0       0       0     100&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2011 12:52:01 GMT</pubDate>
    <dc:creator>Robert_Jewell</dc:creator>
    <dc:date>2011-08-30T12:52:01Z</dc:date>
    <item>
      <title>How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5314971#M475499</link>
      <description>&lt;P&gt;I could see similar posts on this forum, but I could not find required information. I am interested in finding the number of cores per physical processor (need not to consider hyperthreading) across all 11.23 and 11.31 HP-UX machines. We are using Perl scripts to discover this information and hence it would be really helpful if I can find CLI's or Perl/shell scripts. I assume "ioscan -fk | grep processor" would give the available physical core count on the host. Please correct me if my assumption is incorrect.&lt;/P&gt;&lt;P&gt;To find find core density, I need to get available physical processor count on the host(along with core count). But, I could not find any CLI or script to get this information on all 11.23 and 11.31 hosts. I have tried "machinfo" which would give cores per socket in CPU info: section. But on some of the 11.23 hosts, "machinfo" is not available and on some other hosts getting some exception(failed to retrieve CPU info) while invoking "machinfo". &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 05:29:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5314971#M475499</guid>
      <dc:creator>Symantec</dc:creator>
      <dc:date>2011-08-29T05:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5314977#M475500</link>
      <description>&lt;P&gt;(The correct boards are under HP-UX.&amp;nbsp; I asked the moderators to move this topic.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I am interested in finding the number of cores per physical processor (need not to consider hyperthreading)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the answer is always 1.&amp;nbsp; Each core is a processor.&lt;/P&gt;&lt;P&gt;Now if you are talking about cores per socket, then it depends on the CPU model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I assume "ioscan -fk | grep processor"﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use -C to speed this up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;But on some of the 11.23 hosts, "machinfo" is not available﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only if the sysadmin removed it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 05:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5314977#M475500</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-29T05:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5315453#M475506</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;Only if the sysadmin removed it.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, it's a PA-RISC sysem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 11:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5315453#M475506</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2011-08-29T11:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5315499#M475510</link>
      <description>&lt;P&gt;Hey;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've recently tried going through this exercise myself. &amp;nbsp;To quote a disgraced former president, "I feel your pain".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you've found, machinfo only works on ia64 systems. &amp;nbsp;PA-Risc systems seem to be a bit harder to find this ifo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A healthy bit of research indicated that *all* rp3440 and rp4440s were dual core. &amp;nbsp;Another possibility that I haven't explored too far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;#&amp;nbsp;echo "sc product cpu;il" | cstm &amp;gt; /tmp/cstm.out&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;# grep "CPU Number" /tmp/cstm.out&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;CPU Number: 0 &amp;nbsp; &amp;nbsp; CPU Slot Number 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;CPU Number: 1 &amp;nbsp; &amp;nbsp; CPU Slot Number 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;CPU Number: 2 &amp;nbsp; &amp;nbsp; CPU Slot number 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;CPU Number: 3 &amp;nbsp; &amp;nbsp; CPU Slot number 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To me, that indicates dual core cpus; however, I haven't had a chance to independently verify that in any way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 12:29:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5315499#M475510</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2011-08-29T12:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5315833#M475521</link>
      <description>&lt;P&gt;&amp;gt; machinfo only works on ia64 systems.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;machinfo also works on any 11.31 system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, note that that the only processor that can run HP-UX that has more than two cores per socket is the Tukwila (Itanium 9300 series) and is currently running on the i2 series blades and the Superdome2.&amp;nbsp; Anything would be single or dual core.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not helping your original question I am sure.&amp;nbsp; Another way to see total processors or cores is 'sar -M'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Bob&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 17:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5315833#M475521</guid>
      <dc:creator>Robert_Jewell</dc:creator>
      <dc:date>2011-08-29T17:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5316251#M475525</link>
      <description>&lt;P&gt;Thanks Doug and Bob.&amp;nbsp; But still, I am unable resolve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sar -M&lt;BR /&gt;sar: Can't open /var/adm/sa/sa30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;#echo "sc product cpu;il" | cstm &amp;gt; /tmp/cstm.out&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;This also fails on few IA hosts with error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;cstm&amp;gt;sc product cpu;il&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^-- (InfoLog) is currently disabled. --&lt;/P&gt;&lt;P&gt;cstm&amp;gt;#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot make any assumption that InfoLog would be enabled on the host where my script get executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow I&amp;nbsp;could manage to get this information on all other plaforms except HP-UX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Santosh&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2011 05:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5316251#M475525</guid>
      <dc:creator>Santosh_K</dc:creator>
      <dc:date>2011-08-30T05:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5316853#M475537</link>
      <description>&lt;P&gt;Sorry...should have been more specific.&amp;nbsp; Run 'sar -M 1 1'&amp;nbsp; (sar expects interval and time delay options as its a metrics/performance tool.&amp;nbsp;&amp;nbsp; For example, the following is showing 8 processors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HP-UX rx7640a B.11.31 U ia64    08/30/11

08:53:40     cpu    %usr    %sys    %wio   %idle
08:53:41       0       0       0       0     100
               1       0       0       0     100
               2       0       1       1      98
               3       0       0       0     100
               4       0       0       0     100
               5       0       0       0      99
               6       0       0       0     100
               7       0       0       0     100
          system       0       0       0     100&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2011 12:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5316853#M475537</guid>
      <dc:creator>Robert_Jewell</dc:creator>
      <dc:date>2011-08-30T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5322809#M475623</link>
      <description>&lt;P&gt;Looks like 'sar -M 1 1' lists available core information. I am using ioscan to get this information.&lt;/P&gt;&lt;P&gt;Now I need to know either phycical processor/socket count or core density.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 06:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5322809#M475623</guid>
      <dc:creator>Santosh_K</dc:creator>
      <dc:date>2011-09-06T06:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to find core density(physical cores/physical processor)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5819953#M482000</link>
      <description>&lt;P&gt;Under HP-UX 11i v3 (and maybe 2) the mpctl() function call has the MPC_GETNUMCORES_SYS, MPC_GETNUMSPUS_SYS, and the MPC_GETNUMSOCKETS_SYS operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first gets the number of logical cores, which is twice the number of physical cores on Itanium systems with Intel Hyper-Thread Technology turned on; the second gets the number of physical processor cores; and the third one returns the number of sockets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only GETNUMSPUS is supported on 11i v1, not GETNUMSOCKETS, but only the PA-8800 and PA-8900 processors were dual-core, so if you can identify that you're on a PA-RISC system and running either one of those two processors, you'll know that your number of sockets is half the return value of mpctl(MPC_GETNUMSPUS_SYS, 0, 0). The good news is that there will never be a new PA-RISC processor so you can just do a case statement and forget it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cstm "sc product cpu; il" command will eventually show the following: "PA 8500-8500 CPU 2.1" (from my B1000 workstation), but I'm not sure yet how to do that in C - I suspect it has something to do with probing IO modules since that's the section where the processor info appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the 11i v3 man page for mpctl(), which I've attached in case the link goes dead in a few years:&lt;/P&gt;&lt;P&gt;&lt;A href="http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02264569/c02264569.pdf" target="_blank"&gt;http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02264569/c02264569.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2012 10:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-core-density-physical-cores-physical-processor/m-p/5819953#M482000</guid>
      <dc:creator>mvpel</dc:creator>
      <dc:date>2012-09-30T10:50:58Z</dc:date>
    </item>
  </channel>
</rss>

