innodb and xtradb architecture and performance optimization

95
!!" #"$%& ' () $ '!' " *+,

Upload: oleksiy-kovyrin

Post on 14-Oct-2014

271 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Innodb and XtraDB Architecture and Performance Optimization

���������������� ��������������������������������

�������������

�� ��!!"��#"$%&�'�������������()��

$����'!���'

�"�����*��+�,������������

Page 2: Innodb and XtraDB Architecture and Performance Optimization

���

���������������������

- �,����������������������������.���+���+�����"

/ ���"�,�+���

- ����++��!��0���������+�����1�+"+�����������

- 2���+����'�������!� +���+

/ ()���'���3+����!1�������������+�+��+����������

/ 4������+- 5�0���+��+�����!1�����6

- 5�0�����3+��+��������3��7������

Page 3: Innodb and XtraDB Architecture and Performance Optimization

+���+��� ��������

- 8����!� �������

- $��1������2�!��&�"��

- 9����+

- #���"

- ��+3���

- &�11��1

- ����)�+��

- #�!��:�+�����1

- �0�&��3��1

- &�����1

�;�

Page 4: Innodb and XtraDB Architecture and Performance Optimization

+���+���� ���������

- ��1���!�+���1����� ��!������

- ��+���������1

- ����,��5�+������)

- �&���$��1�

- ���,�"

- '����++����2����+

- 2���1��<�"+

���

Page 5: Innodb and XtraDB Architecture and Performance Optimization

�������:�+���+

- #"$%&�=>��������!�0

/ &�+����!���+>�����$��!���!�">

- ��������!�1������#"$%&�=>���?�>�>)@

/ $��!�+������2�+�����)���������'����++���

- #"$%&�=>=��?,�+�����>�>)@

/ $��!���!�"���������,��

- �����

/ ��+��������������!�1���=>������,�+�������=>=

/ 5�+������������+����������������,����+

/ ,��!��!������������$�,������#�����

Page 6: Innodb and XtraDB Architecture and Performance Optimization

8����!� �������

- 9�������!��&9��(�1���

/ A(��!��+����!�� �������B

- ���!��������+��1�#"$%&�$��1����1���� ��

- �0���+���$��1�>� �0�&��3��1>�#:''

- ����$�������9��!�+����+

- &�1��������1�+�+�����������!��!�1���!�+

- ������1�+��+���1�+����A���������!B

�C�

Page 7: Innodb and XtraDB Architecture and Performance Optimization

$��1��2�!�+�&�"��

��"+���!�$���������������9���+����+�����&�1+

�D�

Page 8: Innodb and XtraDB Architecture and Performance Optimization

�������9��!�+����+

- !!�����+�������9��!�+����+

/ '���1�+�����+�������+�+�+�������'���!��&�1+

/ '���1�+���+��������!����������!�+�����������!�1�������+��,�0���

- $��1!����!�+���������!��!����!�+����

/ ������������� ����

- $"+��������������!0�"+�����������!�+����

/ ������

/ #������!�+������������+�+�������"���!�+- 9��"��������������

�E�

Page 9: Innodb and XtraDB Architecture and Performance Optimization

9��!�+�����2���

- '�!!���������$�1���+

/ $�1�����+�!�3����A��!�B

- $�1�����+�����������)��+

/ 9"����!!"�C������C<���1��+���+

/ $��!!���)��+����,�"�+��!!���F��+

- 2�+�9��!�+�������1��������+������

/ 9��!�+�����+���

/ 9��!�+��������

�G�

Page 10: Innodb and XtraDB Architecture and Performance Optimization

9"��+����$�1���+

- (������!���+�$���������)�+

/ ���������+�A����)��1���������!�+B

- (��������)���+

/ &���������+�1���

/ H���&���������+�1���

- $�����!�$�1���+

/ �!!���3�$�1���?+@

/ ��+�����������

����

Page 11: Innodb and XtraDB Architecture and Performance Optimization

�������$����� !!������

- $��!!�$�1���+�?!�++�����;����1�+@

/ ��1����������

- &�1��$�1���+

/ ()�������������?���,������1�������@

- 2�����1�+���"�!���0�����+����+�1���

- !!���1�+�����)�����+�����������������+��+��������������+�1�������+������!�+����

/ ������������� ������������+�������������+����"�+������!����!"

- ���������,��+���3+��+���!�+����+

����

Page 12: Innodb and XtraDB Architecture and Performance Optimization

�������&�1�2�!�+

- $�����!�1���!�+

/ ��������

/ ��!�1���!�+��"������!>�(�����,�!"������������

- &�1�5����

/ $��+����������������!�+�����3����

- &�1��+�H�9��1������������1�+���������+

/ ����+��!�1����=����"�+��������1���+3�+���

- &�1�����������A��"+��!�1���!B

/ $��+���1�I����������������������

- ��!"� (����������+����+�������!�1+>

����

Page 13: Innodb and XtraDB Architecture and Performance Optimization

#������&�1�2�!�+

- 9��!�!�1���!��+�����+�!���������8�

/ ����������$�,����+�!�����+����,��

- �������$�,���!!�0+���������!�1���!���!��3�+���

/ ������������������

- ���"������+��1������++�����1�+���!!���1�+��������!�11�����!�1���!�>

- ������� ���,�"���������,����������������!�1��

/ '���+���!"��+��!��1��!�1���!�+����������

Page 14: Innodb and XtraDB Architecture and Performance Optimization

$��1��9����1�������+

- ������������� ��

/ $����������!������+��0����!�7��!�+�����

