<?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: Backup Process Using 100% CPU in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950720#M413490</link>
    <description>Patrick Wallek:&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback. Those were pretty much my suspicions too. There's no other processes running during that timeframe, so I'll just run a 'swapinfo' cronjob during that timeframe. Not sure they'll spring for the memory as it's pretty expensive; They'd be going for a new server instead.</description>
    <pubDate>Fri, 06 Jan 2006 15:52:59 GMT</pubDate>
    <dc:creator>Jim Sobiesczyk</dc:creator>
    <dc:date>2006-01-06T15:52:59Z</dc:date>
    <item>
      <title>Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950715#M413485</link>
      <description>I'm new to HPs and also for the company I'm working for. But I have a backup script that has the following in it:&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;#Always backup root filesystem&lt;BR /&gt;#&lt;BR /&gt;        FS=/&lt;BR /&gt;        echo "Starting backup of \"$FS\" `/bin/date`." &amp;gt;&amp;gt;$BACKUPLOG&lt;BR /&gt;        cd $FS&lt;BR /&gt;        find . -print | \&lt;BR /&gt;        grep -v '/arc' | \&lt;BR /&gt;        grep -v '/intra' | \&lt;BR /&gt;        grep -v '/curly' | \&lt;BR /&gt;        grep -v '/tempgis' | \&lt;BR /&gt;        grep -v '/photos' | \&lt;BR /&gt;        cpio -oBcdmuv &amp;gt; $NOREWIND_TAPE 2&amp;gt;$BACKUPDETAIL&lt;BR /&gt;        echo "Backup of \"$FS\" completed `/bin/date`." &amp;gt;&amp;gt;$BACKUPLOG&lt;BR /&gt;&lt;BR /&gt;# Run backup loop in subshell, and tee output to the backup log&lt;BR /&gt;(cat $FSYS | while read FS&lt;BR /&gt;do&lt;BR /&gt;        echo "Starting backup of \"$FS\" `/bin/date`."&lt;BR /&gt;        echo "Starting backup of \"$FS\" `/bin/date`." &amp;gt;&amp;gt;$BACKUPDETAIL&lt;BR /&gt;        cd $FS&lt;BR /&gt;        find . -print | cpio -oBcdmuv &amp;gt; $NOREWIND_TAPE 2&amp;gt;&amp;gt;$BACKUPDETAIL&lt;BR /&gt;        echo "Backup of \"$FS\" completed `/bin/date`."&lt;BR /&gt;        echo "Backup of \"$FS\" completed `/bin/date`." &amp;gt;&amp;gt;$BACKUPDETAIL&lt;BR /&gt;done) &amp;gt;&amp;gt; $BACKUPLOG&lt;BR /&gt;---------------------------------------------_&lt;BR /&gt;&lt;BR /&gt;This is an HP9000 running HP-UX 11.00, which was created using Ignite-UX. The system has 1 Processor, 32 bit, 256 MB memory, and 2 swap spaces of 128MB each.&lt;BR /&gt;&lt;BR /&gt;The CPU is running at 100% for the duration of the backups, and I do not see any apparent problems during this timeframe.&lt;BR /&gt;&lt;BR /&gt;Any advice would be greatly appreciated.</description>
      <pubDate>Fri, 06 Jan 2006 12:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950715#M413485</guid>
      <dc:creator>Jim Sobiesczyk</dc:creator>
      <dc:date>2006-01-06T12:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950716#M413486</link>
      <description>I don't see where your script has defined NOREWIND_TAPE and since the script does not use "set -u" to prevent errors like this, you may want to see if the tape drive is actually running during the backup. CPU at 100% seems a bit high for a simple backup, even for this very small system. Does top report cpio as the user of all the CPU time?</description>
      <pubDate>Fri, 06 Jan 2006 13:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950716#M413486</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-01-06T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950717#M413487</link>
      <description>Bill Hassell:&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply and I guess I should've given you at least 4 points... Anyhow, Here's the tape Defs I didn't originally include:&lt;BR /&gt;&lt;BR /&gt;NOREWIND_TAPE=/dev/rmt/1mn&lt;BR /&gt;REWIND_TAPE=/dev/rmt/1m&lt;BR /&gt;&lt;BR /&gt;And there -s no "set -u" within the script, so I don't know what that provides.&lt;BR /&gt;&lt;BR /&gt;The backup runs between 1900 and 2200 hrs so I have no idea if the tape light's blinking.&lt;BR /&gt;&lt;BR /&gt;I use sar for my daily Performance check, is it possible to run top thru CRON (maybe AT) to monitor during that timeframe?</description>
      <pubDate>Fri, 06 Jan 2006 14:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950717#M413487</guid>
      <dc:creator>Jim Sobiesczyk</dc:creator>
      <dc:date>2006-01-06T14:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950718#M413488</link>
      <description>It is entirely possible that you have more than 1 issue here.&lt;BR /&gt;&lt;BR /&gt;First, this is a rather small machine especially RAM-wise.  128 MB is not much for 11.0.&lt;BR /&gt;&lt;BR /&gt;What may be happening is that the backup kicks off and the find commands run.  Doing a find can impact a machine since it has to traverse down the mountpoing you are running it on.  The find is also piping the output to cpio to write to the drive.  What **MIGHT** be happening is that find is using a few resources, and cpio is using a few resources, but with only 128MB ram, you are using up the available resources and causing the system to page out.  If that starts happening then you can severely impact a systems performance.&lt;BR /&gt;&lt;BR /&gt;You can run top periodically and have it write its output to a file.  Use the '-f filename' option to top.  Have a look at 'man top' for more information on the options available to you with top.&lt;BR /&gt;&lt;BR /&gt;You might also consider running a periodic 'swapinfo -tam' to check your swap utilization during the time the backup runs.</description>
      <pubDate>Fri, 06 Jan 2006 14:26:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950718#M413488</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-01-06T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950719#M413489</link>
      <description>Patrick Wallek:&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback. Those were pretty much my suspicions too. There's no other processes running during that timeframe, so I'll just run a 'swapinfo' cronjob during that timeframe. Not sure they'll spring for the memory as it's pretty expensive; They'd be going for a ne server instead.</description>
      <pubDate>Fri, 06 Jan 2006 15:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950719#M413489</guid>
      <dc:creator>Jim Sobiesczyk</dc:creator>
      <dc:date>2006-01-06T15:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950720#M413490</link>
      <description>Patrick Wallek:&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback. Those were pretty much my suspicions too. There's no other processes running during that timeframe, so I'll just run a 'swapinfo' cronjob during that timeframe. Not sure they'll spring for the memory as it's pretty expensive; They'd be going for a new server instead.</description>
      <pubDate>Fri, 06 Jan 2006 15:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950720#M413490</guid>
      <dc:creator>Jim Sobiesczyk</dc:creator>
      <dc:date>2006-01-06T15:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950721#M413491</link>
      <description>set -u should be stanbdard for all scripts to prevent errors, sometimes catastrophic. The shell assumes that all variables are undefined and are given a null value. So if you created a script to remove all the files and directories in tmp, you might do this:&lt;BR /&gt; &lt;BR /&gt;DIRNAME=tmp&lt;BR /&gt;rm -rf /$DIRNAM&lt;BR /&gt; &lt;BR /&gt;(DO NOT TRY THIS ON YOUR SYSTEM)&lt;BR /&gt;Oops, there's a slight mistake. $DIRNAM should be $DIRNAME. But the shell doesn't know that and the resultant statement now reads:&lt;BR /&gt; &lt;BR /&gt;rm -rf /&lt;BR /&gt; &lt;BR /&gt;That statement is the end of your system--all files and directories on all disks will be removed with no recovery excepty re-install. Now if the set -u was inserted in the front of the script, the rm statement would not be executed because $DIRNAM is undefined and the script stops.</description>
      <pubDate>Fri, 06 Jan 2006 19:10:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950721#M413491</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-01-06T19:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950722#M413492</link>
      <description>You have very little RAM, but even more is the minimal swap space.  It is hard to believe that you don't have more problems with so little virtual address space.</description>
      <pubDate>Tue, 10 Jan 2006 20:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950722#M413492</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2006-01-10T20:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Process Using 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950723#M413493</link>
      <description>Information provided by respondents.</description>
      <pubDate>Thu, 23 Feb 2006 12:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-process-using-100-cpu/m-p/4950723#M413493</guid>
      <dc:creator>Jim Sobiesczyk</dc:creator>
      <dc:date>2006-02-23T12:52:59Z</dc:date>
    </item>
  </channel>
</rss>

