<?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: gzip in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416343#M861801</link>
    <description>Thanks fred I'll have to try the split.</description>
    <pubDate>Thu, 11 Nov 2004 12:30:05 GMT</pubDate>
    <dc:creator>mangor</dc:creator>
    <dc:date>2004-11-11T12:30:05Z</dc:date>
    <item>
      <title>gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416330#M861788</link>
      <description>Hello All,&lt;BR /&gt;I'm using gzip to compress an oracle export on the fly.  It's going through the pipe file at a rate of 8k.  I have hp-11.0 64bit.  Is there anyway to increase the rate?&lt;BR /&gt;&lt;BR /&gt;mknod pipe_file_name p&lt;BR /&gt;&lt;BR /&gt;gzip &amp;lt; pipe_file_name &amp;gt; export_name.dmp.gz &amp;amp;&lt;BR /&gt;exp / file=pipe_file_name full=y ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2004 15:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416330#M861788</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2004-11-05T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416331#M861789</link>
      <description>Do the process in multiples steps.&lt;BR /&gt;&lt;BR /&gt;Create a tar file of all files, then gzip that.&lt;BR /&gt;&lt;BR /&gt;You'll probably improve the throughput.&lt;BR /&gt;&lt;BR /&gt;Make sure the disk isn't near full, that can cause huge i/o performance hits.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 05 Nov 2004 15:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416331#M861789</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-05T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416332#M861790</link>
      <description>In addtion to Steven's comments, if you can tar to a file system on one disk and gzip the output to a file system on a seperate disk, depending on the SCSI bus's max sustained throughput, you may see a big performance increase.  If the max throughput can't be sustained, you'll probably not notice a difference. obviously you'll want tot be working with the two least busy disks on the system.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Fri, 05 Nov 2004 16:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416332#M861790</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-11-05T16:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416333#M861791</link>
      <description>You cxan also experiment with the rate of compression you need.&lt;BR /&gt;&lt;BR /&gt;gzip -9 is compressing very well, but it's dead slow. By the time you need that compression, you'll probably better of with bzip2, which compresses much better, but is even slower on compressing (but faster on decompressing)&lt;BR /&gt;&lt;BR /&gt;gzip -1 compresses almost not, but is very fast.&lt;BR /&gt;&lt;BR /&gt;gzip -5 is the default.&lt;BR /&gt;&lt;BR /&gt;So if gzip -3 is compressing enough for you, it might also raise the throughput enough to be your compromise&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 05 Nov 2004 16:22:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416333#M861791</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-11-05T16:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416334#M861792</link>
      <description>One more (small) thing. Not even a shot in the dark.&lt;BR /&gt;&lt;BR /&gt;It might help to compile the most recent version of gzip from scratch with +O4, so it runs even faster.&lt;BR /&gt;&lt;BR /&gt;I don't know what gzip port you have, but in some situations, binaries compiled with GNU gcc or compiled in portable (pa-risc-1.1) mode might run up to 40% slower than binaries compiled with HP C-ANSI-C in the native architecture.&lt;BR /&gt;&lt;BR /&gt;# file `which gzip`&lt;BR /&gt;&lt;BR /&gt;will show you what architecture gzip is built for&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 102 &amp;gt; ll /stand/vmunix&lt;BR /&gt;    564 -rwxr-xr-x    1 root     sys      15405408 Jun 14 18:58 /stand/vmunix&lt;BR /&gt;a5:/tmp 103 &amp;gt; timex gzip -1 &amp;lt; /stand/vmunix &amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;real        1.84&lt;BR /&gt;user        1.80&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 104 &amp;gt; timex gzip -3 &amp;lt; /stand/vmunix &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;real        2.48&lt;BR /&gt;user        2.17&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 105 &amp;gt; timex gzip -5 &amp;lt; /stand/vmunix &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;real        3.06&lt;BR /&gt;user        2.76&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 106 &amp;gt; timex gzip -9 &amp;lt; /stand/vmunix &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;real       27.97&lt;BR /&gt;user       27.05&lt;BR /&gt;sys         0.04&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 107 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 109 &amp;gt; gzip --version&lt;BR /&gt;gzip 1.3.5&lt;BR /&gt;(2002-09-30)&lt;BR /&gt;Copyright 2002 Free Software Foundation&lt;BR /&gt;Copyright 1992-1993 Jean-loup Gailly&lt;BR /&gt;This program comes with ABSOLUTELY NO WARRANTY.&lt;BR /&gt;You may redistribute copies of this program&lt;BR /&gt;under the terms of the GNU General Public License.&lt;BR /&gt;For more information about these matters, see the file named COPYING.&lt;BR /&gt;Compilation options:&lt;BR /&gt;DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT&lt;BR /&gt;Written by Jean-loup Gailly.&lt;BR /&gt;a5:/tmp 110 &amp;gt; file `which gzip`&lt;BR /&gt;/pro/bin/gzip:  PA-RISC2.0 shared executable dynamically linked&lt;BR /&gt;a5:/tmp 111 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;===&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 111 &amp;gt; /usr/contrib/bin/gzip --version&lt;BR /&gt;gzip 1.2.4 (18 Aug 93)&lt;BR /&gt;Compilation options:&lt;BR /&gt;DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H&lt;BR /&gt;a5:/tmp 112 &amp;gt; file /usr/contrib/bin/gzip&lt;BR /&gt;/usr/contrib/bin/gzip:  s800 shared executable&lt;BR /&gt;a5:/tmp 113 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 113 &amp;gt; timex /usr/contrib/bin/gzip -9 /dev/null&lt;BR /&gt;&lt;BR /&gt;real       21.89&lt;BR /&gt;user       21.49&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 114 &amp;gt; timex /usr/contrib/bin/gzip -5 &amp;lt; /stand/vmunix &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;real        3.03&lt;BR /&gt;user        2.89&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 115 &amp;gt; timex /usr/contrib/bin/gzip -3 &amp;lt; /stand/vmunix &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;real        2.35&lt;BR /&gt;user        2.33&lt;BR /&gt;sys         0.02&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 116 &amp;gt; timex /usr/contrib/bin/gzip -1 &amp;lt; /stand/vmunix &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;real        2.06&lt;BR /&gt;user        2.03&lt;BR /&gt;sys         0.02&lt;BR /&gt;&lt;BR /&gt;a5:/tmp 117 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 05 Nov 2004 16:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416334#M861792</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-11-05T16:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416335#M861793</link>
      <description>thanks everyone but that doesn't help to answer my question.  I'm not looking for a faster way to take a backup.  I'm looking for a way to increase the size of the pipe file.  We already take a full system backup in a short time period.  I want to perform an export and compress it on the fly.  Is there anyway to increase the pipe file size?</description>
      <pubDate>Sun, 07 Nov 2004 21:23:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416335#M861793</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2004-11-07T21:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416336#M861794</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Unless you write your own C-program to increase the buffer size to read|write from the pipe, I don't think you can be able to do it.&lt;BR /&gt;&lt;BR /&gt;However with the hint from Procura, but at the price of compression, you can significantly reduce the time. For ex., try the following.&lt;BR /&gt;&lt;BR /&gt;mkfifo pipe&lt;BR /&gt;gzip -1 &amp;lt; pipe &amp;gt; your_file.gz&amp;amp;&lt;BR /&gt;timex dd if=/stand/vmunix of=pipe bs=1024k&lt;BR /&gt;&lt;BR /&gt;See how long it took. Try with various compression options like&lt;BR /&gt;&lt;BR /&gt;gzip -3 &amp;lt; pipe &amp;gt; your_file.gz&amp;amp;&lt;BR /&gt;timex dd if=/stand/vmunix of=pipe bs=1024k&lt;BR /&gt;&lt;BR /&gt;Observe size of your_file.gz. &lt;BR /&gt;&lt;BR /&gt;Remember that as you increase the speed, the compression level is going to increase hence slower the operation. 1 being the fastest (minimum compression) and 9 the slowest (maximum compression). 6 is the default I believe.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Nov 2004 22:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416336#M861794</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-07T22:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416337#M861795</link>
      <description>Mangor,&lt;BR /&gt;  &lt;BR /&gt;That ought to work. It ought to work fast.&lt;BR /&gt;The compress CPU time is normally the bottleneck. You may want to specify the Oracle version and cpu count/speed/architecture for better help.&lt;BR /&gt;What is 'rate of 8k'. kb/sec? yikes.&lt;BR /&gt;What is the rate for exportign to /dev/null?&lt;BR /&gt;What is the cpu usage going to /dev/null (expressed in single cpu speed, as export is just one singlestreamed program).&lt;BR /&gt;&lt;BR /&gt;You checked general export adivses like:&lt;BR /&gt;&lt;A href="http://www.orafaq.com/faqiexp.htm#SPEED" target="_blank"&gt;http://www.orafaq.com/faqiexp.htm#SPEED&lt;/A&gt;&lt;BR /&gt;(btw.... COMPRESSED=y in the par file does not compress the output, just the future allocation :-).&lt;BR /&gt;&lt;BR /&gt;I have seen some suggestions to sleep a second or two before starting export to make sure that the reading starts before the writing.&lt;BR /&gt;&lt;BR /&gt;There are also suggestions to avoid NFS output in the process.&lt;BR /&gt;&lt;BR /&gt;Personally I use mpsched to explicitly schedule exp and zip on seperate CPU's.&lt;BR /&gt;Even if it does not help (I think it does) it gives you good visibility on the bottleneck... if any.&lt;BR /&gt;&lt;BR /&gt;If the zip CPU is 100%, then that's all you are going to get no? (of course top will tell you that either way; bound or not).&lt;BR /&gt;&lt;BR /&gt;The hints for faster zips, or for zip options, should be followd up.&lt;BR /&gt;Personally I use bzip2 (and -3 if I remember).&lt;BR /&gt;&lt;BR /&gt;There is no way that exporting to a disk first is going to help au contraire!&lt;BR /&gt;If if does help, just use that as an analysis tool to isolate what is broken.. because it shouldn't help.&lt;BR /&gt;&lt;BR /&gt;Finally try and try again.&lt;BR /&gt;It is well worth a few minutes of evaluation of cpu time, elapsed time, and compression afficiency if you are about to dive into multiplr hours of exporting and compressing.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Nov 2004 23:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416337#M861795</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-11-07T23:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416338#M861796</link>
      <description>"I want to perform an export and compress it on the fly. Is there anyway to increase the pipe file size? "&lt;BR /&gt;&lt;BR /&gt;I still think you are chasing the wrong end of this, and that your bottleneck is pulling the data out of Oracle.  Have you run iostats on the disks where the Oracle volumes are stored during the time period in which your backup runs?  8k/sec seems way too slow for this to be a memory or kernel threshold.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Mon, 08 Nov 2004 09:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416338#M861796</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-11-08T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416339#M861797</link>
      <description>If your piped gzip output rate from yor Oracle export job is 8k a second.. then that means you're probably getting anywhere from 80K to 100K a second from Oracle. Possibilities:&lt;BR /&gt;&lt;BR /&gt;1. Oracle is slow feeding your pipe/gzip'd process&lt;BR /&gt;2. The system is very I/O and CPU bound.&lt;BR /&gt;&lt;BR /&gt;What is the model and memory/disk config of this machine?&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2004 10:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416339#M861797</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2004-11-08T10:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416340#M861798</link>
      <description>You can't speed up pipes. HP-UX pipes are using a block size that are breaking big IOs in multiple tiny Ios. And you cannot do anything about that.&lt;BR /&gt;&lt;BR /&gt;I've been involved in a porting problem where programmers were using pipes on a 32 bit SUN OS to read/write big files. Porting this on a brand new system, this programs where *very* much slower. As long as we were on a 64 bits OS, we could remove the pipes, read the big files and speed up the programs. But pipes are slow.&lt;BR /&gt;&lt;BR /&gt;In order to improve your export, you have 2 ways :&lt;BR /&gt;. OS one could be, as said before, to use files. But thois mean you will need sapce for uncompressed export...&lt;BR /&gt;. Oracle exports can be speed up by using different buffer sizes or direct path exports.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2004 10:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416340#M861798</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-11-08T10:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416341#M861799</link>
      <description>ok well that's a lot of responses.  &lt;BR /&gt;1. 8k is the size of the pipe file.  8k worth of data only appears to go through the pipe file at a time.  I was looking to increase this amount.  Yes I have already tried changing the compress rate.  That still isn't fast enough for me.</description>
      <pubDate>Wed, 10 Nov 2004 11:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416341#M861799</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2004-11-10T11:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416342#M861800</link>
      <description>Mangor,&lt;BR /&gt;&lt;BR /&gt;Have you tried compress with split and with a big record size? it's given us better results than gzip:&lt;BR /&gt;&lt;BR /&gt;/etc/mknod ${EXPORT_DIR}/${ORACLE_SID}_export.dmp p&lt;BR /&gt;&lt;BR /&gt; compress &amp;lt; ${EXPORT_DIR}/${ORACLE_SID}_export.dmp | split -b 2048m - ${EXPORT_DMP}/${ORACLE_SID}_full_${CUR_DATE}.dmp.Z&amp;amp;&lt;BR /&gt;&lt;BR /&gt;exp  \&lt;BR /&gt;FILE=${EXPORT_DMP}/${ORACLE_SID}_export.dmp \&lt;BR /&gt;LOG=${EXPORT_LOG}/${ORACLE_SID}_full_${CUR_DATE}.log \&lt;BR /&gt;DIRECT=Y \&lt;BR /&gt;RECORDLENGTH=65536 \&lt;BR /&gt;COMPRESS=N \&lt;BR /&gt;CONSISTENT=Y \&lt;BR /&gt;FULL=Y   &amp;lt; ${CTL_FILE_DIR}/logexp.ctl&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Nov 2004 11:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416342#M861800</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2004-11-10T11:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416343#M861801</link>
      <description>Thanks fred I'll have to try the split.</description>
      <pubDate>Thu, 11 Nov 2004 12:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip/m-p/3416343#M861801</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2004-11-11T12:30:05Z</dc:date>
    </item>
  </channel>
</rss>