- ��������� �� ���������

/ ()������� ����!�+����������+��������

- ����������������

- ����������������������

/ &�1���!�������1�����

- ��������������

/ �������$�,����!"

����

Page 15: Innodb and XtraDB Architecture and Performance Optimization

J+��1���2�!�����9��!�

- 9"����!!"��������,�����

- ��!����+������������������!�

- �������� ����!"#!��#!!$% �

/ ���������!��+������������0�+���!���

- $�������������!�+7�����+�+��������������,�+

- ���3��7 �+�����!�+������"����

- $�������������++���������������!�1��7����

- 4�!!��+������+�����0������"���!�+

- &��1�����!�����+������0������"���!�+

- �����������+�"����!!"�+���!�

��=�

Page 16: Innodb and XtraDB Architecture and Performance Optimization

����9��!��0���������K��!�K��K��!�

- ������1������!�+������+��)���+�,�������������������

/ ���1�+�+!�0�������������"�"�����,�

/ ��������������,����+�������������!��������,���!!���1�+

/ ���+������0��!����!���1����!��3���++����!!"��!��3��1�+�,�

/ $�����L77��1+>�"+.!>���7��1>���6��M=�;�=

- ��������������

/ ���������������� ����

/ ���������,���!��3+���������������+���"������!���������& J�!�+>

Page 17: Innodb and XtraDB Architecture and Performance Optimization

���!��1�0��� ����0�"���!�+����

- #����9��!�+��������+����+���3

/ '��+����+���1���)�+����

/ ��������� ������� &����� ��'�()'�� �� ��'���'�("

- ��������� �+��

- ()�����!�+�0��������3���

/ ����������������A�!���B�+�,�/ ��L77000>�"+.!����������!�1>���7���G7�C7�E7����++��!����++��!����,��1����������!�+�

��0����+�,�+7

��D�

Page 18: Innodb and XtraDB Architecture and Performance Optimization

�+����1�&�1�2�!�+

- N��������+���!"�����1��!�1���!��+��������">���

/ ������L�(�L�!�1���!��>7��K!�1��!����+������������+������=���EE���"�+

/ ������L�����+���������������>������!����=���EE����"�+O

- $���#"$%&�?��3��+������+��!����+����0@

- ������?����!��@���K!�1��!�P

- $��#"$%&�0�����0�!�1���!��+���1+

/ ��0�!!��������0�+�����!�1���!�+

��E�

Page 19: Innodb and XtraDB Architecture and Performance Optimization

�������9����+� �������

4�������+������������0�����"���

��G�

Page 20: Innodb and XtraDB Architecture and Performance Optimization

8����!�9����� �������

- J+��1�#"$%&�9����+�����)������

/ H���!!"������������������

- 9��+�������)����������!"��"�+��������

/ &�!�������������#�!��'������+��1!��.��"

- ������� &�����������������������+�����!��������������)�����1�����+

/ ��������������

- 9��+�!�����+��������������+����3���!

/ ���!����1�����+�����1���+3������+���1��������9#��9��!�>

����

Page 21: Innodb and XtraDB Architecture and Performance Optimization

5�!���9����+

- #����9����

/ $�����!�+����,���+�/��!�+�����1�������3��������+����������1�

- ���9����+

/ ����/���!��!������+��+����������������

/ 4���/���!��!������+��+���������31�����0��+

/ ��+��������������+��������+����������1�

/ &�1�9������+�������!�+���1����!�1

- ��1�������?#"$%&�=>=���������@

- ����!��3�������������>

- #������1�9����

����

Page 22: Innodb and XtraDB Architecture and Performance Optimization

#���"�5���!��1

5�0�������� !!����+�����#���1�+�#���"

����

Page 23: Innodb and XtraDB Architecture and Performance Optimization

�������#���"� !!������

- 9�3����!��3���*+$,�#!!$% �*���-*

/ �������+���������!+9��!�����"��!!�����������E�=��Q������������!����!��!!������������!���+����!�+�?���+��������R�,����!������@���� ����,����+������)��DE�;EGC��������?�DD��;E��R����=��@������1����+���������������D��E�����������"����������E�EG�C����������?���D;���R�;CC��=�@����2�!��+"+�����������E;=�����?E�CD��R�E�E@����&��3�+"+������������C=D=�����������?�C=D�DC�R�;CE@���� ���,�"�+"+���������������?��R��@����9����+���������������D��C��?��CG;C�R��E�@�������"�����"��!!������;CC��=����������!�+�����������C==;=���������!�+������"�+���D;D�=���2��������+������������C�=�=�����+����1�+���������������!�������+����1�+������;G;

��;�

Page 24: Innodb and XtraDB Architecture and Performance Optimization

#���"� !!���������+��+

- ���������!

/ $���"���������������������

/ �����+�������Q���+�������Q�&��3+

/ 9�3�+�#�������"�����+��������- ()��+���������������&����+��& J���

- �������!�#���"����!

/ �������"����������!!������+

/ ����������� ���������������- H���+��������0���!��+�+

- &�1������

/ �������������������

����

Page 25: Innodb and XtraDB Architecture and Performance Optimization

'����1���1��������#���"

- ����������������������+������+�������

/ J+���!!�"�������"����������������"���1��!+�

/ <�����,�����������������?S=T@

/ H�,��!�����������!�$0�����1���������

/ J����E��G�T��������"�������������!"�$"+��+

- �������������������

/ :�!��+�E�C�#��"����!!"���3��+��+�

/ &�1��,�!��+���"�����,����������

