- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why does TEMP tablespace consume so much read/writ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 10:28 AM
тАО11-16-2004 10:28 AM
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 < 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?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 10:33 AM
тАО11-16-2004 10:33 AM
Re: Why does TEMP tablespace consume so much read/write time?
I would suggest seeing if the data tablespace is fragmented, and cleaning that up with oracle procedures.
I'd take a look at what is in those tablespaces and what your product set and developers are doing on those tablespaces.
TEMP can be used for anything, thats the problem. Maybe stuff that belongs in a permanent tablespace is in there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 03:27 PM
тАО11-16-2004 03:27 PM
Re: Why does TEMP tablespace consume so much read/write time?
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.
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.
The main DATA IOs are likely to be fast single page reads, where TEMP often performs multy-block IO possibly invokign striping code.
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.
Is DATA on RAID-1 storage (two disks to read from for any block) and TEMP on RAID-1 (just one disk)
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?
Attach details in text file with a future reply if needed!
Btw 1... the Oracle number had better be 'significant'
- to have a real impact on your system.
- for oracle to measure accurately. If have seen many 'oddly high' io response times for low io-rate oracle files.
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.
Hope this helps some,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 04:20 PM
тАО11-16-2004 04:20 PM
Re: Why does TEMP tablespace consume so much read/write time?
sort_area_size
sort_area_retained_size
Check the output of the following SQL:
select mem.value/(disk.value + mem.value)
"In-memory Sort Ratio"
from v$sysstat mem, v$sysstat disk
where mem.name = 'sorts (memory)'
and disk.name = 'sorts (disk)';
One need to ensure that 95% of all sorts happen in memory.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 04:28 PM
тАО11-16-2004 04:28 PM
Re: Why does TEMP tablespace consume so much read/write time?
Ah... you gotta love 'rules of thumbs'.
No, you do NOT need to ensure the 95% of all sorts fit in memory.
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.
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%.
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.
grins,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 07:54 PM
тАО11-16-2004 07:54 PM
Re: Why does TEMP tablespace consume so much read/write time?
1st I would probably have a look at statpack report to see the impact on the TEMP tablespace and sort.
also read MEtalink note 102339.1
If the TEMP tablespace is dictionary managed this will have an impact too.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 01:53 AM
тАО11-17-2004 01:53 AM
Re: Why does TEMP tablespace consume so much read/write time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 02:06 AM
тАО11-17-2004 02:06 AM
Re: Why does TEMP tablespace consume so much read/write time?
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.
Changing initial will need to recreate the TEMP tablespace.
Other things are involved in Temp perfs. For example, are disks your temp is on mirrored or striped ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 02:52 AM
тАО11-17-2004 02:52 AM
Re: Why does TEMP tablespace consume so much read/write time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 03:58 AM
тАО11-17-2004 03:58 AM
Re: Why does TEMP tablespace consume so much read/write time?
We have the Database on LVM stripped on 8 disks, the SAN backend is RAID0+1.
Using stripping definitely reduces Qlen on disks
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 04:33 PM
тАО11-17-2004 04:33 PM
Re: Why does TEMP tablespace consume so much read/write time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 05:22 PM
тАО11-17-2004 05:22 PM
Re: Why does TEMP tablespace consume so much read/write time?
http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch20_io.htm#3689
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 08:37 PM
тАО11-17-2004 08:37 PM
SolutionWhy not change it?
drop tablespace temp
create TEMPORARY TABLESPACE TEMP tempfile .....
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.
and then use:
no raid or raid 0 for temporary datafiles (used with temporary tablespaces).
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.
Normally, you should try to dedicate specific devices to
o online redo
o archive
o temp
Because you would not want temp (direct writes, direct reads) with you online redo log (direct writes, point of serialization, want speed).
read also:
http://www.jlcomp.demon.co.uk/sort_usage.html
hope this helps!
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 04:42 AM
тАО11-23-2004 04:42 AM