I recently diagnosed a performance issue where the “events in waitclass Other” occasionally took significant part of the session’s response time. For example Snapper (which reads wait event data from V$SESSION_EVENT) reported that during measuring 39.9% of the response time was spent on “events in waitclass Other”.
SQL> @sn 1 119
-- Session Snapper v1.07 by Tanel Poder ( http://www.tanelpoder.com )
---------------------------------------------------------------------------------------------------------------------------------------------
HEAD, SID, SNAPSHOT START , SECONDS, TYPE, STATISTIC , DELTA, DELTA/SEC, HDELTA, HDELTA/SEC
---------------------------------------------------------------------------------------------------------------------------------------------
DATA, 119, 20080621 05:22:05, 1, STAT, session logical reads , 18284, 18284, 18.28k, 18.28k
DATA, 119, 20080621 05:22:05, 1, STAT, consistent gets , 15301, 15301, 15.3k, 15.3k
DATA, 119, 20080621 05:22:05, 1, STAT, consistent gets from cache , 15228, 15228, 15.23k, 15.23k
DATA, 119, 20080621 05:22:05, 1, STAT, consistent gets from cache (fastpath) , 15136, 15136, 15.14k, 15.14k
DATA, 119, 20080621 05:22:05, 1, STAT, calls to get snapshot scn: kcmgss , 89, 89, 89, 89
DATA, 119, 20080621 05:22:05, 1, STAT, no work - consistent read gets , 14883, 14883, 14.88k, 14.88k
DATA, 119, 20080621 05:22:05, 1, STAT, table scans (short tables) , 21, 21, 21, 21
DATA, 119, 20080621 05:22:05, 1, STAT, table scan rows gotten , 1429227, 1429227, 1.43M, 1.43M
DATA, 119, 20080621 05:22:05, 1, STAT, table scan blocks gotten , 17440, 17440, 17.44k, 17.44k
DATA, 119, 20080621 05:22:05, 1, WAIT, events in waitclass Other , 399831, 399831, 399.83ms, 399.83ms
-- End of snap 1
From Oracle 10g Oracle has consolidated lots of the events into “events in waitclass Other”. This is because saving all 900+ wait event stats for every session (in V$SESSION_EVENT array) would waste too much memory with giving little benefit (normally there’s only a handful of troublemaking events anyway). Therefore makes sense to aggregate the least likely happening events under some common category. Looks like Oracle kernel coders have set a threshold in event number above which all events are grouped under the “other” waitclass.
See below, this is from 11g:
Read more…
Tanel Poder Internals, Oracle, Oracle 11g, Performance, Troubleshooting
Recent Comments