/ #�"�����������!�1������+��1�!�1���&��+

/ $����������������0���������!�1+

/ &�1���������,���1���+����+�1��������1�

��=�

Page 26: Innodb and XtraDB Architecture and Performance Optimization

(,��0�������0����+�������6

- '���3�����HH���K�J22( K���&KP���!�+

/ ,��!��!����������������������� ��������������������������������� !�"��#�"$% &���� '�()����� ��*����� �+��+,�-.//////////.//////////////.0��� ����0�������������0.//////////.//////////////.0�������12�0�����������,,�0.//////////.//////////////.����(�� �����2322����

Page 27: Innodb and XtraDB Architecture and Performance Optimization

�����������"�

- 5�!�+�����������������������9��!�+

/ $��+��+Q� �����������:�!����$"+������������

/ '�����������<�R������!�

- '������+������!���������"�0�����1�������������!�+

/ 9���3�������+�������+���+

- ���������� ��������

/ &�������+��������������$�,�

/ #�3��������+�����!������

��D�

Page 28: Innodb and XtraDB Architecture and Performance Optimization

��+3���

5�0�������������+���+3���

��E�

Page 29: Innodb and XtraDB Architecture and Performance Optimization

���+

- #�+����+�������"��)�����1�����+

- ���� ��������������"����31���������+

/ &����

/ �������?���,������!���,�+���+@

/ ��������������������������!��

- ��+����������1������++����+�+����+

��G�

Page 30: Innodb and XtraDB Architecture and Performance Optimization

4��+

- ����4��+�������31��������#�+���+�+

/ +�!��1��+�"��������!�+��������+�����1��"�����1���

- $"�������+��!�+��+���������������������������+��,��!��!�

- &�1�4��+������"�+"������+"�����������1��������������&����� � ��������

/ ��/��+"���!�1������+�����������

/ ��/��������!�+�>�2!�+����������31�����S�����7+��

/ ��/�2!�+�����$������������������!!��+"��?@- ����+�������#"$%&�'�+��+�����$�$�,�,�+�

�;��

Page 31: Innodb and XtraDB Architecture and Performance Optimization

2!�+��&�+�4��+

- 2!�+���1�����,�����A��!��+������"�&$HB

/ 9������!�1�+�����+�����������������

- #�+����0��+�"����!!"����������+�0�"�

- H����������1�+����!�+������"�!�����������������!���

/ A����������� �.����&���B

/ �������$�,����+������!�+���1�����+- $�������������� �.����&����� &���

- ���2!�+���1������3�������+�!!+�����������

Page 32: Innodb and XtraDB Architecture and Performance Optimization

()���!�����#�+����,��

- ������+��������"�����������������������+

/ N��0��������!�+��������+�����1�

- 4�3��1����+�!������������

Page 33: Innodb and XtraDB Architecture and Performance Optimization

& J�2!�+��+

- '�������������0�3!���+�0�������+�+�!�1����������"

- �����������+�����!����������!������1�������T����& J�!�+

- & J�2!�+��+������������+������+

- 5�����+����)������������+������������

/ ��������+�#�����������������������-����&�

Page 34: Innodb and XtraDB Architecture and Performance Optimization

#�1��1�H��1������1�+�

- 9����3���������$�.�����!��������0�!!�!��3�������1������1�+������!�+�������1���

/ ���+� &&�A�!�B���1�+���������1����)���"�?R��;����1�+@- �����+������,�������+�.�����!���1�������1�+

- $��������,�����"����,�"�����������

/ (+�����!!"����$$��0�������������,���������������!"

- �������+������

/ ����������&����&��������

/ 4�3��1�������������!�+��+�.�����!���1�+���!"

Page 35: Innodb and XtraDB Architecture and Performance Optimization

��1��'���3+��+

- ����������������������

/ �������0�����$���1+�����������1+�

/ ���������!��!"���!������"�2�!�+"+���'���3+��+

- '���3���0������1���+� ���������������!

- J������0������1���+��!�+��������+3

- '������+�1���������,�����

/ (+�����!!"����,�"���+�+��1�

- '��������+��!����"����������&�������(

/ H�� ����������������������

/ ���������� ��&�������������- H���������!������>�$�,��!����+���+�>

�;=�

Page 36: Innodb and XtraDB Architecture and Performance Optimization

����!��4��������

- �������!�1��.���+����+�+�����1�+�������,�"

- ��1��0�����"�����!�������!!"

/ J�����1��������C<�����!��,��1�����+�

- �����!��4����������+�+��������1��!�,�!�!�1

- 9�������++��+L

/ 4�����1�+�������!��0��������Q�$"��

/ 4�����1�+���������1���!�!������+Q�$"��

/ ��1�+����������!�+����K��R��1�K��

- �����+�����,�"���1�+�����������������������������1���!�!������

�;C�

Page 37: Innodb and XtraDB Architecture and Performance Optimization

��+��!��1�����!��4��

- �,������!�++������)�������+��0����+�+�.�����!

- �!��,�!"�!�1���,���������$$�Q�

/ !+�������+�2!�+��&�������

- '��������+��!������2$�1������+�������0��+

/ *2$�

- �����������/�� �(

�;D�

Page 38: Innodb and XtraDB Architecture and Performance Optimization

���������������

- �����!������������������������+� �����

- 8���

/ 2�+���!�+��+�0�������0��������

/ 2�+��0���������+�

/ ���������!��+�0���������!��3��1����(�9;

- ���

/ &�+����������,������������"�����������!���������1

/ �$�'��������!������+������������������

/ �����+���������"���+0��������������++��

- ����������&�� &���$�%#��0�

�;E�

Page 39: Innodb and XtraDB Architecture and Performance Optimization

&�1���

- &�1����������������������������

/ (,���0�������������&�� &���$�%#��0�

/ ����������+���K�� ('9����!�1+- ����������&�� &�������$�%#��0�

- 2!�+�����"��+"��?@��������!����K$NH'

- &�1+���������0��������!��3+�!�++������<

/ ������+����������������0��

- &�1+�0�������������������"�����,�����������

/ $��!!���+�����+���������������&����� � �������� ������1

�;G�

Page 40: Innodb and XtraDB Architecture and Performance Optimization

����)�+

5�0�����)�+�������!����������������

����

Page 41: Innodb and XtraDB Architecture and Performance Optimization

(,�"���1��+��������)

- ���������!�+����A����)��1������B

/ � �# N�3�"�������+�������+����������������

- 5������� �# N�<(N��+��+�����������������?C�@�

- �����+�A'!�+���B��"�� �# N�<(N

/ ����0����!�+���<�,�!����+�+�����!�+������������

/ '!�+���1��+�0�������1���H&N

- &��������H���&��������+��+��+������$�1���+

/ #�3�+��������+�.�����!����������+���+

- �������+"+�����!�+�$N$K9 �&($�����$N$K�H�(�($���!���������������������)�A��B�

����

Page 42: Innodb and XtraDB Architecture and Performance Optimization

����)�$����

- $������"�����)�+��������0+��"�����"�<�"

/ H���������������0�����0��+���,���������������1�

- &��1�����"�<�"+�����)���+�,�

/ �����+��+��������!!�����)�+

