SLIDE 27 Introduction Optimizing I/O Performance Optimizing Cache Performance Evaluation Discussion
Insert Performance
Insert performance under a) different bulkload factors b) # of entries.
10
5
10
6
10
7
1 1.5 2 2.5 3 # of entries in leaf pages execution time (M cycles) Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree 10
5
10
6
10
7
1 1.5 2 2.5 3 # of entries in leaf pages execution time (M cycles) Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree
´µ Ô ×Þ
´µ Ô ×Þ
10
5
10
6
10
7
1 1.5 2 2.5 3 3.5 # of entries in leaf pages execution time (M cycles) Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree 10
5
10
6
10
7
1 1.5 2 2.5 3 3.5 # of entries in leaf pages execution time (M cycles) Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree
´ µ Ô ×Þ
´µ Ô ×Þ
ÙÖ ½¼ ËÖ
ÖÓÖÑÒ ÓÖ ½¼¼± ÙÐÐÓ
10
5
10
6
10
7
1 1.5 2 2.5 3 3.5 # of entries in leaf pages execution time (M cycles) nonleaf= 64B nonleaf=128B nonleaf=192B(selected) nonleaf=256B nonleaf=320B nonleaf=384B nonleaf=448B nonleaf=512B 10
5
10
6
10
7
1 1.5 2 2.5 3 3.5 # of entries in leaf pages execution time (M cycles) 128B 256B 512B 704B(selected) 1024B Best Synthesized
´µ ×¹¬Öר Ô
Ö ´µ
Ô
Ö ÙÖ ½½ ÇÔØÑÐ ÛØ ×Ð ØÓÒ ´½Ã Ôµ
ÖÓÖÑÒ Ú ÖÝ ÐÓ× ØÓ Ø
ÑÓÒ Ø ÒÓ
ÙÖ ½½´µ ×Ó Û× Ø Ô ÖÓÖÑÒ Ó ×¹ ¬Öר Ô
Ö× Ù×Ò ÒÓÒÐ ÒÓ
ÖÓÑ
ľ
ØÓ ½¾ ´ ľ
ÇÙÖ ×Ð Ø ÓÔØÑÐ ØÖ × ÛØÒ ¾± Ó Ø
Ü ÙØÓÒ ØÑ׺
¬Öר Ô
Ö× Û
Ø Ô ÖÓÖÑÒ ÓÖ ÒÓ
ÖÒÒ ÖÓÑ ½¾ ØÓ ½¼¾º ÁÒ ÙÖ ½½´µ¸ ÓÖ ×ÑÔÐ Ø Ý ¸ Û
×Ó Û ÙÖÚ × ÓÖ ÒÓ
Ó ½¾¸ ¾¸ ½¾¸ ¼¸ ½¼¾¸ Ò
Ô ÖÓÖÑÒ ÙÖÚ
Ø×Þ
ØÒ Ø ÑÒÑ ÙÑ× Ó ÐÐ ÙÖÚ × ÛØ Ø ×Ñ
Ò¹ ØÖ× Ò Ð Ô׺ ÇÙÖ ×Ð Ø ÓÔØÑÐ ØÖ Ô ÖÓÖÑ× ÛØÒ ± Ó Ø
ÁÒ Ø ÜÔ ÖÑÒ Ø× ØØ ÓÐÐÓ Û¸ Û
Ø ÓÔØÑÐ ÒÓ
Ú Ò Ò Ì Ð ¾º Î ÖÝÒ Ø ÙÐÐÓ ØÓÖº ÁÒ ÙÖ ½¾¸ Û
Ö¹
¿Å¹Ò ØÖÝ ÜÔ ÖÑÒ Ø× Ò ÙÖ ½¼´ µ ÛØ ÙÐÐÓ ØÓÖ× ÖÒÒ ÖÓÑ ¼± ØÓ ½¼¼±º ÓÑÔÖ ÛØ ×¹ ÓÔØÑÞ
Ö׸ Ô
Ö× Ò Ñ ÖÓ¹ÒÜÒ
¹ÙÔ×
Û Ò ½º¿ Ò ½º¼º Ì ×ØÔ¹Ó ÛÒ Ø ¼± ÓÖ Ñ ÖÓ¹ÒÜÒ Ò ×¹¬Öר Ô
Ö× ×
ØÝ ÖÙ ÓÒ Ô ÐÚ Ð Ø ¼±º ÐØÓÙ Ø ×¹ÓÔØÑÞ
Ö× Ð×Ó ÖÙ ÓÒ ÐÚ Ð Ö¸ Ø × ÚÒ× Ö Ó«×Ø
Óר ÓÖ ×Ö Ò Ð Ô× ÛØ Ò Ö× ÙÐÐÓ ØÓÖ׺
Ô
Ì Ö× ÐÐ
×Ñ Ò ÙÑ
Ó ÒÓ
Ð× Ò Ø× ר Ó
60 70 80 90 100 1.5 2 2.5 3 3.5 bulkload factor when building the trees execution time (M cycles) Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree
ÙÖ ½¾ ËÖ
ÖÓÖÑÒ Ú ÖÝÒ ÙÐÐÓ ¹ ØÓÖ× ´¿Å
½Ã Ôµ
60 70 80 90 100 10 20 30 40 50 60 70 80 bulkload factor (16KB page) execution time (M cycles) Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree 10
5
10
6
10
7
10 20 30 40 50 60 70 # of entries in leaf pages (16KB page, 100% full) execution time (M cycles) Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree
´µ Î ÖÝÒ ÙÐÐÓ ØÓÖ× ´µ Î ÖÝÒ
Ò ØÖ×
10 20 30 40 50 60 70 80 90 (3M entries in leaf pages, 100% full) execution time (M cycles) 4KB 8KB 16KB 32KB Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree 20 40 60 80 100 (3M entries in leaf pages, 70% full) execution time (M cycles) 4KB 8KB 16KB 32KB Disk−optimized B+tree Micro−indexing Disk−first fpB+tree Cache−first fpB+tree
´ µ Î ÖÝÒ Ô ×Þ× ´½¼¼± ÙÐе ´µ Î ÖÝÒ Ô ×Þ× ´¼± ÙÐе ÙÖ ½¿ ÁÒ×ÖØÓÒ Ô ÖÓÖÑÒ ÜÔ ÖÑÒ Ø× Ò ØÖÓÖ ×ÑÐÖ Ô ÖÓÖÑÒ º
4.2.2 Insertion Performance
ÙÖ ½¿ ×Ó Û× Ø Ò×ÖØÓÒ Ô ÖÓÖÑÒ Ò ÓÙÖ ¹ ÖÒ Ø ×ØØÒ׺ Ì ÜÔ ÖÑÒ Ø× ÐÐ Ñ×ÙÖ Ø Ü Ù¹ ØÓÒ ØÑ× ÓÖ Ò×ÖØÒ ¾¼¼¼ ÖÒÓÑ
ØÖ ÙÐÐÓ׸ ÛÐ Ú ÖÝÒ Ø ÙÐÐÓ ØÓÖ¸ Ø Ò ÙÑ
Ó Ò ØÖ× Ò Ð Ô׸ Ò Ø Ô ×Þº Ì Ô
Ö×
ØÓ
×Ô ¹ÙÔ Ó Ú Ö ×¹ÓÔØÑÞ
Ö׸ ÛÐ Ñ ÖÓ¹ÒÜÒ Ô ÖÓÖÑ× ÐÑÓר × Ô Ó ÓÖÐÝ × ×¹ÓÔØÑÞ
Ö׺ ÙÖ ½¿´µ ÓÑÔÖ× Ò×ÖØÓÒ Ô ÖÓÖÑÒ Ó ØÖ× ÖÓÑ ¼± ØÓ ½¼¼± ÙÐÐ ÓÒ ØÒÒ ¿Å
ÓÑÔÖ ØÓ ×¹ ÓÔØÑÞ
Ö׸ Ø Ô
Ö×
ØÓ ¾¼¹ÓÐ ×Ô ¹ÙÔ×
Û Ò ¼± Ò ¼±¸ ÛÐ ÓÖ ½¼¼± ÙÐÐ ØÖ׸ ØÝ Ö Ó Ú Ö ½º ØÑ×
ÁÒ ØÖרÒÐÝ ¸ Ø ÙÖÚ ×
«ÖÒ Ø ×Ô × ØÓ× Ó ×¹ÓÔØÑÞ
Ì Ö× Ò Ñ ÖÓ¹ÒÜÒ Ò Ö× ÖÓÑ ¼± ØÓ ¼± ÙØ ÖÓÔ Ø Ø ½¼¼± Ô ÓÒ Ø¸ ÛÐ Ø ÙÖÚ × Ó Ô
Ö× ×Ø Ý Ø Ø ¬Öר ÙØ ÙÑÔ ÖÑØ ÐÐÝ Ø Ø ½¼¼± Ô ÓÒ Øº Ì× « Ø× Ò
Ø ÓÑ ÒØÓÒ Ó Ø Û Ó ØÓÖ× Ø ÑÓ Ú ÑÒ Ø Ò Ô ×ÔÐØ×º ÏÒ ØÖ× Ö ¼± ØÓ ¼± ÙÐи Ò×ÖØÓÒ× Ù×ÙÐÐÝ ¬Ò ÑÔØ Ý ×ÐÓØ× Ò Ø Ñ ÓÖ ÓÔ Ö¹ ØÓÒ ØÖ ×Ö Ò ÛÖ Ø
× ØÓ ÑÓ Ú
Ò Ô ÓÒ ØÖ ÖÖ Ý× Ò ÓÖÖ ØÓ Ò×ÖØ Ø ÒÛ Ò ØÖÝ º ÁÒ