<?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: simulate high CPU in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980464#M419762</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I remember a post in which one of our experts had suggested the very simple method&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;:&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This will load a whole CPU, you can run more of these if you want to increase the load more and more.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
    <pubDate>Wed, 24 May 2006 02:39:28 GMT</pubDate>
    <dc:creator>Ninad_1</dc:creator>
    <dc:date>2006-05-24T02:39:28Z</dc:date>
    <item>
      <title>simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980458#M419756</link>
      <description>I want to test out the threshold in my monitoring software, is there any c program that can simulate a high CPU load</description>
      <pubDate>Wed, 24 May 2006 01:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980458#M419756</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2006-05-24T01:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980459#M419757</link>
      <description>I'm not sure if this is working for you, but you can try to run the stm exerciser tool on your CPUs to increase the load. Run mstm/xstm, select the CPU and the exercise tool.</description>
      <pubDate>Wed, 24 May 2006 01:59:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980459#M419757</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-05-24T01:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980460#M419758</link>
      <description>&lt;!--!*#--&gt;Hi&lt;BR /&gt;You don't even need a C prog:&lt;BR /&gt;&lt;BR /&gt;You can run a i/o intensive job:&lt;BR /&gt;For instance switch on auditing:&lt;BR /&gt;&lt;BR /&gt;man audsys &lt;BR /&gt;start or halt the auditing system and set or display audit&lt;BR /&gt;      file information&lt;BR /&gt;&lt;BR /&gt; SYNOPSIS&lt;BR /&gt;      audsys [-nf] [-c file -s cafs] [-x file -z xafs]&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;This script will knock em out !&lt;BR /&gt;&lt;BR /&gt;shell script&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;$0 &amp;amp;&lt;BR /&gt;VAR={ps -ef | grep sh| wc -l)&lt;BR /&gt;if [ ${VAR} -eq 100 ]&lt;BR /&gt;then &lt;BR /&gt;exit 1&lt;BR /&gt;else&lt;BR /&gt;exec $0&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Try first with 100 shells , then slowly &lt;BR /&gt;increase.&lt;BR /&gt;&lt;BR /&gt;similare in c.script,&lt;BR /&gt;you need to prog the 'if routine' though&lt;BR /&gt;main()&lt;BR /&gt;{ while(1) &lt;BR /&gt;  { fork();&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Keep cooking;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 May 2006 02:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980460#M419758</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-05-24T02:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980461#M419759</link>
      <description>few find commands will do the trick.&lt;BR /&gt;&lt;BR /&gt;Depending upon how many cpus you have run about 20-30 find commands.&lt;BR /&gt;&lt;BR /&gt;find / -name "xynzznn" -exec ll -d {} \;</description>
      <pubDate>Wed, 24 May 2006 02:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980461#M419759</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-24T02:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980462#M419760</link>
      <description>&lt;!--!*#--&gt;Hi&lt;BR /&gt;You don't even need a C prog:&lt;BR /&gt;&lt;BR /&gt;You can run a i/o intensive job:&lt;BR /&gt;For instance switch on auditing:&lt;BR /&gt;&lt;BR /&gt;man audsys &lt;BR /&gt;start or halt the auditing system and set or display audit&lt;BR /&gt;      file information&lt;BR /&gt;&lt;BR /&gt; SYNOPSIS&lt;BR /&gt;      audsys [-nf] [-c file -s cafs] [-x file -z xafs]&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;This script will knock em out !&lt;BR /&gt;&lt;BR /&gt;shell script&lt;BR /&gt;[root@devor:]/root&amp;lt;&amp;gt;&amp;gt;&amp;gt; more knock_em.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# shell script to knock em dead&lt;BR /&gt;echo $$&lt;BR /&gt;VAR=$(ps -ef | grep knock | grep -v grep| wc -l)&lt;BR /&gt;if [ ${VAR} -eq 30 ]&lt;BR /&gt;then&lt;BR /&gt;exit 1&lt;BR /&gt;else&lt;BR /&gt;print -u1 -- "Running sh number $VAR"&lt;BR /&gt;read&lt;BR /&gt;$0 &amp;amp;&lt;BR /&gt;#exec $0&lt;BR /&gt;exit 0&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Try first with 30 shells , then slowly &lt;BR /&gt;increase depending on your cpu strenght and number.&lt;BR /&gt;&lt;BR /&gt;To stop the script, &lt;BR /&gt;Close your telnet session and in an other&lt;BR /&gt;session run this:&lt;BR /&gt;ps -ef | grep knock | grep -v grep |  awk {' print $2 '} | xargs kill -9&lt;BR /&gt;&lt;BR /&gt;The effect is astonishing:&lt;BR /&gt;It is idle 5 seconds after starting the script !!!&lt;BR /&gt;[root@devor:]/root&amp;lt;&amp;gt;&amp;gt;&amp;gt; sar -u 5 55&lt;BR /&gt;&lt;BR /&gt;HP-UX devor B.10.20 A 9000/861    05/24/06&lt;BR /&gt;&lt;BR /&gt;09:27:57    %usr    %sys    %wio   %idle&lt;BR /&gt;09:28:02      30      45      25       0&lt;BR /&gt;09:28:07      31      45      24       0&lt;BR /&gt;09:28:12      27      51      22       0&lt;BR /&gt;09:28:17      29      47      24       0&lt;BR /&gt;[root@devor:]/root&amp;lt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;If you insist on a c prog then&lt;BR /&gt;this would be the basic idea:&lt;BR /&gt;you will  need to prog the 'if routine' and&lt;BR /&gt;'get out routine' though&lt;BR /&gt;&lt;BR /&gt;main()&lt;BR /&gt;{ while(1) &lt;BR /&gt;  { fork();&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Keep cooking;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 May 2006 02:32:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980462#M419760</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-05-24T02:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980463#M419761</link>
      <description>Sorry I did not say why I posted it again,&lt;BR /&gt;hope it was clear that my first posting included typo's.&lt;BR /&gt;(A case of serious morning blues)&lt;BR /&gt;After my cup of coffee&lt;BR /&gt;I tested it for you, hence my second posting.&lt;BR /&gt;&lt;BR /&gt;Enjoy:)))&lt;BR /&gt;</description>
      <pubDate>Wed, 24 May 2006 02:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980463#M419761</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-05-24T02:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980464#M419762</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I remember a post in which one of our experts had suggested the very simple method&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;:&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This will load a whole CPU, you can run more of these if you want to increase the load more and more.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 24 May 2006 02:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980464#M419762</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-24T02:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980465#M419763</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Here it is, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=967140" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=967140&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun&lt;BR /&gt;</description>
      <pubDate>Wed, 24 May 2006 02:50:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980465#M419763</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-05-24T02:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980466#M419764</link>
      <description>&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=899730" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=899730&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This thread under my question.  Those tool from the lab is the stuff that I am looking for.</description>
      <pubDate>Wed, 24 May 2006 03:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980466#M419764</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2006-05-24T03:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: simulate high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980467#M419765</link>
      <description>closed thread read above</description>
      <pubDate>Wed, 24 May 2006 03:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulate-high-cpu/m-p/4980467#M419765</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2006-05-24T03:18:47Z</dc:date>
    </item>
  </channel>
</rss>