- ����������"�<�"���+�+�����)���+�,�

/ '��+����1��+�!�+Q�2�1�������

/ #�3����1��+�������!�������!�0

- ����������3�"+������������������������!�3�"+��JJ��+��$5 ����>

����

Page 43: Innodb and XtraDB Architecture and Performance Optimization

$N$K9 �&($�()���!�

- 9��!���������,��0����������L

���������������������������&4&�5$�# &�������2-.//////////./////////.//////////////////.//////.////////.///////.0�5$�# ����0�&67 8$��0��$8 �������������0��#$%�0���6�#&�0�&"$6 �0.//////////./////////.//////////////////.//////.////////.///////.0����������0���������0�&4&���! �%�������0����2�0������9�0�����2�00��������,�0���������0�&4&���! �%��6�#&�0����2�0������9�0�����2�00��������9�0�:��� ;�0��; �;�� ������0������0������<�0�����2�00�������,+�0��=����0��=��>">:2������0������0������9�0�����2�00�������,1�0��=����0��=��>">:�������0������0������9�0�����2�00�������,?�0��=����0��=��>">:,������0������0������9�0�����2�00�������,@�0��=����0��=��>">:+������0������0������9�0�����2�00��������<�0��;����0�;=��������������0������0������,�0�����2�00�������@,�0�������0�;����������������0���1��0������?�0�����,�00�������??�0�������0�=��������������0������0������?�0�����2�0.//////////./////////.//////////////////.//////.////////.///////.�2���(��� �����2322����

Page 44: Innodb and XtraDB Architecture and Performance Optimization

$N$K�H�(�($��)���!�

- ,��!��!������������

���������������������������&4&���� ' &�()����;=������,+-.//////////./////////.//////////.//////.//////////./////////.///////.0���� '����0��$8 ����0�5$�# ����0�54" �0����� #�&�0�"$% ����0�&"$6 �0.//////////./////////.//////////.//////.//////////./////////.///////.0�������+��0�"!�8$!4�0�������,+�0����+�0����������0���A<+2@�0�����2�00�������+,�0�B�������0�������,+�0����2�0����������0���A<+29�0�����2�0.//////////./////////.//////////.//////.//////////./////////.///////.,���(��� �����2322����

Page 45: Innodb and XtraDB Architecture and Performance Optimization

#������'!�+��������)

- � �# N�<(N�!��3��+���������+���������

/ $������"�3�"�!��3����+��++����!!"���3�"�!��3��+

/ ���������0��� ����,��5�+������)

- � �# N�<(N���1�+����,�"���������

/ ���!��$������3�����1�����������

/ ?�+�K�����++�1�K��@���"������������?��++�1�K��@

- '���1��1�� �# N�<(N��+��)���+�,�

/ (�����,�!"����,��1��0����������1���0����>

- $�.�����!���+�+�1�,����������!��+���1������+��1�

/ &9( �9 �&(��!M�HH���������������������

��=�

Page 46: Innodb and XtraDB Architecture and Performance Optimization

#����������)�+

- 9�����+��������)�����)������++���+

/ ����)����������)�!�1���������#"�$ #���!�

/ ���������+���1�������++���>�H�����+�������1>

- ����)�+����������+����������������M���

/ !!�0���+����0�,�+���!�"�M�����)���,���1�.����+

- $������"�<�"+����!��"���+����

/ �������+�������+��������M�����������

- ��������!�1���������������!���1��"�+�

/ 2�+�

/ ����)�+���,��1������1����!!�����

/ ����)�+���������1�����

��C�

Page 47: Innodb and XtraDB Architecture and Performance Optimization

2�1�������

- �����0���1�������

/ 9����0��+�!���+���1�����

/ 5�����+����#"�$ #����H�9����������

- �����0���1�������

/ $�.�����!�+��������0+��+����+�.�����!

/ 5�����+��������������+���������1��������"

