<?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: script performance with gzip, wait and background commands in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329205#M684237</link>
    <description>It sounds like this hasn't been run yet. gzip is somewhat CPU intensive but it will certainly be disk intensive. Running all of these will probably run the CPU usage up to 100% (not a bad thing if nothing else is running) and the disks will be rattling around the floor. I wouldn't run any production database activities during this time if bad performance would be a problem.&lt;BR /&gt; &lt;BR /&gt;Seriously, you can't determine the impact until you have some data. Pick a database metric, some query that takes a minute or two, and run it without any gzip load. Then run 4 or 5 copies at the same time and run the same metric. That should give you an idea what kind of load to expect with several dozen gzips running.</description>
    <pubDate>Mon, 29 Dec 2008 02:24:28 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2008-12-29T02:24:28Z</dc:date>
    <item>
      <title>script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329203#M684235</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;My DBA has this huge database compress command (see below) that combines multiple sets of gzips running in the background and using the wait command to break the sets up.&lt;BR /&gt;&lt;BR /&gt;My concern is that doing it this way may put a huge strain on the system and there should perhaps be some better way of accomplishing what he needs. (He needs to have all of the database files copied and compressed for subsequent shipment to another server.)&lt;BR /&gt;&lt;BR /&gt;Is there a better, more efficient way to do what he's doing in the folling command? (yes, he does this as a single command).&lt;BR /&gt;&lt;BR /&gt;I could probably do this single-threaded using find and piping the found files into gzip, but he says he needs to take advantage of the 12 processors so he wants to run multiple gzips at once.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;------------------------------ &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gzip  -c /ora6/system1.dbf &amp;gt; /ora6/system1.dbf_coldbackup.gz &amp;amp; gzip -c /ora7/rbs1.dbf &amp;gt; /ora7/rbs1.dbf_coldbackup.gz &amp;amp; gzip -c /ora7/rbs1-2.dbf &amp;gt; /ora7/rbs1-2.dbf_coldbackup.gz &amp;amp; gzip -c /ora8/rbs201.dbf &amp;gt; /ora8/rbs201.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora8/rbs202.dbf &amp;gt; /ora8/rbs202.dbf_coldbackup.gz &amp;amp; gzip -c /ora9/rbs301.dbf &amp;gt; /ora9/rbs301.dbf_coldbackup.gz &amp;amp; gzip -c /ora9/rbs302.dbf &amp;gt; /ora9/rbs302.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/detail_5.dbf &amp;gt; /ora1/detail_5.dbf_coldbackup.gz &amp;amp; gzip -c /ora2/data_601.dbf &amp;gt; /ora2/data_601.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora2/data_602.dbf &amp;gt; /ora2/data_602.dbf_coldbackup.gz &amp;amp; gzip  -c /ora6/tools01.dbf &amp;gt; /ora6/tools01.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/users01.dbf &amp;gt; /ora1/users01.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/batchdata101.dbf &amp;gt; /ora1/batchdata101.dbf_coldbackup.gz &amp;amp; gzip -c /ora2/batchindex_1.dbf &amp;gt; /ora2/batchindex_1.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora3/data101.dbf &amp;gt; /ora3/data101.dbf_coldbackup.gz &amp;amp; gzip -c /ora4/data201.dbf &amp;gt; /ora4/data201.dbf_coldbackup.gz &amp;amp; gzip -c /ora5/data301.dbf &amp;gt; /ora5/data301.dbf_coldbackup.gz &amp;amp; gzip -c /ora6/data501.dbf &amp;gt; /ora6/data501.dbf_coldbackup.gz &amp;amp; gzip -c /ora2/data_603.dbf &amp;gt; /ora2/data_603.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora8/datab.dbf &amp;gt; /ora8/datab.dbf_coldbackup.gz &amp;amp; gzip -c /ora9/datac.dbf &amp;gt; /ora9/datac.dbf_coldbackup.gz &amp;amp; gzip -c /ora10/datae.dbf &amp;gt; /ora10/datae.dbf_coldbackup.gz &amp;amp; gzip -c /ora11/index101.dbf &amp;gt; /ora11/index101.dbf_coldbackup.gz &amp;amp; gzip -c /ora12/index201.dbf &amp;gt; /ora12/index201.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora13/index2a.dbf &amp;gt; /ora13index2a.dbf_coldbackup.gz &amp;amp; gzip -c /ora14/index501.dbf &amp;gt; /ora14/index501.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/indexa.dbf &amp;gt; /ora1/indexa.dbf_coldbackup.gz &amp;amp; gzip -c /ora2/indexb.dbf &amp;gt; /ora2/indexb.dbf_coldbackup.gz &amp;amp; gzip -c /ora3/indexc.dbf &amp;gt; /ora3/indexc.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora4/indexd.dbf &amp;gt; /ora4/indexd.dbf_coldbackup.gz &amp;amp; gzip -c /ora5/indexe.dbf &amp;gt; /ora5/indexe.dbf_coldbackup.gz &amp;amp; gzip -c /ora6/onlinedata101.dbf &amp;gt; /ora6/onlinedata101.dbf_coldbackup.gz &amp;amp; gzip -c /ora7/onlineindex_1.dbf &amp;gt; /ora7/onlineindex_1.dbf_coldbackup.gz &amp;amp; gzip -c /ora4/data202.dbf &amp;gt; /ora4/data202.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora5/data302.dbf &amp;gt; /ora5/data302.dbf_coldbackup.gz &amp;amp; gzip -c /ora10/rbs401.dbf &amp;gt; /ora10/rbs401.dbf_coldbackup.gz &amp;amp; gzip -c /ora10/rbs402.dbf &amp;gt; /ora10/rbs402.dbf_coldbackup.gz &amp;amp; gzip  -c /ora4/data203.dbf &amp;gt; /ora4/data203.dbf_coldbackup.gz &amp;amp; gzip  -c /ora2/data_604.dbf &amp;gt; /ora2/data_604.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora2/data_605.dbf &amp;gt; /ora2/data_605.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/users03.dbf &amp;gt; /ora1/users03.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/users02.dbf &amp;gt; /ora1/users02.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/detail_4.dbf &amp;gt; /ora1/detail_4.dbf_coldbackup.gz &amp;amp; gzip  -c /ora7/rbs1-3.dbf &amp;gt; /ora7/rbs1-3.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora8/rbs203.dbf &amp;gt; /ora8/rbs203.dbf_coldbackup.gz &amp;amp; gzip -c /ora9/rbs303.dbf &amp;gt; /ora9/rbs303.dbf_coldbackup.gz &amp;amp; gzip -c /ora10/rbs403.dbf &amp;gt; /ora10/rbs403.dbf_coldbackup.gz &amp;amp; gzip -c /ora5/data303.dbf &amp;gt; /ora5/data303.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/detail_1.dbf &amp;gt; /ora1/detail_1.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora1/detail_2.dbf &amp;gt; /ora1/detail_2.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/detail_3.dbf &amp;gt; /ora1/detail_3.dbf_coldbackup.gz &amp;amp; gzip -c /ora1/users04.dbf &amp;gt; /ora1/users04.dbf_coldbackup.gz &amp;amp; gzip -c /ora2/data_606.dbf &amp;gt; /ora2/data_606.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora8/temp11.dbf &amp;gt; /ora8/temp11.dbf_coldbackup.gz &amp;amp; gzip -c /ora8/temp13.dbf &amp;gt; /ora8/temp13.dbf_coldbackup.gz &amp;amp; /gzip -c /ora8/temp14.dbf &amp;gt; /ora8/temp14.dbf_coldbackup.gz &amp;amp; gzip -c /ora8/temp15.dbf &amp;gt; /ora8/temp15.dbf_coldbackup.gz &amp;amp; gzip -c /ora8/temp16.dbf &amp;gt; /ora8/temp16.dbf_coldbackup.gz &amp;amp; gzip -c /ora8/temp17.dbf &amp;gt; /ora8/temp17.dbf_coldbackup.gz &amp;amp; wait gzip -c /ora2/redo1a.log &amp;gt; /ora2/redo1a.log_coldbackup.gz  &amp;amp; gzip -c /ora3/redo1b.log &amp;gt; /ora3/redo1b.log_coldbackup.gz  &amp;amp; gzip -c /ora4/redo2a.log &amp;gt; /ora4/redo2a.log_coldbackup.gz  &amp;amp; gzip -c /ora5/redo2b.log &amp;gt; /ora5/redo2b.log_coldbackup.gz  &amp;amp; gzip -c /ora2/redo3a.log &amp;gt; /ora2/redo3a.log_coldbackup.gz  &amp;amp; gzip  -c /ora3/redo3b.log &amp;gt; /ora3/redo3b.log_coldbackup.gz  &amp;amp; wait gzip  -c /ora4/lans/redo4a.log &amp;gt; /ora4/redo4a.log_coldbackup.gz  &amp;amp; gzip  -c /ora5/redo4b.log &amp;gt; /ora5/redo4b.log_coldbackup.gz  &amp;amp;gzip  -c /ora2/redo5a.log &amp;gt; /ora2/redo5a.log_coldbackup.gz  &amp;amp;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Dec 2008 01:06:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329203#M684235</guid>
      <dc:creator>Michael Resnick</dc:creator>
      <dc:date>2008-12-29T01:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329204#M684236</link>
      <description>&amp;gt; My concern is that doing it this way may&lt;BR /&gt;&amp;gt; put a huge strain on the system [...]&lt;BR /&gt;&lt;BR /&gt;Define "huge strain".  (Some CPU chip will&lt;BR /&gt;pull up lame with a stretched cache address&lt;BR /&gt;line?)  What happens to the system's&lt;BR /&gt;performance when this "job" runs?&lt;BR /&gt;&lt;BR /&gt;Where's the current bottleneck, I/O or CPU?&lt;BR /&gt;&lt;BR /&gt;Knowing nothing, I'd guess that running more&lt;BR /&gt;than one gzip process per CPU would be&lt;BR /&gt;counter-productive, but it seems as if it'd&lt;BR /&gt;be pretty easy to run some tests with the&lt;BR /&gt;crazy command broken up in different ways, to&lt;BR /&gt;see what helps and what hurts.  If the CPUs&lt;BR /&gt;are fast and the disks are slow, then&lt;BR /&gt;multiple gzip processes per CPU might be&lt;BR /&gt;good.&lt;BR /&gt;&lt;BR /&gt;Running some tests with even a little&lt;BR /&gt;instrumentation (elapsed time, CPU time)&lt;BR /&gt;might be more useful than accumulating&lt;BR /&gt;guesses from "experts" (who have insufficient&lt;BR /&gt;info on which to base an intelligent&lt;BR /&gt;conclusion).</description>
      <pubDate>Mon, 29 Dec 2008 01:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329204#M684236</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-29T01:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329205#M684237</link>
      <description>It sounds like this hasn't been run yet. gzip is somewhat CPU intensive but it will certainly be disk intensive. Running all of these will probably run the CPU usage up to 100% (not a bad thing if nothing else is running) and the disks will be rattling around the floor. I wouldn't run any production database activities during this time if bad performance would be a problem.&lt;BR /&gt; &lt;BR /&gt;Seriously, you can't determine the impact until you have some data. Pick a database metric, some query that takes a minute or two, and run it without any gzip load. Then run 4 or 5 copies at the same time and run the same metric. That should give you an idea what kind of load to expect with several dozen gzips running.</description>
      <pubDate>Mon, 29 Dec 2008 02:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329205#M684237</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-12-29T02:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329206#M684238</link>
      <description>OK, yes, perhaps some additional info would be needed. 8=]&lt;BR /&gt;&lt;BR /&gt;We've been chasing down a problem with the DBA's backup for a while.  This process normally takes less than 2 hours to run in the three weekends following a reboot.  However, on the fourth weekend, it'll take about three hours and then the subsequent weekend it's killed after four weekends.&lt;BR /&gt;&lt;BR /&gt;Data file sizes are about the same from one week to the next, but with a litle growth (perhaps a few mb.)&lt;BR /&gt;&lt;BR /&gt;SysAdmin says that we do see a disk bottleneck when this runs, but performance is as expected from the array.  Memory is not a bottleneck.&lt;BR /&gt;&lt;BR /&gt;Basically, I should be asking if there's a more efficient way to write the script he has above. Again, I could create just pipe the output from find into gzip, which would process the files one-by-one (and perhaps remove some of the disk bottleneck), but is there a more efficient way to accomplish this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Dec 2008 20:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329206#M684238</guid>
      <dc:creator>Michael Resnick</dc:creator>
      <dc:date>2008-12-29T20:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329207#M684239</link>
      <description>&amp;gt; [...] following a reboot. [...]&lt;BR /&gt;&lt;BR /&gt;So, as I understand it, this job runs more&lt;BR /&gt;slowly the longer the system has been up?&lt;BR /&gt;And you think that the problem is with&lt;BR /&gt;_this_ job, not the other job(s) on the&lt;BR /&gt;system with the memory leak(s)?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; We've been chasing down a problem with the&lt;BR /&gt;&amp;gt; DBA's backup for a while.  [...]&lt;BR /&gt;&lt;BR /&gt;And if you concentrate exclusively on the job&lt;BR /&gt;with the symptom, you may be ignoring the&lt;BR /&gt;other job(s) which may be causing the growing&lt;BR /&gt;(system-wide) resource exhaustion which is&lt;BR /&gt;causing the trouble.</description>
      <pubDate>Mon, 29 Dec 2008 21:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329207#M684239</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-29T21:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329208#M684240</link>
      <description>Yes, this script run on Sunday and will run in about an hour if run within a week of a reboot, in about 1.5 hours on the following weekend, and increase with each week following that.&lt;BR /&gt;&lt;BR /&gt;We've been monitoring many other areas and the application itself seems to be running fine all the while. (I'm one of the app guys.) Our processing times, even for our "long running batch" routines (1.5 hours) are fairly consistent even many weeks after a reboot.&lt;BR /&gt;&lt;BR /&gt;Yes, this is the only job where we see the problem exists, but we're still looking into other areas of the system.&lt;BR /&gt;&lt;BR /&gt;We've had our support vendor come in and perform a system-wide review and they report everything is configured correctly and all hardware is working fine.&lt;BR /&gt;&lt;BR /&gt;I'm not ruling out other areas and we're still looking for them, but the problem only started (or was noticed) within a few weeks of the DBA implementing the above script.&lt;BR /&gt;&lt;BR /&gt;We very well could have a memory leak somewhere as there is 12GB on the machine and we can watch the free memory slowly go from about 8gb to &amp;lt;1gb after about two weeks.  It will take a couple of months to get that low if we do not run the above script.  Our sysadmin says this is normal though.&lt;BR /&gt;&lt;BR /&gt;What tools (if any) are available to help diagnose and find memory leak issues?&lt;BR /&gt;&lt;BR /&gt;Again, thanks in advance for any info.</description>
      <pubDate>Mon, 29 Dec 2008 21:26:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329208#M684240</guid>
      <dc:creator>Michael Resnick</dc:creator>
      <dc:date>2008-12-29T21:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329209#M684241</link>
      <description>Hi Michael:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; This process normally takes less than 2 hours to run in the three weekends following a reboot. However, on the fourth weekend, it'll take about three hours and then the subsequent weekend it's killed after four weekends.&lt;BR /&gt;&lt;BR /&gt;This certainly does sound like a memory leak is at work.&lt;BR /&gt;&lt;BR /&gt;You don't say much about the actual backup tool used following the compresssion.  If, for example, you were using 'fbackup' and did a 'kill -9' at any time, you would *not* cleanup the shared memory segments used by this utility.  Then, over time, you would "lose" memory.&lt;BR /&gt;&lt;BR /&gt;Does this, or something like it, fit?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Dec 2008 21:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329209#M684241</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-29T21:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329210#M684242</link>
      <description>I believe this is what occurs...&lt;BR /&gt;&lt;BR /&gt;1) DBA shuts down the DB and brings it up in restricted mode&lt;BR /&gt;2) Performs a full export&lt;BR /&gt;3) Shuts down DB and performs command above&lt;BR /&gt;4) Starts up the DB&lt;BR /&gt;&lt;BR /&gt;We don't typically kill things but I'm not sure about others.  I guess the best thing to do is find some tool that can identify if memory areas are left hanging around.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Dec 2008 23:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329210#M684242</guid>
      <dc:creator>Michael Resnick</dc:creator>
      <dc:date>2008-12-29T23:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329211#M684243</link>
      <description>&lt;!--!*#--&gt;Hi Michael,&lt;BR /&gt;&lt;BR /&gt;I am amazed that this works, so it proves that you learn something new each day.&lt;BR /&gt;&lt;BR /&gt;I am sure that it is not as efficient as your dba thinks. I suspect that the "wait" is being used to limit the number of concurrent processes, but this would also be restricting the efficiency of the gzipping. For example, at the start of a group of gzip processes, you may have six processes, but by the end it will only be a single process that is running. Once this process finishes, the next group would proceed.&lt;BR /&gt;&lt;BR /&gt;Surely a better way would be:&lt;BR /&gt;&lt;BR /&gt;  Create an array of dbf files to gzip&lt;BR /&gt;  While there are still unzipped files&lt;BR /&gt;    if "jobs" shows less than six processes are running&lt;BR /&gt;      pop a dbf file from the array and gzip in background&lt;BR /&gt;    end if&lt;BR /&gt;    sleep 30 seconds&lt;BR /&gt;  end while&lt;BR /&gt;&lt;BR /&gt;This would mean there would be 6 processes running right up until the end.&lt;BR /&gt;&lt;BR /&gt;That's my thoughts anyway. Hope it helps.&lt;BR /&gt;&lt;BR /&gt;George&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Dec 2008 00:06:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329211#M684243</guid>
      <dc:creator>George Spencer_4</dc:creator>
      <dc:date>2008-12-30T00:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329212#M684244</link>
      <description>&amp;gt;George: I am amazed that this works&lt;BR /&gt;&lt;BR /&gt;Yes but silly to put them all on one line.  Just use:&lt;BR /&gt;gzip -c /ora6/system1.dbf &amp;gt; /ora6/system1.dbf_coldbackup.gz &amp;amp;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;I have no idea what "wait stuff" will do, since stuff isn't a job.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I suspect that the "wait" is being used to limit the number of concurrent processes, but this would also be restricting the efficiency of the gzipping.&lt;BR /&gt;&lt;BR /&gt;It wouldn't matter if they finished at the same time.  Also, it allows others processes to run.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Surely a better way would be:&lt;BR /&gt;&lt;BR /&gt;It might be simpler to divide the files in 6 parts, invoke 6 script(s) in the background to work on each part.  And inside the script, just gzip each file in the foreground.&lt;BR /&gt;&lt;BR /&gt;Until it gets near the end, there will always be 6 gzips.&lt;BR /&gt;&lt;BR /&gt;I suppose you could use a named pipe to divide the filenames, not sure how to handle the EOF on the pipe case?</description>
      <pubDate>Tue, 30 Dec 2008 08:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329212#M684244</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-30T08:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329213#M684245</link>
      <description>The reason that I am amazed that this works, is that if you attempt to run:&lt;BR /&gt;&lt;BR /&gt;who &amp;gt; /tmp/who.1 &amp;amp; wait who &amp;gt; /tmp/who.2 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Only the first who command will generate output; the second who command generates an empty file. However, the use of:&lt;BR /&gt;&lt;BR /&gt;who &amp;gt; /tmp/who.3 &amp;amp; wait; who &amp;gt; /tmp/who.4 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;will result in both commands working. &lt;BR /&gt;&lt;BR /&gt;I assume that the use of the wait command, after a group of background gzip's, is to wait until all of these have finished; before proceding to the next group. If the sizes of the logs is similar, then the gzip processes might all finish at around the same time. However, if there is a considerable difference between the log sizes, then the concatenated gzip's would not be the most efficient techique.&lt;BR /&gt;&lt;BR /&gt;Excuse my previous attempt at structured English; I am a bit out of practice.</description>
      <pubDate>Wed, 31 Dec 2008 03:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329213#M684245</guid>
      <dc:creator>George Spencer_4</dc:creator>
      <dc:date>2008-12-31T03:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329214#M684246</link>
      <description>&amp;gt;George: Only the first who command will generate output; the second who command generates an empty file.&lt;BR /&gt;&lt;BR /&gt;Right, that's what I said.  But there is NO second who command, there is only a wait.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;who &amp;gt; /tmp/who.3 &amp;amp; wait; who &amp;gt; /tmp/who.4 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Why propagate silliness?  Put them all on separate lines.</description>
      <pubDate>Wed, 31 Dec 2008 07:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329214#M684246</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-31T07:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329215#M684247</link>
      <description>Sorry guys... A little communication issue with the DBA...  The gzip commands are all on individual lines such as:&lt;BR /&gt;&lt;BR /&gt;gzip... &amp;amp;&lt;BR /&gt;gzip... &amp;amp;&lt;BR /&gt;gzip... &amp;amp;&lt;BR /&gt;gzip... &amp;amp;&lt;BR /&gt;wait&lt;BR /&gt;gzip...&lt;BR /&gt;and so on.&lt;BR /&gt;&lt;BR /&gt;So, this will spawn several gzip processes and then when it hits the wait, the script will not continue until all prior background processes have completed.&lt;BR /&gt;&lt;BR /&gt;Still monitoring the system, but I can see that free memory is decreasing by about 400-500mb per day.</description>
      <pubDate>Wed, 31 Dec 2008 07:27:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329215#M684247</guid>
      <dc:creator>Michael Resnick</dc:creator>
      <dc:date>2008-12-31T07:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329216#M684248</link>
      <description>&amp;gt;but I can see that free memory is decreasing by about 400-500mb per day.&lt;BR /&gt;&lt;BR /&gt;Have you found a process that is increasing in memory use?  Does "swapinfo -tam" show an increase in total swap use?</description>
      <pubDate>Wed, 31 Dec 2008 07:38:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329216#M684248</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-31T07:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329217#M684249</link>
      <description>Since I'm a lowly SE I cannot run swapinfo. :(&lt;BR /&gt;&lt;BR /&gt;I do have access to Glance and can get info from there, but am not an expert at reading the data nor how to locate a memory leak issue.</description>
      <pubDate>Wed, 31 Dec 2008 08:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329217#M684249</guid>
      <dc:creator>Michael Resnick</dc:creator>
      <dc:date>2008-12-31T08:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329218#M684250</link>
      <description>&amp;gt;Since I'm a lowly SE I cannot run swapinfo. :(&lt;BR /&gt;&lt;BR /&gt;I'm confused.  Only old broken versions of swapinfo fail to let anyone run them.  What OS version are you using?  What error do you get?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but am not an expert at reading the data nor how to locate a memory leak issue.&lt;BR /&gt;&lt;BR /&gt;Well, you can look at top and see if the size value is increasing.  gpm's process display should have something similar.</description>
      <pubDate>Wed, 31 Dec 2008 08:40:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329218#M684250</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-31T08:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329219#M684251</link>
      <description>I guess our SysAdmin doesn't like to play fair:&lt;BR /&gt;&lt;BR /&gt;me--&amp;gt; $ /usr/sbin/swapinfo -tam&lt;BR /&gt;ksh: /usr/sbin/swapinfo: cannot execute&lt;BR /&gt;me--&amp;gt; $ ll /usr/sbin/swapinfo&lt;BR /&gt;-r-xr--r--   1 bin        bin          20480 Nov  9  2000 /usr/sbin/swapinfo&lt;BR /&gt;&lt;BR /&gt;me--&amp;gt; $ model&lt;BR /&gt;9000/800/S16K-A&lt;BR /&gt;&lt;BR /&gt;It's an hp-ux 11.11 machine.&lt;BR /&gt;&lt;BR /&gt;From top:&lt;BR /&gt;Memory: 2305944K (1189060K) real, 3826496K (2605988K) virtual, 2410436K free&lt;BR /&gt;&lt;BR /&gt;That free memory was at about 2850000K yesterday morning, and at about 3250000k the morning before. After a reboot, it is around 6550000K</description>
      <pubDate>Wed, 31 Dec 2008 19:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329219#M684251</guid>
      <dc:creator>Michael Resnick</dc:creator>
      <dc:date>2008-12-31T19:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329220#M684252</link>
      <description>Hi Michael:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I guess our SysAdmin doesn't like to play fair&lt;BR /&gt;&lt;BR /&gt;So it would seem, since on an 11.11 system of mine:&lt;BR /&gt;&lt;BR /&gt;# ls -l /usr/sbin/swapinfo&lt;BR /&gt;-r-xr-xr-x   1 bin        bin          20480 Sep  7  2004 /usr/sbin/swapinfo&lt;BR /&gt;&lt;BR /&gt;At the least, have your syaadmin 'chmod' the binary as above.  Then tell him/her and the DBA that an open dialog and some cooperation goes a long way to finding a solution.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Dec 2008 19:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329220#M684252</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-31T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329221#M684253</link>
      <description>Hi (again) Michael:&lt;BR /&gt;&lt;BR /&gt;...and if you have 'glance' available you can see swap utilization with 'w'.  Use '?' to see other available views.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Dec 2008 20:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329221#M684253</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-31T20:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: script performance with gzip, wait and background commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329222#M684254</link>
      <description>&amp;gt;I guess our SysAdmin doesn't like to play fair:&lt;BR /&gt;-r-xr--r-- 1 bin bin 20480 Nov 9 2000 swapinfo&lt;BR /&gt;&lt;BR /&gt;This may be HP's fault here.  Your sysadmin would have to use swverify to determine it.  But getting a latter patch may just fix it.&lt;BR /&gt;You might also make a copy of swapinfo and then add execute permission.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;From top: ... 2410436K free&lt;BR /&gt;&lt;BR /&gt;I'm not sure how much you should be trusting top for this critical info.</description>
      <pubDate>Wed, 31 Dec 2008 21:40:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-performance-with-gzip-wait-and-background-commands/m-p/4329222#M684254</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-31T21:40:26Z</dc:date>
    </item>
  </channel>
</rss>

