I have a "simple" query:
select count(*) from dxtdb.dxtprem_bl where src_sys_entr_dt='1999-12-29'.
In one environment it's taking a wall time of > 17 min., while on another "similar" environment it's taking > 35 minutes. (In an SP2 environment, the above query took > 5 minutes.)
What's confusing is the EXPLAIN output. The EXPLAIN output on the 8GB servers was the same as for the SP2, yet on the 4GB servers instead of a relation scan, it was doing an index scan (and none of the indexes on the table contain the above column, period), with LIST Prefetch (with sorts ...).
The stats are "similar" yet with differences. The db cfg for num_ioservers, avg_appls, num_iocleaners are the exact between the non-SP2 servers.
I tried lowering the bufferpool allocation on the larger server to match the poorer performing server environment but I still got the same good EXPLAIN. I tried to match the clusterfactor for the index (from 0.79... to 0.83..., matching the value on the smaller server, which wasn't used on the larger server but used on the "smaller" server) and I still got the same EXPLAIN output on the larger server.
2 AIX p630 servers environments:
1 has more RAM (8GB vs. 4 GB). CPU speeds seem the same.
insgipdm@paehowup2577[/home/insgipdm]>lsattr -E -l sys0 | egrep "realmem|frequency"
frequency 484000000 System Bus Frequency False
realmem 8388608 Amount of usable physical memory in Kbytes False
Database manager configuration release level = 0x0a00
CPU speed (millisec/instruction) (CPUSPEED) = 5.668131e-07
Communications bandwidth (MB/sec) (COMM_BANDWIDTH) = 1.000000e+02
insgipdm@njros1up3065[/home/insgipdm]>lsattr -E -l sys0 | egrep "realmem|frequency"
frequency 333000000 System Bus Frequency False
realmem 4194304 Amount of usable physical memory in Kbytes False
Database manager configuration release level = 0x0a00
CPU speed (millisec/instruction) (CPUSPEED) = 5.668131e-07
Communications bandwidth (MB/sec) (COMM_BANDWIDTH) = 1.000000e+02
Let me know what output or knobs are desired.
I have the stats (from db2look) and db2expln output.
Ruby