- (��"�$�����2�1�������

/ �!��������"�+������������!�����0�����0+

- �������� ��� ���!"#!��#!!$%

/ 9�����!"�����������,��!��!�>

��D�

Page 48: Innodb and XtraDB Architecture and Performance Optimization

#�!��:�+�����1

���!������������#�!��:�+�����1�����&��3��1

��E�

Page 49: Innodb and XtraDB Architecture and Performance Optimization

#�!��:�+�����1���8!����

- #�!��!��,�+���+�����0��)�+������+�������

- ����9��+���������������!��,�+��������0��0��!�����+���������

/ H����������!��3��1

- &��3��1����+����������������0���$(&('9�2� �J�� 9(�����&�'<��H�$5 (�#��(�#������+

��G�

Page 50: Innodb and XtraDB Architecture and Performance Optimization

9��+�������+�!�����#���+

- $( � &�* �&(

/ &��3��1����+>��"��++���!��,�+�����1

- (�( 9 �&(� ( ���?�����!@

/ ��������������������0�+����+�������+�����

- ( ��'�##�9(�

/ ������������������+���0�+���+�����+������

- ( ��JH'�##�9(�

/ ���������������������+����+�����1��1�!�,�

�=��

Page 51: Innodb and XtraDB Architecture and Performance Optimization

J����+�����&��3��1� ���+

- J����+��"��++�#�!��:�+�����1

/ N���������!"������"��0�0���������!"��)�++

- &��3��1� �����"��++���!��,�+�����1

/ �+�!�����$(&('9�,+�$(&('9�>>�&�'<��H�$5 (�#��(�0�!!�����������

- &��3��1� ���+����+!�0�

/ �����+����"���,����+��!��3+

/ '�������)R�+!�0��O

/ $(&('9�2� �J�� 9(���+�!�1���,������

�=��

Page 52: Innodb and XtraDB Architecture and Performance Optimization

#�!��:�+�������!���������

- 9�����+�������0�,�+�����+�+������������1�

/ (,������������+��������

- ��,���+��0�,�+���+�+������������+����

/ &���������$"+�����!�+����

- 9������������,�+���+�+�����+����!�����

/ '������+��+"+�����!�+�����+�������)�!���>

- ���++����!��,�+���+��.����1���1����1��!��3���!�+

/ &��1���+�����+�0������"��������������+��������������������>

�=��

Page 53: Innodb and XtraDB Architecture and Performance Optimization

#�!��:�+�����1������!+

- (�����0������������+����+�

/ ��K9 �K����?C�@�/�9��+��������+���7��������0

/ ��K �&&K�9 ��?D�@�������������,���+�,�+���

/ $�1���������)��+��������+����0+�O

- ��!���������!����+�$�����!�J����

- ��K9 �K���R�!�+��������!"������1���+�����+��+��+���������3�0�����,�+�����+�,�+��!�

- ��+������J�����J����$�1���+

/ ��+�+���+�"����������+������0������+�����������+>

/ J�������+�"��+��+������#:''����!��������

�=;�

Page 54: Innodb and XtraDB Architecture and Performance Optimization

J����$�1����&���+

- J����$�1����0�+������!����������

- ��������!�1������������

/ #�)�����������+�1���+

/ #�"�������=������,����+�����+- 9��+��������"��.�����������+�1���+

- �����+���������������D�

- #"$%&�=>=������+�+�����+������E<

Page 55: Innodb and XtraDB Architecture and Performance Optimization

#�!��:�+�����1����������

- $����0+������+���������

/ 4��!���0+�?�)�!����1��&��+@����,�+�����

/ $��������!����+��������+��������3��+��+�

- ��0������!��1���+�����+

/ (+�����!!"���������1����"������+

- A �0+� ���B����������+!�����1

/ $��1!���0���"����+�������+������1����+�������,�+���+7����)�����+

�==�

Page 56: Innodb and XtraDB Architecture and Performance Optimization

#�!��:�+�����1�����)�+

- ����)�+�������������+����!!�,�+���+

/ ����)�3�"�=�0�!!���������!!��0+�0�����0���=���������+

- ����)�+��������9 �K��

/ (�+"�������3���"��+�,�+��!�

/ '����+��A'�,���1�����)�+B

- #��"��!��,�+���+��+��������������!��

/ $!�0���0������++�+

/ 4�!!�!��,�����"�A��!�+B������1�+�0������1����

�=C�

Page 57: Innodb and XtraDB Architecture and Performance Optimization

'!�����1�������8���1�

- �!�� �0���������)�����+��������������,��

/ 4������"�������������������"����,����+�����

- (�( 9 �&(� ( �

/ H�����������!���������,�"���1�����+������+�

- ( ��'�##�9(�

/ H�����������,�"���1���+������+�

- ��1��9�������"��������!����3�������0�������+�,�������+

/ �������A5�+�"�&��1�B�0�!!�1�0���1�

- ���������������������+!�0+������+���0�

/ H��,�"��!���!�

�=D�

Page 58: Innodb and XtraDB Architecture and Performance Optimization

5���!��1��!��+

- �!��+��������!���+�����!!"��"�������

/ ����������!"��"���������,�+���+

- $��!!��!��+

/ 4��!���0���+����SE�����"�+�+������������1�

- &�1���!��+

/ '������+������!!�����)���!���1�+�?�������@

/ '������+��������!!"�����)���!���1�- 2�+�DCE��"�+����+������������1���? ��!���@

- �������0�!!�H�9������!��+���!�++���"������������"����.��"

/ H�����������,���&��+���+��������!�>

�=E�

Page 59: Innodb and XtraDB Architecture and Performance Optimization

��������&�8�OM�#"$%&��&�8

- #"$%&�5�+�!�������C==;=��"�+�����0��)�!����1��&�������9(�9���!���

/ 9��+�!�������!��+���: '5 ?@���!���+

- �������!�����+���!"�E����?��!������1�@

/ $��!��1�: '5 ����!�+���"����+�����+����&�����+����������

���������;��;=���;���C;�);��12222�����C;�);��12222��- !!�!����<��1,222�D�!�(���E������;�F�3�5)���;*�������(���E������)�������;=����:��� ���� � F��#��������@??+?3�4���);C����); F����������� ����5 '5�����#���

Page 60: Innodb and XtraDB Architecture and Performance Optimization

�!��� !!������

- (�����&���$�������+������+�1���

/ H���!��!!��������!�+����!">��"���1��0�����"��)��

/ ����!�1���&����+���+������+�,��!�����������+

/ #��"��&��+��������+���)����0�+��- =����"���!��+�0�!!��.������!!��C<���1����������+�������0����0

- ()���!��&��+����H�9������������!���

/ ��������!0�"+�����+������0�,�+���

- &�1��: '5 79(�9��������!���+�����+��&��

�C��

Page 61: Innodb and XtraDB Architecture and Performance Optimization

�������&��3��1

5�0��������&��3��1�4�3+

�C��

Page 62: Innodb and XtraDB Architecture and Performance Optimization

�������&��3��1���+��+

- ��++���+���&��3��1�$��1"

- 8������+�������!��3��������

/ 9�3�+�+��������,�"�!�1��!��3�1���+

- �0�&�,�!�!��3�0��������

/ �����������/�� � ����

- 9�������!�A$B�����A�B�!��3+�

- ��������!��3+������!�+��A�$B�A��B

/ �+����1���!���������+

- &��3+���� �0+� H������)� ����+

- H��&��3��+��!�����

�C��

Page 63: Innodb and XtraDB Architecture and Performance Optimization

8���&��3+

- ����������+������!"�!��3+��0+�����!+��1�����0�������

- H������������+�+������+����&��3��1�����

/ !+���+����"�������+�����+

- ���������+����������+��,������'��+�+��� ���+

- 8���!��3+���������+������!�)�����!��3�+������+

- A�������B��A+������B�����+�������������+��������+������������1�

/ #�"�������+�����������!��0+�+���

- ��!"������!��3��+������������<�J����

�C;�

Page 64: Innodb and XtraDB Architecture and Performance Optimization

9"��+����&��3+����������

- H�)�<�"�&��3

/ &��3�<�"�����1������������3�"

- 8���&��3

/ &��3�F�+����1������������3�"

- �������!"�&��3

/ &��3��������!"

- ��+����������1���!��3+

/ 5�!��0����0����1�����+���������1���

�C��

Page 65: Innodb and XtraDB Architecture and Performance Optimization

�,������8���&��3+�$���

- 8��+���������1������0���!����

/ ���!!"�0������1����������,�+�����

- &��,��1�����!����1�8���!��3+���!�

- 8���&��3+����A���!"��������,�B

/ ��!"��!��3���+����>�

/ 5�!���1�!��3����+�����!!�0���+����>�#�+��!+��0����������!����1�!��3+�������!��+��

- A+������B������������,��!��3��A�������B�����

- 9��+��+��!!���"�����!����������"�����!"�����������������

�C=�

Page 66: Innodb and XtraDB Architecture and Performance Optimization

&��3�$��1�

- �������!��3+�+��1���+���"�������

/ 9��+��+�0�"������+����!��3��+��!�����O

- &��3�+������������������+����!��3�!������

/ &��3��1�+��+���0+��+������)���+�,��

- (������1����,��1�!��3+�1�+��������!!����������

/ ��������!�+�!��3���������������!!�����+���������1�

- &��3+�"����!!"��3��;�E���+����!��3����0

�CC�

Page 67: Innodb and XtraDB Architecture and Performance Optimization

�����������&��3+

- #�F��'���1�+����#"$%&�=>��O

- #"$%&�=>�����������

/ 9��!��!�,�!� J9�K�H'�!��3���������������H$( 9

/ (,�������H$( 9���,�����3�"�,�!���O

/ $����+���!����3��������������+�+

- #"$%&�=>������!��

/ ��������� �������������2�+��!��3�����,��

/ A�B�������+������!��!��3����+���!����+�+

/ A�B�������+������!��!��3������"���+�>- ���!"�0�3+�0��� �0�!�,�!���!������

�CD�

Page 68: Innodb and XtraDB Architecture and Performance Optimization

&�����1

������������!�&��3+

�CE�

Page 69: Innodb and XtraDB Architecture and Performance Optimization

�������&�����1

- ����������!����+��+��0��#��)�+����� 4�&��3+

/ 2����+�����"������!"����������

- &�����1�+�+�+��0�����$5�4��HH����$9 9J$����������������������$(# �5� ($�����������������������$�4 �9� N��H2�L��+�,�����������;=CG��+�1��!�������������������9�������=��D�;;C���+�0�������>7>>7���!���7�������>���!����C;������>���+�����+����+�������L������#��)����)��G=DE=E�E���������!���������>��!����=�D��!��3�,���������0���+��!�1��������0����+������1��������9��������DD�GDG����+�0�������>7>>7���!���7�������>���!����C;������>���+�����+����+�������L������#��)����)��G=DE=E�E���������!���������>��!����=�D��!��3�,���������0���+��!�1��������0����+������1������#��)�+����0��+�=CD����������+�;EGGEEE���$�0��+��D�G������ 4�+�����+���+�=G�����$�0��+��G�EQ� 4��)�!�+���+�;�C;���$�0��+�;�C;

�CG�

Page 70: Innodb and XtraDB Architecture and Performance Optimization

&�����1����������

- 4�+�����,��1��,�����"��+

- $�!!��+����!������������0�3!���+

/ 8�������,����+����#"$%&�=>=�U�����

/ $�!!���+��+�������

- ������� &��������������

/ &�����1���������"�������������������

/ �������+��������������+��0�

- ���������������������

/ 9����$������1��������)�+0�����1

/ 9"����!!"�!��������������������

�D��

Page 71: Innodb and XtraDB Architecture and Performance Optimization

'����5�+��+

- 3���!K���)

/ �!������������+��+��1!���!�3���!����)

- !�1K���)

/ 4���1����������!�1������

- ����)�V!��3

/ &��3���!���������������!�0�!�,�!�����)������������

/ '������+����+����+���������,"�0���0�3!���+

- ����,����+�!���

/ 8!���!�!���>����!���0������,"����70�����)

/ ����������� �.�&��&������(- $!�0����1+���0�������������������

�D��

Page 72: Innodb and XtraDB Architecture and Performance Optimization

����� ���,����+

- #"$%&�=>=�+����������!��!�����������!+

/ �������������������� �����3

/ �����+���!��������������!��!�������������

/ #�3��+�����������������!��+���!��+��8�����+���

- ��������� ����,������)�������������

/ ����������� �.�&��&��������� � �����3

Page 73: Innodb and XtraDB Architecture and Performance Optimization

��1�� ��!�������

��1�� ��!�������2!�+���1�����'���3������1

�D;�

Page 74: Innodb and XtraDB Architecture and Performance Optimization

��+�����1�� ��!������

- ��������+�+�& J������1����!������

/ 4���#���������+����

- ��������!�1�����������������1��

/ ������������������ 4����������������� ���

/ ����+�$�����+�+���������!�1����!!���!��+���+

- $����& J�9��!���������!�����!��3������!������

- #�"�+�����!��+"�������+��!�+���������!������1�+������!�������

�D��

Page 75: Innodb and XtraDB Architecture and Performance Optimization

��1��2!�+���1

- $�����!����"�#����9�����������31����

/ <������������������1�+��!���

/ #�3��+���0����,��!�1�+����

- ���������������� �

/ ��������0��+����+������+�,���������

/ ����+�������������31������!�+��+�������+����������1�+��?=T��������@

- $�,��0�!!������1�+������!�+��+���+��0�������+���!�

�D=�

Page 76: Innodb and XtraDB Architecture and Performance Optimization

#��������1��!������1�+

- �������������� ���������

/ �����!�G���!���D=

- �������0�!!�+���!�+���1���1�+���+��������+�������

/ 9��+��+�����������!���

- :�!�������+���!���!����2�+�$����0�

/ $����������0������!������������"���1�+��+�!�0

- �������!��3+������)7��,���"���1�+������!�+��+����+�0�!!���3�������������!3"

/ '�����������!����$$��+��1�

/ '���!����"�����������&����&����������������

�DC�

Page 77: Innodb and XtraDB Architecture and Performance Optimization

'���3������1

- 2���"�'���3������1

/ 2!�+����0���1�+�����,������������!�+����&$H

/ 2!�+��&�+��+����������������+����

- #"$%&�=>���������+�A������+B�

/ H������+�����!������!�1���!�+>�H������0�������!�+��������!��

- ������������+����=>����������

/ ����,������3������1L������������� �.��&������

- ��������!�1�������������� �.����&���

/ ��+�����,���������+����0�!���

�DD�

Page 78: Innodb and XtraDB Architecture and Performance Optimization

���,�"

5�0�������� ���,�+�����'�+�

�DE�

Page 79: Innodb and XtraDB Architecture and Performance Optimization

���,�"�$�1�+

- ��"+���!� ���,�"

/ ���,������!!"�0������1�+���������!��0��������

- ���� ���,�"

/ �����!!��������1�+�+���������+������!�!�1+

- J���� ���,�"

/ �!!����3��������������+�����+

�DG�

Page 80: Innodb and XtraDB Architecture and Performance Optimization

���� ���,�"

- 2��1����

/ $�,���+����+�������!����+�����!��

- &�1��&�1+�M�&��1�����,�"����

/ 9���1���0�+���+�������+��+�����0�3!�����!+�����

- �$����&�1���!�+

/ �����������������+���������1����+��+

/ ��!"������������+���������!�

- &$H�+������������1���!!+��������1������+���������!�����

�E��

Page 81: Innodb and XtraDB Architecture and Performance Optimization

9����1� �������,�"

- ��������������������!�1��!�1+�!��1�����,�"

- �������������� ��������� �

/ 2�0����"���1�+���+�����,�"

- ��������������������

/ &�1����������+��������,�"

/ ��1��������D�0�������3�+����,�"�+!�0��0���!�1�����������!- ��L77��1+>�"+.!>���7��1>���6��M�GE�D

/ 2�)��������������!�1����#"$%&�=>=

/ $�!������)�++����������������+����=>�

�E��

Page 82: Innodb and XtraDB Architecture and Performance Optimization

J���� ���,�"

- �+����31�����+�����#"$%&�=>�

/ ������������#"$%&��+�+���

- $�����������+������+������!��1�

/ :�"�!�1��J�� 9(���H$( 9>>>�$(&('9��+����!��>

- �+�H�9����!���0��� &9( �9 �&(

/ '����+��,�"��������0+����,������+����!��

/ J�!�++����+������������!�

- 2�+��0���!�1������������������

- ��������!�3�!!��1�#"$%&�0�������0�"�������.����+>

�E��

Page 83: Innodb and XtraDB Architecture and Performance Optimization

�,������2����+

��+���������1�� ����,��5�+������)��2���1��<�"+��'����++���

�E;�

Page 84: Innodb and XtraDB Architecture and Performance Optimization

��+�������

- ��+�1������+����������+�+�����!�1������)�+

/ ������������=����+���������������+������+�+

- 4�3+����H���J��.���$������"�����)�+���!"

- ���!��������)���1���+����������������!

/ $��������������1��+���!�������������������"

- �����1����������1�������������+��+�����������+3���"������1�����+����!"

- ������������+�1����!���+����������1�+�������31����

�E��

Page 85: Innodb and XtraDB Architecture and Performance Optimization

'���1�����������#"$%&�=>=

- �����������!"���+������!+��J�����������1���������+

/ ��!����+���,�����+����+�+�����!�������������!�0�!�,�!

- '�������,����!3������7��!�����)������

- ���������������!+

/ ��L77�!�1+>������>���70�7����7�G7�"+.!�=�=������������1���������17

Page 86: Innodb and XtraDB Architecture and Performance Optimization

��+�����������!��+

- '����3���������!��������������!�+���

/ ��+�++������!�+�������3�������1+�+���

/ �������������������������������+����

/ 2�!!���+���������+��+�!�++�����0�+�+�����"

- ��!�"�����+����������1���������+��+!�0��0�

/ 9������"���1�+��������������������1�����+

- ���31�������1��+�������"�����������1�

/ 9�����"����������������� ���������������������

- ��� �+��#�1��+���������+!�0���0�

/ 2�����1�����)�����+�����1������+���������

�EC�

Page 87: Innodb and XtraDB Architecture and Performance Optimization

#�������1������+�������

- ��������!�1���������"���������+��!����+���������1

/ ��������&�������������(

/ '������1�������$$�+

�ED�

Page 88: Innodb and XtraDB Architecture and Performance Optimization

����,��5�+������)

- ���!�����������)�+��1��9 ((�����)�+���+��������!��3��+

/ ����� �# N�����$������"�����)�+

- '���������!������!!�����)���������)�+

- ����!�����)

/ ��!"����!��������)�,�!��+�0������������++�������

5�+����!��+����EE=��ED���+�����!!+��;E�;�E��������������+���G�������?+@���E>�D���+��+�����+7+���D=>�=�������+��+�����+7+

�EE�

Page 89: Innodb and XtraDB Architecture and Performance Optimization

9����1� ����,��5�+������)

- $�!������1

/ H������1������+�����,��!��!�>

- '��������+��!������������������+��+

/ ����������� �.�&��&�����

/ ����,�+���������"���������+����������

- '��������������������0�������,�+���+

/ ����������� �.�&��&��������� � �����3

�EG�

Page 90: Innodb and XtraDB Architecture and Performance Optimization

2���1��<�"+

- ���!�����������������!�,�!�

- �.��������)�+����������!�+

/ '������,�"��)���+�,��+������+

- '���3+��������0�����0��+���������

/ H����!�"�������3+��!!���+�����������

- 2���1��<�"+�����������������!�!��3��1��,�����

/ #��"���3"�����!��3�+������+��������1��3�"��!���

�G��

Page 91: Innodb and XtraDB Architecture and Performance Optimization

'����++���

- H�0������������!�1�����������

/ �.���+�A�������B������������������ ����

- �����1�������++����?��+!"@

- J+�+��!�����������++�����?���+���1+��,��!��!�@

- J+�+�����"���3+

/ �����1��������!�1����,�����������++���

/ ����'����++�������J������++�����1���������+����������������!

- �$,�5$�)���0$)6��**�%�7�8� �$07�*#9��3:

/ (+�������0�0�!!��������0�!!������++

�G��

Page 92: Innodb and XtraDB Architecture and Performance Optimization

���!��+�0���'����++���

- 2�!�+"+���!�,�!������++������"����������������

/ *2$

- ��1��+�����+����+��!!����1���������++���

- 5�,����A8��++B�'����++���

- '����++����+���1��+������!�

/ 9���1��+��������)�+������++������������+

- 7�8� �$07�*#9���;:

/ ��!"������++��)���!!"�+�����&��+

/ '���������+����0������,������

�G��

Page 93: Innodb and XtraDB Architecture and Performance Optimization

2�+�4����

- 4����������3��,�"�!��1���������+�

/ (+�����!!"�0���!�1�������+��������"

- �����������+��

/ ������K!�K����M;��

/ �����!�+������1�+����& J�!�+

/ 4�!!�������!������������!�0���!�+�����+�

/ '�������,��0�����������)�

Page 94: Innodb and XtraDB Architecture and Performance Optimization

� �

6��������.4�)���1;4�!/�8���

000>������>���7!�,�

Page 95: Innodb and XtraDB Architecture and Performance Optimization

����������� ��� ������ ������ �������������

9���3+����'����1

- %��+���+�6�2�!!�0���6

/ ��W������>���

- N�+��0�����)�*<������,��*������0���� ���

/ ��L77000>������>���

- '���3����������3

/ '���!����0�������+�������

�G=��G=