Escolar Documentos
Profissional Documentos
Cultura Documentos
IN TERNALS
By
Riyaj Shamsudeen
rshamsud@orainternals.com
orainternals.wordpress.com
Web: www.orainternals.com
Background processes
Optimizer & in-memory
tidbits
Interesting observations
Learnings
Conclusion
db_cache & in-memory
Shared pool area
Log buffer
db blocks
(Ex. 8k)
inmemory
Journal
Processes and memory
IMCU
w000
IMCU IMCU
w001
w002
w00n
imc0
In-memory journal
Task queue( memory)?
OraInternals Riyaj Shamsudeen
In-memory heap
Oradebug setmypid
Oradebug dump heapdump 2
Oradebug tracefile_name
IMCA_RO 2G memory
80% of inmemory_size
extents
Background processes
Optimizer & in-memory
tidbits
Interesting observations
Learnings
Conclusion
In-memory background processes
System level:
alter system set events 'trace [im_scan|im_populate|im_background]
disk=medium;
Parameter file:
event='trace [im_scan|im_populate|im_background] disk=medium;
Session level:
alter session set events 'trace [im_scan] disk=medium;
Task queue: IMCO
protection of IN enqueuer.
Lock types
TYPE : TZ
NAME : in-memory
DESCRIPTION : Serialize in-memory area create/drop
-----------------
TYPE : IN
NAME : in-memory segment
DESCRIPTION : Serialize in-memory segment create/drop
-----------------
TYPE : ZB
NAME : in-memory TS
DESCRIPTION : Serialize in-memory tablespace create/drop
-----------------
AGENDA
Background processes
Optimizer & in-memory
tidbits
Interesting observations
Learnings
Conclusion
Optimizer tracing
Background processes
Optimizer & in-memory
tidbits
Interesting observations
Learnings
Conclusion
Tidbits
IMCU size is 8M
_inmemory_imcu_target_bytes = 8388608
AGENDA
Background processes
Optimizer & in-memory
tidbits
Interesting observations
Learnings
Conclusion
Chained row problem
HCC compression
Decompress
Memcompress
IM Population
HCC Memcompress
Background processes
Optimizer & in-memory
tidbits
Interesting observations
Learnings
Conclusion
Learning 1: WITH clause
# numactl hardware
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23
node 0 size: 196573 MB
node 0 free: 24504 MB
node 1 cpus: 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31
node 1 size: 196607 MB
node 1 free: 29391 MB
node distances:
node 0 1
0: 10 20
1: 20 10
$ pstack 21131
#0 0x0000000000d9996e in ksmprepage_memory ()
#1 0x0000000000d99369 in ksm_prepage_sga_seg ()
#2 0x0000000003a5c78b in skgmapply ()
#3 0x0000000000da686a in ksmapply_v2 ()
#4 0x0000000000d9a82c in ksmprepage ()
#5 0x0000000000d99f89 in ksm_sslv_exec_cbk ()
#6 0x0000000000f79810 in ksvrdp ()
#7 0x00000000031013b7 in opirip ()
#8 0x0000000001bb0a08 in opidrv ()
#9 0x00000000026c0f71 in sou2o ()
#10 0x0000000000bbd85e in opimai_real ()
#11 0x00000000026cb6bc in ssthrdmain ()
#12 0x0000000000bbd72c in main ()
$ ps -ef|grep 21131
oracle 21131 1 96 15:00 ? 00:01:50 ora_sa00_XXXXX
pre_page_sga
Email: rshamsud@orainternals.com
Blog : orainternals.wordpress.com
Web: www.orainternals.com