dbTalk Databases Forums  

sysmaster:sysusers and sequential scans

comp.databases.informix comp.databases.informix


Discuss sysmaster:sysusers and sequential scans in the comp.databases.informix forum.



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

Default sysmaster:sysusers and sequential scans - 06-08-2010 , 12:39 PM






To occupy a few minds tonight :-)

I've been investigating some highish sequential scan figures (1.4
million in 8 hours). I know they are not bad in themselves but just
wanted to see if there were any large tables being scanned. I
successfully identified a couple of larger tables (250 rows x 300
chrs) that were usefully indexed and am only left with 15 or so tables
that are being scanned but that have < 10 rows each, so far so good.
One of these tables is giving pause for thought however. The sql I am
using is :-
DATABASE sysmaster;
SELECT a.dbsname[1,10] AS database,
a.tabname[1,18] AS table,
b.npused,
a.bufreads,
a.bufwrites,
a.seqscans,
a.pagreads,
a.pagwrites
FROM sysptprof a, sysptnhdr b
WHERE a.partnum = b.partnum
AND a.seqscans > 4000
ORDER BY a.seqscans DESC

which produces (amonst others):-
database table npused bufreads bufwrites
seqscans pagreads pagwrites
---------- ------------------ ------------ ------------
------------ ------------ ------------ ------------
sysmaster sysusers 3 29400007 0
7133 0 0

The number of scans is not concerning (on a par with the rest and
1/20th the highest) however the bufreads is a standout figure being a
factor of 20 higher than the next nearest and a factor of 200 higher
than most other scanned tables.
I know the sysmaster tables are not real and this mayall be a red
herring, but is there any potential issue here??

AIX 5.3 running IBM Informix Dynamic Server Version 9.40.FC6 (in the
process of upgrading to 11).

Many thanks

Keith

Reply With Quote
  #2  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: sysmaster:sysusers and sequential scans - 06-08-2010 , 04:13 PM






On 8 June, 18:39, Keith Simmons <smile... (AT) googlemail (DOT) com> wrote:
Quote:
To occupy a few minds tonight :-)

I've been investigating some highish sequential scan figures (1.4
million in 8 hours). I know they are not bad in themselves but just
wanted to see if there were any large tables being scanned. I
successfully identified a couple of larger tables (250 rows x 300
chrs) that were usefully indexed and am only left with 15 or so tables
that are being scanned but *that have < 10 rows each, so far so good.
One of these tables is giving pause for thought however. The sql I am
using is :-
DATABASE sysmaster;
SELECT *a.dbsname[1,10] AS database,
* * * * a.tabname[1,18] AS table,
* * * * b.npused,
* * * * a.bufreads,
* * * * a.bufwrites,
* * * * a.seqscans,
* * * * a.pagreads,
* * * * a.pagwrites
FROM * *sysptprof a, sysptnhdr b
WHERE * a.partnum = b.partnum
AND * * a.seqscans > 4000
ORDER BY *a.seqscans DESC

which produces (amonst others):-
database * table * * * * * * *npused * * * bufreads* * bufwrites
seqscans * * pagreads * * pagwrites
---------- * * * ------------------ ------------ * * *------------
*------------ * * *------------ * * * ------------ * * ------------
sysmaster *sysusers * * * * * * * 3 * * 29400007 * * * * * *0
* *7133 * * * * * *0 * * * * * * *0

The number of scans is not concerning (on a par with the rest and
1/20th the highest) however the bufreads is a standout figure being a
factor of 20 higher than the next nearest and a factor of 200 higher
than most other scanned tables.
I know the sysmaster tables are not real and this mayall be a red
herring, but is there any potential issue here??

AIX 5.3 running IBM Informix Dynamic Server Version 9.40.FC6 (in the
process of upgrading to 11).

Many thanks

Keith
Well http://www-01.ibm.com/support/docvie...id=swg1IC59896
mentions

IC59896: PERFORMANCE SLOWDOWN WHEN MANY NON-DBA USERS EXECUTE A STORED
PROCEDURE

The problem is fixed in IDS 11.50.xC4. Users should no longer
see the contention on the mutex as the necessary
information is read from cache instead of accessing the table
every time.

After 11.50 is installed I would cehk the size of the dictionary cache
with onstat -g dic.

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.