dbTalk Databases Forums  

Tracking down excessive DBSPACETEMP i/o.

comp.databases.informix comp.databases.informix


Discuss Tracking down excessive DBSPACETEMP i/o. in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default Tracking down excessive DBSPACETEMP i/o. - 08-18-2005 , 02:36 PM






We have four locations running the same apps against the same schema on the same
hardware. It's an order-entry and dispatching OLTP system. Two of our locations
sometimes report intermittent database 'sluggishness' which is also reflected in
heavy CPU usage and disk i/o. The buffer turnover ratio has also been high
during these periods.

I have finally discovered with onstat -D that the two locations that complain
about performance have a huge number of reads/writes on the temp dbspace (almost
10 times as many reads/writes as the actual data dbspaces), while the sites that
are performing well do not.

How can I identify the activity on the temp dbspace and trace it back to a
particular user session?

--
Jeff
jlar310 at yahoo

Reply With Quote
  #2  
Old   
Guy Bowerman
 
Posts: n/a

Default Re: Tracking down excessive DBSPACETEMP i/o. - 08-18-2005 , 07:29 PM






This problem might be resolved by setting PSORT_DBTEMP to perform sorts
in the filesystem. There are open bugs related to the slowness of
performing sorts in temp dbspaces.

Regards
Guy


Jeff wrote:
Quote:
We have four locations running the same apps against the same schema on
the same hardware. It's an order-entry and dispatching OLTP system. Two
of our locations sometimes report intermittent database 'sluggishness'
which is also reflected in heavy CPU usage and disk i/o. The buffer
turnover ratio has also been high during these periods.

I have finally discovered with onstat -D that the two locations that
complain about performance have a huge number of reads/writes on the
temp dbspace (almost 10 times as many reads/writes as the actual data
dbspaces), while the sites that are performing well do not.

How can I identify the activity on the temp dbspace and trace it back to
a particular user session?

--
Jeff
jlar310 at yahoo

Reply With Quote
  #3  
Old   
Bill Dare
 
Posts: n/a

Default RE: Tracking down excessive DBSPACETEMP i/o. - 08-19-2005 , 09:10 AM




This should narrow it down to a specific user:

SELECT n.dbsname AS database,
n.owner AS owner,
n.tabname AS temp_tabname,
case
when BITVAL(i.ti_flags, "0x0020") = 1
then "System created temp table"
when BITVAL(i.ti_flags, "0x0040") = 1
then "User created temp table"
when BITVAL(i.ti_flags, "0x4000") = 1
then "Special function temp table"
end AS temp_type,
COUNT(*) AS num_fragments,
SUM(i.ti_nptotal) AS total_pages,
SUM(i.ti_nrows) AS total_rows
FROM systabnames n,
systabinfo i
WHERE (BITVAL(i.ti_flags, "0x0020") = 1
OR BITVAL(i.ti_flags, "0x0040") = 1)
AND i.ti_partnum = n.partnum
GROUP BY 1, 2, 3, 4;


Bill


Quote:
-----Original Message-----
From: owner-informix-list (AT) iiug (DOT) org [SMTPwner-informix-list (AT) iiug (DOT) org]
On Behalf Of Jeff
Sent: Thursday, August 18, 2005 3:36 PM
To: informix-list (AT) iiug (DOT) org
Subject: Tracking down excessive DBSPACETEMP i/o.

We have four locations running the same apps against the same schema
on the same
hardware. It's an order-entry and dispatching OLTP system. Two of our
locations
sometimes report intermittent database 'sluggishness' which is also
reflected in
heavy CPU usage and disk i/o. The buffer turnover ratio has also been
high
during these periods.

I have finally discovered with onstat -D that the two locations that
complain
about performance have a huge number of reads/writes on the temp
dbspace (almost
10 times as many reads/writes as the actual data dbspaces), while the
sites that
are performing well do not.

How can I identify the activity on the temp dbspace and trace it back
to a
particular user session?

--
Jeff
jlar310 at yahoo
sending to informix-list


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.