<?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 Why does TEMP tablespace consume so much read/write time? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870915#M859352</link>
    <description>Hello,&lt;BR /&gt;    I am running Oracle 8.1.7 with a dictionary managed TEMP tablespace (3 datafiles). I am looking at utlbstat/utlestat data on datafile reads/writes. The TEMP ts accounts for &amp;lt; 1% of all blocks read, but uses 35% of all physical read time. Does anyone know why that would be? TEMP also accounts for 55% of all block writes, and 39% of all phys write time. Is there anything that can be tuned to make TEMP more efficient?&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Nov 2004 18:28:06 GMT</pubDate>
    <dc:creator>Dave Chamberlin</dc:creator>
    <dc:date>2004-11-16T18:28:06Z</dc:date>
    <item>
      <title>Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870915#M859352</link>
      <description>Hello,&lt;BR /&gt;    I am running Oracle 8.1.7 with a dictionary managed TEMP tablespace (3 datafiles). I am looking at utlbstat/utlestat data on datafile reads/writes. The TEMP ts accounts for &amp;lt; 1% of all blocks read, but uses 35% of all physical read time. Does anyone know why that would be? TEMP also accounts for 55% of all block writes, and 39% of all phys write time. Is there anything that can be tuned to make TEMP more efficient?&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Nov 2004 18:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870915#M859352</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2004-11-16T18:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870916#M859353</link>
      <description>Kind of depends how you use it, how much i/o its going to consume.&lt;BR /&gt;&lt;BR /&gt;I would suggest seeing if the data tablespace is fragmented, and cleaning that up with oracle procedures.&lt;BR /&gt;&lt;BR /&gt;I'd take a look at what is in those tablespaces and what your product set and developers are doing on those tablespaces.&lt;BR /&gt;&lt;BR /&gt;TEMP can be used for anything, thats the problem. Maybe stuff that belongs in a permanent tablespace is in there.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 16 Nov 2004 18:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870916#M859353</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-16T18:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870917#M859354</link>
      <description>&lt;BR /&gt;A little bit of handwaving here: The main reason for TEMP tablespace is for SORT and JOIN data that does not fit, or is not allowed to fit, in memory.&lt;BR /&gt;&lt;BR /&gt;The reason for DATA read IO is that you have not (yet) touched the data, or it was touched, now lives in a filesystem cache, but was purged out of the SGA.&lt;BR /&gt;&lt;BR /&gt;The main DATA IOs are likely to be fast single page reads, where TEMP often performs multy-block IO possibly invokign striping code.&lt;BR /&gt;&lt;BR /&gt;So the temp IOs are large and come from disk, and the data IOs are smaller and might come from caches. If that is the case, it suggest that you should give more memory to the SGA, less to the dbc.&lt;BR /&gt;&lt;BR /&gt;Is DATA on RAID-1 storage (two disks to read from for any block) and TEMP on RAID-1 (just one disk)&lt;BR /&gt;&lt;BR /&gt;To help explain more precisely we would probably need to know some absolute numbers from Oracle, and a quick overview of the storage. Does temp and data live on the same or similar disks? LVM? files? LVM striping? Stripe-size? COntroller? Controller striping?&lt;BR /&gt;Attach details in text file with a future reply if needed!&lt;BR /&gt;&lt;BR /&gt;Btw 1... the Oracle number had better be 'significant'&lt;BR /&gt;- to have a real impact on your system.&lt;BR /&gt;- for oracle to measure accurately. If have seen many 'oddly high' io response times for low io-rate oracle files.&lt;BR /&gt;&lt;BR /&gt;Btw 2... If you have a chance to make a (test) migration to 9i, you may find that TEMp processing significantly improved between 'pga_aggregate_target' and 'locally managed' concepts.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Nov 2004 23:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870917#M859354</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-11-16T23:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870918#M859355</link>
      <description>Can you please share/increase the values for the following initialization parameters defined in init.ora file:&lt;BR /&gt;&lt;BR /&gt;sort_area_size&lt;BR /&gt;sort_area_retained_size&lt;BR /&gt;&lt;BR /&gt;Check the output of the following SQL:&lt;BR /&gt;select mem.value/(disk.value + mem.value)&lt;BR /&gt;"In-memory Sort Ratio"&lt;BR /&gt;from v$sysstat mem, v$sysstat disk&lt;BR /&gt;where mem.name = 'sorts (memory)'&lt;BR /&gt;and disk.name = 'sorts (disk)';&lt;BR /&gt;&lt;BR /&gt;One need to ensure that 95% of all sorts happen in memory.&lt;BR /&gt;&lt;BR /&gt;sks&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Nov 2004 00:20:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870918#M859355</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-11-17T00:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870919#M859356</link>
      <description>&amp;gt;&amp;gt; One need to ensure that 95% of all sorts happen in memory.&lt;BR /&gt;&lt;BR /&gt;Ah... you gotta love 'rules of thumbs'.&lt;BR /&gt;&lt;BR /&gt;No, you do NOT need to ensure the 95% of all sorts fit in memory. &lt;BR /&gt;You just need to ensure that the the cost of sorting is acceptable to the application end usage as well as acceptable in the total system resource usage impacts.&lt;BR /&gt;&lt;BR /&gt;Admittedlly this may well be achieved by having all 95% of the sorts go to disk, or is may be 50% or it may be 99.5%. &lt;BR /&gt;It all depends! ... on the total number of sorts, the average size of all sorts the average size of the large sorts, the memry available, the disk config available and so on.&lt;BR /&gt;&lt;BR /&gt;grins,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Nov 2004 00:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870919#M859356</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-11-17T00:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870920#M859357</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;1st I would probably have a look at statpack report to see the impact on the TEMP tablespace and sort.&lt;BR /&gt;&lt;BR /&gt;also read MEtalink note 102339.1&lt;BR /&gt;&lt;BR /&gt;If the TEMP tablespace is dictionary managed this will have an impact too.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 17 Nov 2004 03:54:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870920#M859357</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-11-17T03:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870921#M859358</link>
      <description>Thanks for the replies. My sort_area_size is 1M, the sort_area_retained_size is 0, the result of the query showing in-memory sort ratio is .9999 . I just find it odd that it takes several times longer to read or write a block of TEMP data than to read or write a block of DATA data. A block is a block isn't it? The datafiles live on the same kind of disk, both are dictionary managed etc. One question does come to mind here though - if few actual reads/writes are occurring - would it help to reduce the initial/next sizes? Currently in TEMP these are 1M, so would a smaller size consume less disk IO?&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Nov 2004 09:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870921#M859358</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2004-11-17T09:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870922#M859359</link>
      <description>Oracle consider as good having inital set at 1M, next 1M and pct_increase to 0. This prevent fragmentation.&lt;BR /&gt;&lt;BR /&gt;Operations on Data is not the same as on Temp tablespace. Data is use to read or write blocks to disk. Temp is used during queries to sort, join etc. So in a multi-pass query, it may have need to push things in temp and read them back later. These can not be compared.&lt;BR /&gt;&lt;BR /&gt;Changing initial will need to recreate the TEMP tablespace.&lt;BR /&gt;&lt;BR /&gt;Other things are involved in Temp perfs. For example, are disks your temp is on mirrored or striped ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Nov 2004 10:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870922#M859359</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-11-17T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870923#M859360</link>
      <description>It looks like the best option for improving things is to better distrubute the TEMP ts datafiles. Thanks. The metalink note was useful.</description>
      <pubDate>Wed, 17 Nov 2004 10:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870923#M859360</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2004-11-17T10:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870924#M859361</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;We have the Database on LVM stripped on 8 disks, the SAN backend is RAID0+1.&lt;BR /&gt;&lt;BR /&gt;Using stripping definitely reduces Qlen on disks&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 17 Nov 2004 11:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870924#M859361</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-11-17T11:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870925#M859362</link>
      <description>I am not familiar whether or not Oracle's TEMP tablespace is in a separate disk directory, but if it is and you are not doing RAW disk access, then there is the possibility to mount a temp file system with faster (more aggressive) options which will help write performance.  This can be done by the system administrator using the 'sam' utility.</description>
      <pubDate>Thu, 18 Nov 2004 00:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870925#M859362</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2004-11-18T00:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870926#M859363</link>
      <description>Dave, Have a look at the topic "Tuning Sorts" in the following link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch20_io.htm#3689" target="_blank"&gt;http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch20_io.htm#3689&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Thu, 18 Nov 2004 01:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870926#M859363</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-11-18T01:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870927#M859364</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Why not change it?&lt;BR /&gt;drop tablespace temp&lt;BR /&gt;create TEMPORARY TABLESPACE TEMP tempfile .....&lt;BR /&gt;&lt;BR /&gt;By using a true TEMPORARY tablespace -- you will allocate an extent ONCE and then keep it.  These extents will be managed not via the data dictionary but in memory. This means the expensive recursive sql we do to allocate an extent and then free it is removed.  This can dramatically increase performance if you use lots of temp space frequently. &lt;BR /&gt;&lt;BR /&gt;and then use:&lt;BR /&gt;no raid or raid 0 for temporary datafiles (used with temporary tablespaces).  &lt;BR /&gt;&lt;BR /&gt;no raid/raid 0 is sufficient.  If you lose these, who cares?  You want speed on these, not reliability.  If a disk fails, drop and recreate temp elsewhere.&lt;BR /&gt;&lt;BR /&gt;Normally, you should try to dedicate specific devices to &lt;BR /&gt;o online redo&lt;BR /&gt;o archive&lt;BR /&gt;o temp&lt;BR /&gt;&lt;BR /&gt;Because you would not want temp (direct writes, direct reads) with you online redo log (direct writes, point of serialization, want speed).&lt;BR /&gt;&lt;BR /&gt;read also:&lt;BR /&gt;&lt;A href="http://www.jlcomp.demon.co.uk/sort_usage.html" target="_blank"&gt;http://www.jlcomp.demon.co.uk/sort_usage.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Thu, 18 Nov 2004 04:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870927#M859364</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-11-18T04:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why does TEMP tablespace consume so much read/write time?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870928#M859365</link>
      <description>Thanks for all the replies - I think I will try the locally managed solution.</description>
      <pubDate>Tue, 23 Nov 2004 12:42:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-does-temp-tablespace-consume-so-much-read-write-time/m-p/4870928#M859365</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2004-11-23T12:42:59Z</dc:date>
    </item>
  </channel>
</rss>

