<?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 the cpu clock speed in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635673#M105065</link>
    <description>And of course the obligatory perl way:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat cpuspeed&lt;BR /&gt;perl -e 'local($PSTAT, $PSTAT_PROCESSOR)=(239,10);&lt;BR /&gt;local($struct_pst_processor)=("L30");&lt;BR /&gt;local($cpu_info, $cpu_ticks);&lt;BR /&gt;$cpu_info = "\0" x 120;&lt;BR /&gt;syscall($PSTAT, $PSTAT_PROCESSOR, $cpu_info, length($cpu_info), 1, 0);&lt;BR /&gt;($cpu_ticks)=(unpack($struct_pst_processor, $cpu_info))[26];&lt;BR /&gt;print "speed=".int($cpu_ticks/10000)." Mhz\n";'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Tue, 27 Sep 2005 08:55:01 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2005-09-27T08:55:01Z</dc:date>
    <item>
      <title>How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635663#M105055</link>
      <description>&lt;P&gt;Please tell me how to find the cpu clock speed and also how to find out if the system in PA-RISC or not.using command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.This thread has been moved from Moved from HP-UX&amp;gt;General &amp;nbsp;to HP-UX&amp;gt; &amp;nbsp;languages- HP Forums Moderator&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2013 03:47:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635663#M105055</guid>
      <dc:creator>santosh jha</dc:creator>
      <dc:date>2013-01-02T03:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635664#M105056</link>
      <description>I use this little script:&lt;BR /&gt;&lt;BR /&gt;HPUX=/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;MODEL=$(grep -i $(model | tr "/" " " \&lt;BR /&gt;        | awk '{print $NF}') \&lt;BR /&gt;        /usr/sam/lib/mo/sched.models \&lt;BR /&gt;        | awk '{print $NF}')&lt;BR /&gt;&lt;BR /&gt;MHZ=$(echo itick_per_tick/D \&lt;BR /&gt;        | adb -k $HPUX /dev/kmem \&lt;BR /&gt;        | tail -1 \&lt;BR /&gt;        | awk '{print $2/10000}')&lt;BR /&gt;echo `hostname` has `ioscan -k |grep -n processor \&lt;BR /&gt;        |wc -l` $MODEL $MHZ  "Mhz processor(s)"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To tell if it's PA-RISC or not, simply issue the model command.  Anything that starts with rx is Itanium, everything else is PA-RISC.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 27 Sep 2005 04:54:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635664#M105056</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-09-27T04:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635665#M105057</link>
      <description>echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem  &lt;BR /&gt;model&lt;BR /&gt;&lt;BR /&gt;rx-itanium&lt;BR /&gt;rp-pa-risc&lt;BR /&gt;&lt;BR /&gt;echo "selclass qualifier cpu;info;wait;infolog"|cstm</description>
      <pubDate>Tue, 27 Sep 2005 04:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635665#M105057</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-27T04:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635666#M105058</link>
      <description>b) uname -m or model command will tell whether it is Itanium or PA-RISC based.&lt;BR /&gt;&lt;BR /&gt;model is not IA64 then it is PA-RISC one.&lt;BR /&gt;&lt;BR /&gt;a) Processor information:&lt;BR /&gt;&lt;BR /&gt;sam -&amp;gt; performance monitor -&amp;gt; system properties&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Tue, 27 Sep 2005 04:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635666#M105058</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-27T04:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635667#M105059</link>
      <description>&lt;BR /&gt;From the command-line,&lt;BR /&gt;&lt;BR /&gt;  # echo "itick_per_usec/D" | adb /stand/vmunix /dev/mem | tail -1&lt;BR /&gt;  itick_per_usec: 552&lt;BR /&gt;&lt;BR /&gt;From SAM,&lt;BR /&gt;&lt;BR /&gt;  o Go to Performance Monitors -&amp;gt; System Properties -&amp;gt; Memory&lt;BR /&gt;  o Check Clock Frequency: value&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2005 04:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635667#M105059</guid>
      <dc:creator>VEL_1</dc:creator>
      <dc:date>2005-09-27T04:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635668#M105060</link>
      <description>sam -&amp;gt; performance monitors -&amp;gt; system properties&lt;BR /&gt;&lt;BR /&gt;# echo itick_per_usec/D|adb /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=35140" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=35140&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2005 04:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635668#M105060</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-27T04:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635669#M105061</link>
      <description>sam -&amp;gt; performance monitor -&amp;gt; system properties itself giving information for PA-RISC and clock speed also.&lt;BR /&gt;&lt;BR /&gt;  â  â   â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â   â  &lt;BR /&gt;  â  â   â  â  Processors:                                                       â  â   â  &lt;BR /&gt;  â  â   â  â    Active:                1                                        â  â   â  &lt;BR /&gt;  â  â   â  â    Total:                 1                                        â  â   â  &lt;BR /&gt;  â  â   â  â  CPU Version:             PA 8800 CPU Module 3.2                   â  â   â  &lt;BR /&gt;  â  â   â  â  Clock Frequency:         800 MHz                                  â  â   â  &lt;BR /&gt;  â  â   â  â  Machine Identification:  2756521519                               â  â  â  â  &lt;BR /&gt;  â  â   â  â  Hardware Model:          9000/800/rp3410                          â  â  â  â  &lt;BR /&gt;  â  â   â  â  Kernel Width Support:    64                                       â  â  â  â  &lt;BR /&gt;  â  â   â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  â  &lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Tue, 27 Sep 2005 05:00:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635669#M105061</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-27T05:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635670#M105062</link>
      <description># echo "itick_per_usec/D" | adb /stand/vmunix /dev/mem | tail -1&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2005 05:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635670#M105062</guid>
      <dc:creator>morganelan</dc:creator>
      <dc:date>2005-09-27T05:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635671#M105063</link>
      <description>Thanks a lot guys ...</description>
      <pubDate>Tue, 27 Sep 2005 05:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635671#M105063</guid>
      <dc:creator>santosh jha</dc:creator>
      <dc:date>2005-09-27T05:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635672#M105064</link>
      <description>Hi Santosh ,&lt;BR /&gt;&lt;BR /&gt;Here is a good one...&lt;BR /&gt;&lt;BR /&gt;Just run this command:&lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt; echo "CPU Speed is = \c" ; echo itick_per_tick/D|adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2 | awk '{printf "%0f MHz\n", $1/10000}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2005 08:48:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635672#M105064</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-27T08:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635673#M105065</link>
      <description>And of course the obligatory perl way:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat cpuspeed&lt;BR /&gt;perl -e 'local($PSTAT, $PSTAT_PROCESSOR)=(239,10);&lt;BR /&gt;local($struct_pst_processor)=("L30");&lt;BR /&gt;local($cpu_info, $cpu_ticks);&lt;BR /&gt;$cpu_info = "\0" x 120;&lt;BR /&gt;syscall($PSTAT, $PSTAT_PROCESSOR, $cpu_info, length($cpu_info), 1, 0);&lt;BR /&gt;($cpu_ticks)=(unpack($struct_pst_processor, $cpu_info))[26];&lt;BR /&gt;print "speed=".int($cpu_ticks/10000)." Mhz\n";'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 27 Sep 2005 08:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635673#M105065</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-27T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635674#M105066</link>
      <description>And this Perl one will tell if it is parisc:&lt;BR /&gt;&lt;BR /&gt;# cat cpuinfo&lt;BR /&gt;perl -MUnix::Processors -le'print join"\t",$_-&amp;gt;id,$_-&amp;gt;state,$_-&amp;gt;type,$_-&amp;gt;clock for @{Unix::Processors-&amp;gt;new()-&amp;gt;processors}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 27 Sep 2005 08:56:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635674#M105066</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-27T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635675#M105067</link>
      <description>Santosh ,&lt;BR /&gt;&lt;BR /&gt;Also dont forget the easy one :&lt;BR /&gt;&lt;BR /&gt;SAM--&amp;gt; Performance Monitors --&amp;gt; System Properties.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Processors:                                                       &lt;BR /&gt;    Active:                2                                      &lt;BR /&gt;    Total:                 2                                      &lt;BR /&gt;    CPU Version:             2.0 PA8500                           &lt;BR /&gt;    Clock Frequency:         360 MHz                              &lt;BR /&gt;    Machine Identification:  145901547                            &lt;BR /&gt;    Hardware Model:          9000/800/L2000-36                    &lt;BR /&gt;    Kernel Width Support:    64    &lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 27 Sep 2005 10:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635675#M105067</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-27T10:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the cpu clock speed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635676#M105068</link>
      <description>To complete the set the choices you have,&lt;BR /&gt;here is the C program :-)&lt;BR /&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;struct pst_processor psp;&lt;BR /&gt;unsigned long int clock_speed, scclktick;&lt;BR /&gt;pstat_getprocessor(&amp;amp;psp, sizeof(psp), 1, 0);&lt;BR /&gt;scclktick=sysconf(_SC_CLK_TCK);&lt;BR /&gt;clock_speed = psp.psp_iticksperclktick * scclktick;&lt;BR /&gt;printf("CPU clock speed is %ld Mhz\n", clock_speed/1000000);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Compile and run to get the cpu speed. &lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;&lt;/UNISTD.H&gt;&lt;/SYS&gt;&lt;/SYS&gt;</description>
      <pubDate>Wed, 28 Sep 2005 07:24:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-find-the-cpu-clock-speed/m-p/3635676#M105068</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-09-28T07:24:55Z</dc:date>
    </item>
  </channel>
</rss>

