143
!" "

PDF Canonical Header

Embed Size (px)

DESCRIPTION

PDF Canonical Header

Citation preview

  • !"

    "

  • #

    !"#

    $%'()*''

    #

  • $%!&

  • '%!&&(

    +#,#-$.'/0&!##-$

    #-$.'1&2 0!3!""""!!3#-$

    0!30#-$..

    0!3..

    '

  • )%!&&

    435 "!+!6&33&3#"&33,..#/

    .."33!"

    ..''6.''*6

  • *+,-!

    #""""#2&!7 #""""#2&!7

    "33#

    !3"!!

  • .%/

    81!"#&&

    9:

    ;0 "#"

  • 0%/123

    =""&"&0&

    & "3332#""&>3*!&>3'

    0

  • 45&

    0""!=03"&"?"3!&

    3,0"/ @!!A& !6# &33

    4

  • 6

    5&13

    !6!!

    !!6

    "

    B&

    6

  • 7

    #3!""! SHOW ENGINE INNODB STATUS; SHOW ENGINE INNODB MUTEX; information_schema&,.'/ ?#,/

  • #

    589(:;:(::8%%

  • $

    123

    mysql> SHOW ENGINE INNODB STATUS\G*************************** 1. row *************************** Type: InnoDB Name: Status: =====================================100618 16:25:26 INNODB MONITOR OUTPUT=====================================Per second averages calculated from the last 4 seconds

    +=&>$62

  • '

    123

    ------------------------LATEST DETECTED DEADLOCK------------------------060717 4:16:48*** (1) TRANSACTION:TRANSACTION 0 42313619, ACTIVE 49 sec, process no 10099, OS thread id 3771312starting index readmysql tables in use 1, locked 1LOCK WAIT 3 lock struct(s), heap size 320MySQL thread id 30898, query id 100626 localhost root Updatingupdate iz set pad='a' where i=2*** (1) WAITING FOR THIS LOCK TO BE GRANTED:RECORD LOCKS space id 0 page no 16403 n bits 72 index `PRIMARY` of table `test/iz` trx id 0 42313619 lock_mode X locks rec but not gap waitingRecord lock, heap no 5 PHYSICAL RECORD: n_fields 4; compact format; info bits 0 0: len 4; hex 80000002; asc ;; 1: len 6; hex 00000285a78f; asc ;; 2: len7; hex 00000040150110; asc @ ;; 3: len 10; hex 61202020202020202020; asc a ;;

    '

    % &2?!! !?>= &=2

  • )

    123

    ..------------TRANSACTIONS------------Trx id counter 0 80157601Purge done for trx's n:o

  • 123

    ..------------TRANSACTIONS------------Trx id counter 0 80157601Purge done for trx's n:o

  • .

    123

    ..------------TRANSACTIONS------------Trx id counter 0 80157601Purge done for trx's n:o

  • 0

    8!

  • ?!C2

  • #6

    "# 8#"3!

    # 8!!""!"!"C

    =,3!/

    ""!!"""!3

    #6

  • #

    A:?=B

    L1 cache reference 0.5 nsBranch mispredict 5 nsL2 cache reference 7 nsMutex lock/unlock 25 nsMain memory reference 100 nsCompress 1K bytes with Zippy 3,000 nsSend 2K bytes over 1 Gbps network 20,000 nsRead 1 MB sequentially from memory 250,000 nsRound trip within same datacenter 500,000 nsDisk seek 10,000,000 nsRead 1 MB sequentially from disk 20,000,000 nsSend packet CA->Netherlands->CA 150,000,000 ns

    "!"**2@>?&2?**.)04*2?;&!"**222*!D*#664*=*>=>#6642!

  • ##

    =2

    '*******D'*"D'**E! &3F)**=!

    "!",G*)"2G)*"/ &!" 83?#!"#

    ##

  • #$

    E F(& G

    8#31H#"7

    #$

    =46'#66)2

    =')46#66

    9!! !H

  • #'

    %8!G

    I"3#

    SynopsisIJ2K 1 3L 1 3L

    Descript ion 13 1M M3? > 122? !& 3 ! =1!?&3 2%=! ?!2 ? ? 11#332

    Hint:++D8 2

    !"**=2&**&*#664*6$*)*> >> *

  • #)

    N&"

    0#!!!"H ,3#/##"1&33!&0" !0""

    #)

  • #

    8!15&3

    SELECT * FROM CityWHERE CountryCode=AUS

    %!

  • #.

    8!15&3

    SELECT * FROM CityWHERE CountryCode=AUS

    %!

  • #0

    8!15&3

    SELECT * FROM CityWHERE CountryCode=AUS

    %!

  • #4

    8!15&3

    SELECT * FROM CityWHERE CountryCode=AUS

    %!

  • $6

    8!123

    UPDATE City SET name = 'Morgansville'

    WHERE name = 'Brisbane' AND CountryCode='AUS'

    666

    %!

  • $

    8!123

    COMMIT;

    %!

  • $#

    8!123

    COMMIT;

    %!

  • $$

    8!123

    666

    %!

    =&&1OO=!3

  • $'

    8!123

    666

    %!

    =&&1OO=!3

  • $)

    9&!&H

    " 5 3H?!"!

    H3!&&" !

    !!!

    $)

    ?&! 2

  • $

    +&222

    $#!!# 4!!!!#5

    3!&!2!

    $!$4,?"&/

    $

    ::

    :

  • $.

    &=!2

    !"#7 H!9=!$:

    &!3#!#"#3!9:

    0

    $.

  • $0

    &9&

    Jinnodb_log_file_size09":&!H3

    H##!innodb_log_files_in_group#333innodb_log_file_sizeKinnodb_log_files_in_group

    $0

  • $4

    &9&123

    Jinnodb_flush_log_at_trx_commit*)!!?"3 =?32#3#"&5

    innodb_log_buffer_size"#&333&3 @#!!!2!&"33&L

  • '6

    -1?! 3

    8#3!3!&!3"!$4

    !#3!!"#!"!#"! 83!#!$4

    '6

  • '

    9/& OH

    1!33&3"!#"2"#!!#

    ""9')M3#'*":

    '

  • '#

    9H

    #7

    '#

    &&

  • '$

    %?::8%% 2

    !"**2?C! ?&2?*#660**#*>>>>&>>&> >O*

  • ''

    C=,

    8!2""!!#""!!C

    ''

  • ')

    C=,

    8!2""!!#""!!C

    ')

  • '

    C=,123

    01"#""""!3#C

    J!0+40H3"&&!

    '

  • '.

    ((%1?3

    P**2

    Log Buffer (in memory)

    Tablespace (on disk)

    P*

    Log f iles (on disk)

    P*Q& 6P*Q& 6& 2

    Buffer Pool (in memory)

    - >!>123

    %3"!&"&" [Con] !!3! [Con]%3#""#3""##P",3&322&/

    [Con]"!# %6"'**T&6""

    [Pro]8&6N!H>0=L#!#3"

    43633#"

    '

  • )

    &!&7 &! 01!!# +!3" 0&&33 &33

    )

  • 0

    (@!&&

    &?

    %!

    &?

    (@ (@

    (@ (@

    &? (@1'!&3

    (@ (@

    &!6"K

    innodb_autoextend_increment,&6!&"/"!6

    R:@2(@?!?& 2

  • 4

    (@!&&123

    L#3'(TK !""7

    R &!&1?3W2

    -

    -

    -

    -

    - -

    HEADER

    TRAILER

  • .6

    (@!&&123

    $%%

    & 3"# " $?4"& 3$?"&3!!

    $%%

    & P!3$4! !!",&/

    .6

  • .

    8 "!&=?

    !3330 H!3"&33!!

    H30#K

    "!!&! 9!&:3H

    9%":&

  • .#

    9==H

    Transact ion ID

    Roll Pointers

    Field Pointers

    I

    I#

    I$

    L63"!33& .*H3"!!24+$$!"33#

    "37 30 3!3+40H

  • .$

    >K->K&

    3!!263&9:

    =& 0''"3K

    .$ R%& ?! ?2

  • .'

    *&%@&

    @=B=EL

  • .)

    *&%@123

    9"&&: 83GM***&&

    #!

    9$&&: %F(M!""!!3,/,/

    8&!36)*3,!/

    .)

  • .

    9& ==H

    !.')! 3!"2R!&"! 0U0UH33U#!

    .

    !X&&?2

    !62&!&?!2

  • ..

    9

  • .0

    +?

    """#!!0&33 03!& $3" !B!6 -$" !

    .0

  • .4

    +?

    3&"&!&H""3"7 0innodb_use_sys_malloc,!37'/!&!!""#

    8#&2innodb_additional_mem_pool_size!3#3

    .4

  • 06

    3!--innodb-buffer-pool-size "302&3#,!!6!&33/ J"#&!"&33!!5

    06

  • 0

    123

    =""!! 9&.*2M*S3""#:& [Warning]!#"!!.2'*S"3

    [Warning]""#-$##H2#

    0!"**2?C! ?&2?*#66*60*#$*>??>>?>>!*

  • 0#

    8&

    6""3&33!#7

    innodb_max_pct_dirty_pages = N,!37O*F./ J!!3#!#3?#!&!#&"!3

    ###&!!3!!#

    0#

    !&*W=QQ!S:

  • 0$

    8&123

    innodb_log_buffer_size = N,!3'EM/ 3&33&3

    SHOW GLOBAL STATUS LIKE innodb_log_waits2!"&3"&333!!!#3! 03"#3+##L

  • 0'

    =&

    $!3!3 +0LE0L$LL?!6! #"#6"#&! !!3"!0#"&!

    0'

  • 0)

    +=&

    ""#3#"#&3"7 B=L0,/=L0$HT L

  • 0

    @

    L#0!67 0!!!6 !"##&3"##3?#!K

    H!6!!#!6

    0 R C==2

  • 0.

    %#!K7

    9@H

    :?

    1 Peter

    2 Vadim

    7 Morgan

    4 Justin

    5 Baron

    .. ..A&B&22

    ? 2

    Staff.MYD

    0

    '

    #

    $ ) . 4 $ )

    6 '

    #

    Staff.MYI

    R&>%

    % ?!

  • 00

    #"##"7

    9@123

    :?

    1 Peter

    2 Vadim

    7 Morgan

    4 Justin

    5 Baron

    .. ..

    Staff.MYD

    0

    '

    #

    $ ) . 4 $ )

    6 '

    #

    Staff.MYI

    (

  • 04

    0"#T#7

    9@123

    Staff.ibd

    R&X%% ?!2

    # 6@

    # 6@

    ) 22$ 22 22 22

    # 6@

    ' 6@

    6@ 6 6@ ' 6@

    $ 22 ) 22 . 22 4 22

    %@ the full row2

    # 7?222222!2

  • 46

    !##7

    9@123

    # 6@

    # 6@

    ) 22$ 22 22 22

    # 6@

    ' 6@

    6@ 6 6@ ' 6@

    $ 22 ) 22 . 22 4 22

    0

    '

    #

    $ ) . 4 $ )

    6 '

    #

    department_number

    . $

    . '

  • 4

    @123

    !"?7 "###3 !!323!!3"

    !#!6&"#3#"##

    4

  • 4#

    @123

    ""7 01;+030&5 4#2&"##!6!3"!6!62

    !#!!33

    4#

  • 4$

    !5

    !#!60Q %#!!#!6 #"##!6

    !) 0"!6%?#!!2""#&

    &!!6

    4$

  • 4'

    !5123

    # 6@

    # 6@

    ) 22$ 22 22 22

    # 6@

    ' 6@

    6@ 6 6@ ' 6@

    $ 22 ) 22 . 22 4 22

    0

    '

    #

    $ ) . 4 $ )

    6 '

    #

    extension_number

    !

    @2

    !

  • 4)

    !5123

    4"#7 -------------------------------------INSERT BUFFER AND ADAPTIVE HASH INDEX-------------------------------------..Hash table size 31874747, node heap has 9526 buffer(s)25448.49 hash searches/s, 54424.21 non-hash searches/s

    4)

    5?!2

    :? !&=!2224)#S#+

  • 4

    *&

    @#332?!#!6 =!!"H!#!6!3&33

    3"!? 0''U,#-$../&33!#!634L=E+0LE0L$LLR4L=E$H00

    4

  • 4.

    & 123

    !!6R22"3!!!&332 L#32!

    4.

  • 40

    =

    +

    %! ? &??2

  • 44

    43&&20 'E)&331""#5

    #!&0 !?!!3"&!"H!3

    33"#&&

    44

  • 66

    .'!7 -------------------------------------INSERT BUFFER AND ADAPTIVE HASH INDEX-------------------------------------Ibuf: size 1, free list len 16829, seg size 16831,0 inserts, 0 merged recs, 1 merges..

    66

    O ?? !&222!&SN

    %? ! 20$!&S##+2

    %? !20#4!&S##+2

  • 6

    123

    .'!7 -------------------------------------INSERT BUFFER AND ADAPTIVE HASH INDEX-------------------------------------Ibuf: size 1, free list len 16829, seg size 16831,0 inserts, 0 merged recs, 1 merges..

    6

    :? !2

    5??&2

    A?&B

    ?&!8!2

  • 6#

    9

    &9!&:

    3"&!3#E %#"R"!&!&&"

    6#

  • 6$

    ?!?

    !&2)!3) )6(P

    8&33 !0##3"!

    !!##!!K

    6$ R+!&W2

  • 60

    9 123

    8!#!&!&&33C

    '3#"%""#!!&

    60

  • 64

    9

    0&&33"3&!'& 3"&"""!"!#!E"!!"H#,0/

  • 6

    !&

    *&+'

    6#4 "!"**2?C! ?&2?*#660**$*!>=!&*

  • !&123

    893:0!3!#!&!#! "1#"3&!3!#5

    #!3&!"!)**H

  • #

    !&123

    !32&!""EH"&7 4&!!3&!&!!&>!>3D*

    36

  • $

    !-

  • '

    -!>&>,!3NF/ !&>!>&>",!3*/

    H!&"3"""2#!!3$=+ #&

    3"?!

    '

  • )

    " 0! %T# %EH 33!!B $ 33!"# =H

    )

  • ----------SEMAPHORES----------OS WAIT ARRAY INFO: reservation count 996617, signal count 628914--Thread 1397500240 has waited at ../../storage/innobase/include/log0log.ic line 322 for 0.0000 seconds the semaphore:Mutex at 0x19a112f0 created file log/log0log.c line 746, lock var 0waiters flag 0--Thread 1403357520 has waited at ../../storage/innobase/include/log0log.ic line 322 for 0.0000 seconds the semaphore:Mutex at 0x19a112f0 created file log/log0log.c line 746, lock var 0waiters flag 0--Thread 1399363920 has waited at ../../storage/innobase/include/log0log.ic line 322 for 0.0000 seconds the semaphore:Mutex at 0x19a112f0 created file log/log0log.c line 746, lock var 0waiters flag 0--Thread 1396967760 has waited at ../../storage/innobase/include/log0log.ic line 322 for 0.0000 seconds the semaphore:Mutex at 0x19a112f0 created file log/log0log.c line 746, lock var 0waiters flag 0--Thread 1400961360 has waited at ../../storage/innobase/include/log0log.ic line 322 for 0.0000 seconds the semaphore:Mutex at 0x19a112f0 created file log/log0log.c line 746, lock var 0waiters flag 0--Thread 1401760080 has waited at btr/btr0cur.c line 442 for 0.0000 seconds the semaphore:S-lock on RW-latch at 0x19d2fc60 created in file dict/dict0dict.c line 1635number of readers 0, waiters flag 0, lock_word: 100000Last time read locked in file btr/btr0cur.c line 442Last time write locked in file btr/btr0cur.c line 435Mutex spin waits 4126944, rounds 24444227, OS waits 265505RW-shared spins 566249, OS waits 598523; RW-excl spins 91973, OS waits 44173Spin rounds per wait: 5.92 mutex, 25.80 RW-shared, 39.81 RW-excl

  • .

    3!3!H9Mutex spin waits 5672442, rounds 3899888, OS waits 4719: &+ H8?6&

    3H?!!! 9&*:"&! 96*:&" 9&3*&3:"&33"6

    .

    ?!

  • 0

    ..------------------------LATEST DETECTED DEADLOCK------------------------060717 4:16:48*** (1) TRANSACTION:TRANSACTION 0 42313619, ACTIVE 49 sec, process no 10099, OS thread id 3771312starting index readmysql tables in use 1, locked 1LOCK WAIT 3 lock struct(s), heap size 320MySQL thread id 30898, query id 100626 localhost root Updatingupdate iz set pad='a' where i=2*** (1) WAITING FOR THIS LOCK TO BE GRANTED:RECORD LOCKS space id 0 page no 16403 n bits 72 index `PRIMARY` of table `test/iz` trx id 0 42313619 lock_mode X locks rec but not gap waitingRecord lock, heap no 5 PHYSICAL RECORD: n_fields 4; compact format; info bits 0 0: len 4; hex 80000002; asc ;; 1: len 6; hex 00000285a78f; asc ;; 2: len7; hex 00000040150110; asc @ ;; 3: len 10; hex 61202020202020202020; asc a ;;

    0

  • 4

    ..*** (2) TRANSACTION:TRANSACTION 0 42313620, ACTIVE 24 sec, process no 10099, OS thread id 4078512starting index read, thread declared inside InnoDB 500mysql tables in use 1, locked 13 lock struct(s), heap size 320MySQL thread id 30899, query id 100627 localhost root Updatingupdate iz set pad='a' where i=1*** (2) HOLDS THE LOCK(S):RECORD LOCKS space id 0 page no 16403 n bits 72 index `PRIMARY` of table `test/iz`trx id 0 42313620 lock_mode X locks rec but not gapRecord lock, heap no 5 PHYSICAL RECORD: n_fields 4; compact format; info bits 0 0: len 4; hex 80000002; asc ;; 1: len 6; hex 00000285a78f; asc ;; 2: len7; hex 00000040150110; asc @ ;; 3: len 10; hex 61202020202020202020; asc a ;; *** (2) WAITING FOR THIS LOCK TO BE GRANTED:RECORD LOCKS space id 0 page no 16403 n bits 72 index `PRIMARY` of table `test/iz`trx id 0 42313620 lock_mode X locks rec but not gap waitingRecord lock, heap no 4 PHYSICAL RECORD: n_fields 4; compact format; info bits 0 0: len 4; hex 80000001; asc ;; 1: len 6; hex 00000285a78e; asc ;; 2: len7; hex 000000003411d9; asc 4 ;; 3: len 10; hex 61202020202020202020; asc a ;; *** WE ROLL BACK TRANSACTION (2)

    4

  • #6

    ------------------------LATEST DETECTED DEADLOCK------------------------090221 15:54:57*** (1) TRANSACTION:TRANSACTION 0 1736253712, ACTIVE 5 sec, process no 8189, OS thread id2011474240 setting auto-inc lockmysql tables in use 1, locked 1LOCK WAIT 1 lock struct(s), heap size 368MySQL thread id 6304968, query id 1702990793 10.x.x.x webuser updateINSERT INTO `my_table` (`event_id`, `updated_at`,`news_feed_only`, `actee_id`, `extra_id`, `actor_id`, `actee_type`,`user_id`, `actor_type`, `extra_type`, `event_type`, `created_at`)VALUES(251183223, '2009-02-21 23:54:52', 0, 114040217, 742361767,110698807, 'user', 114040217, 'user', 'bonus', 'standard','2009-02-21 23:54:52')*** (1) WAITING FOR THIS LOCK TO BE GRANTED:TABLE LOCK table `my_database/my_table` trx id 0 1736253712lock mode AUTO-INC waiting

  • #

    *** (2) TRANSACTION:TRANSACTION 0 1736253703, ACTIVE (PREPARED) 5 sec, process no 8189, OSthread id 1844541760mysql tables in use 1, locked 12 lock struct(s), heap size 368, undo log entries 1MySQL thread id 6304653, query id 1702990765 10.x.x.x webuser updateINSERT INTO `my_table` (`event_id`, `updated_at`,`news_feed_only`, `actee_id`, `extra_id`, `actor_id`, `actee_type`,`user_id`, `actor_type`, `extra_type`, `event_type`, `created_at`)VALUES(251183379, '2009-02-21 23:54:51', 0, 113419017, 742361765,115279155, 'user', 115279155, 'user', 'NewsStoryData', 'stanard','2009-02-21 23:54:51')*** (2) HOLDS THE LOCK(S):TABLE LOCK table `my_database/my_table` trx id 0 1736253703lock mode AUTO-INC*** (2) WAITING FOR THIS LOCK TO BE GRANTED:TABLE LOCK table `my_database/my_table` trx id 0 1736254081lock mode AUTO-INC waitingTOO DEEP OR LONG SEARCH IN THE LOCK TABLE WAITS-FOR GRAPH*** WE ROLL BACK TRANSACTION (2)

    #

  • ##

    $!!623#?!6!1?

    ""#!&37 >""!.'77EE!"#?"E!E3"E.'EE!&22"2!"

    +!""#!!?!&36

    ##

    =

  • #$

    =123

    9?:62#3#""13!#"#7

    ---TRANSACTION 1931, ACTIVE 39 sec, OS thread id 4327256064 fetching rowsmysql tables in use 1, locked 123137 lock struct(s), heap size 2062320, 1249317 row lock(s), undo log entries 1MySQL thread id 1, query id 67 localhost root UpdatingUPDATE my_locking_innodb SET a = REPEAT('b', 255) WHERE id2 = 323255

    #$

  • #'

    ..------------------------LATEST FOREIGN KEY ERROR------------------------060717 4:29:00 Transaction:TRANSACTION 0 336342767, ACTIVE 0 sec, process no 3946, OS thread id 1151088992 inserting, threaddeclared inside InnoDB 500mysql tables in use 1, locked 13 lock struct(s), heap size 368, undo log entries 1MySQL thread id 9697561, query id 188161264 localhost root updateinsert into child values(2,2)Foreign key constraint fails for table `test/child`:, CONSTRAINT `child_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON DELETE CASCADETrying to add in child table, in index `par_ind` tuple:DATA TUPLE: 2 fields; 0: len 4; hex 80000002; asc ;; 1: len 6; hex 000000000401; asc ;; But in parent table `test/parent`, in index `PRIMARY`,the closest match we can find is record:PHYSICAL RECORD: n_fields 3; 1-byte offs TRUE; info bits 0 0: len 4; hex 80000001; asc ;; 1: len 6; hex 0000140c2d8f; asc - ;; 2: len 7; hex80009c40050084; asc @ ;;

    #'

  • #)

    ,/!!!?! +#3#"!&!3" MySQL thread id 9697561, query id 188161264 localhost root

    updateinsert into child values(2,2)Foreign key constraint fails for table `test/child`: CONSTRAINT `child_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON DELETE CASCADE

    #)

    &N

  • #

    ..------------TRANSACTIONS------------Trx id counter 0 80157601Purge done for trx's n:o

  • #.

    ..---TRANSACTION 0 80157598, ACTIVE 7 sec, process no 3396, OS thread id 1147980128 fetching rows, thread declared inside InnoDB 114mysql tables in use 1, locked 0MySQL thread id 8077, query id 728897 localhost root Sending dataselect sql_calc_found_rows * from b limit 5Trx read view will not see trx with id>= 0 80157599, sees = 0 80157598, sees

  • #0

    -- XtraDB --

    ------------TRANSACTIONS------------Trx id counter 11D771APurge done for trx's n:o < 11D1AC8 undo n:o < 0History list length 11436LIST OF TRANSACTIONS FOR EACH SESSION:---TRANSACTION 0, not started, process no 25247, OS thread id 1091651920MySQL thread id 34, query id 5287216 localhost pzshow engine innodb status---TRANSACTION 0, not started, process no 25247, OS thread id 1091385680MySQL thread id 33, query id 90089 localhost root---TRANSACTION 11D7719, ACTIVE 0 sec, process no 25247, OS thread id 1401227600 updating or deletingmysql tables in use 1, locked 14 lock struct(s), heap size 1216, 2 row lock(s), undo log entries 2MySQL thread id 21, query id 5287414 localhost root UpdatingUPDATE orders SET o_carrier_id = ? WHERE o_id = ? AND o_d_id = ? AND o_w_id = ?Trx read view will not see trx with id >= 11D771A, sees < 11D7665TABLE LOCK table `tpcc`.`new_orders` trx id 11D7719 lock mode IXRECORD LOCKS space id 49 page no 1867 n bits 664 index `PRIMARY` of table `tpcc`.`new_orders` trx id 11D7719 lock_mode X locks rec but not gapTABLE LOCK table `tpcc`.`orders` trx id 11D7719 lock mode IXRECORD LOCKS space id 50 page no 22715 n bits 456 index `PRIMARY` of table `tpcc`.`orders` trx id 11D7719 lock_mode X locks rec but not gap

    #0

  • #4

    8"!7 Trx id counter 0 80157601Purge done for trx's n:o

  • $6

    --------FILE I/O--------I/O thread 0 state: waiting for i/o request (insert buffer thread)I/O thread 1 state: waiting for i/o request (log thread)I/O thread 2 state: waiting for i/o request (read thread)I/O thread 3 state: waiting for i/o request (read thread)I/O thread 4 state: waiting for i/o request (read thread)I/O thread 5 state: waiting for i/o request (read thread)I/O thread 6 state: waiting for i/o request (read thread)I/O thread 7 state: waiting for i/o request (read thread)I/O thread 8 state: waiting for i/o request (read thread)I/O thread 9 state: waiting for i/o request (read thread)I/O thread 10 state: waiting for i/o request (read thread)I/O thread 11 state: waiting for i/o request (read thread)I/O thread 12 state: waiting for i/o request (read thread)I/O thread 13 state: waiting for i/o request (read thread)I/O thread 14 state: waiting for i/o request (read thread)I/O thread 15 state: waiting for i/o request (read thread)I/O thread 16 state: waiting for i/o request (read thread)I/O thread 17 state: waiting for i/o request (read thread)I/O thread 18 state: waiting for i/o request (write thread)I/O thread 19 state: waiting for i/o request (write thread)I/O thread 20 state: waiting for i/o request (write thread)I/O thread 21 state: waiting for i/o request (write thread)I/O thread 22 state: waiting for i/o request (write thread)I/O thread 23 state: waiting for i/o request (write thread)I/O thread 24 state: waiting for i/o request (write thread)I/O thread 25 state: waiting for i/o request (write thread)I/O thread 26 state: waiting for i/o request (write thread)I/O thread 27 state: waiting for i/o request (write thread)I/O thread 28 state: waiting for i/o request (write thread)I/O thread 29 state: waiting for i/o request (write thread)I/O thread 30 state: waiting for i/o request (write thread)I/O thread 31 state: waiting for i/o request (write thread)I/O thread 32 state: waiting for i/o request (write thread)I/O thread 33 state: waiting for i/o request (write thread)Pending normal aio reads: 0, aio writes: 0, ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0Pending flushes (fsync) log: 0; buffer pool: 0295336 OS file reads, 159620 OS file writes, 154669 OS fsyncs738.63 reads/s, 16397 avg bytes/read, 1027.19 writes/s, 1010.44 fsyncs/s

    $6

  • $

    #!E$1 #39!:#&!"!!H#"

    J!U"3H

    "&33#E H#"#333#&!&&!2&

    $

    8

  • $#

    ..-------------------------------------INSERT BUFFER AND ADAPTIVE HASH INDEX-------------------------------------Ibuf for space 0: size 1, free list len 887, seg size 889, is not emptyIbuf for space 0: size 1, free list len 887, seg size 889,2431891 inserts, 2672643 merged recs, 1059730 mergesHash table size 8850487, used cells 2381348, node heap has 4091 buffer(s)2208.17 hash searches/s, 175.05 non-hash searches/s

    -- XtraDB Example --

    -------------------------------------INSERT BUFFER AND ADAPTIVE HASH INDEX-------------------------------------Ibuf: size 4289, free list len 6928, seg size 11218,689814 inserts, 67723 merged recs, 17341 mergesHash table size 31874747, node heap has 9526 buffer(s)25448.49 hash searches/s, 54424.21 non-hash searches/s

    $#

  • $$

    *&

    ""7 D D ! 3D3

    6"#&3333#

    0A"!E!33#!

    $$

  • $'

    !5

    1###!"&1#R3"

    $'

  • $)

    ..---LOG---Log sequence number 84 3000620880Log flushed up to 84 3000611265Last checkpoint at 84 29398891990 pending log writes, 0 pending chkp writes14073669 log i/o's done, 10.90 log i/o's/second

    -- XtraDB Example --

    ---LOG---Log sequence number 43921309413Log flushed up to 43921308508Last checkpoint at 43497448671Max checkpoint age 1303883551Modified age 423860742Checkpoint age 4238607420 pending log writes, 0 pending chkp writes154286 log i/o's done, 1008.78 log i/o's/second

    $)

  • $

    8;

    3"&33"&!3 $?"&"&9!!:

    $3!1

    !3&!!#"#&

    $

  • $.

    ..----------------------BUFFER POOL AND MEMORY----------------------Total memory allocated 4648979546; in additional pool allocated 16773888Buffer pool size 262144Free buffers 0Database pages 258053Modified db pages 37491Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages read 57973114, created 251137, written 107611679.79 reads/s, 0.31 creates/s, 6.00 writes/sBuffer pool hit rate 999 / 1000

    $.

  • $0

    ..----------------------BUFFER POOL AND MEMORY----------------------Total memory allocated 16515072000; in additional pool allocated 0Internal hash tables (constant factor + variable factor) Adaptive hash index 411076168 (254997976 + 156078192) Page hash 15938152 Dictionary cache 63827784 (63751024 + 76760) File system 87336 (82672 + 4664) Lock system 39898760 (39844312 + 54448) Recovery system 0 (0 + 0) Threads 414936 (406936 + 8000)Dictionary memory allocated 76760Buffer pool size 983040Buffer pool size, bytes 16106127360Free buffers 669543Database pages 303971Modified db pages 246726Pending reads 1Pending writes: LRU 0, flush list 0, single page 0Pages read 295410, created 8561, written 12606739.63 reads/s, 62.56 creates/s, 57.94 writes/sBuffer pool hit rate 998 / 1000LRU len: 303971, unzip_LRU len: 0I/O sum[40576]:cur[526], unzip sum[0]:cur[0]

    $0

  • $4

    ""#!#"!&33 K'(T #06""#3!

    !3!!&9!#: 33#3

    !3!&!!3"!

    $4

  • '6

    &A9=&B

    J!1!"""##!!

    0#!&

    !3?#&!!R!!

    "3R32'**S

    '6

  • '

    ..--------------ROW OPERATIONS--------------0 queries inside InnoDB, 0 queries in queue1 read views open inside InnoDBMain thread process no. 10099, id 88021936, state: waiting for server activityNumber of rows inserted 143, updated 3000041, deleted 0, read 248655630.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s

    -- XtraDB example --

    --------------ROW OPERATIONS--------------0 queries inside InnoDB, 0 queries in queue33 read views open inside InnoDBMain thread process no. 25247, id 1395636560, state: sleepingNumber of rows inserted 813805, updated 1627101, deleted 62432, read 68882475632.92 inserts/s, 11247.52 updates/s, 432.17 deletes/s, 47422.71 reads/s

    '

  • '#

    -8!

    #3HE&33!

    ;!3#3

    9"!:&!!!&&16!!

  • '$

    ?@

    #!!"6!7

    "62&!6"!

    '$

    +-------------+------+----------+| File | Line | OS_waits |+-------------+------+----------+| dict0dict.c | 3753 | 0 | | fil0fil.c | 1048 | 0 | | dict0mem.c | 90 | 0 | | trx0trx.c | 147 | 0 | | dict0dict.c | 3753 | 0 | | dict0mem.c | 90 | 0 | ..

    Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Slide 16Slide 17Slide 18Slide 19Slide 20Slide 21Slide 22Slide 23Slide 24Slide 25Slide 26Slide 27Slide 28Slide 29Slide 30Slide 31Slide 32Slide 33Slide 34Slide 35Slide 36Slide 37Slide 38Slide 39Slide 40Slide 41Slide 42Slide 43Slide 44Slide 45Slide 46Slide 47Slide 48Slide 49Slide 50Slide 51Slide 52Slide 53Slide 54Slide 55Slide 56Slide 57Slide 58Slide 59Slide 60Slide 61Slide 62Slide 63Slide 64Slide 65Slide 66Slide 67Slide 68Slide 69Slide 70Slide 71Slide 72Slide 73Slide 74Slide 75Slide 76Slide 77Slide 78Slide 79Slide 80Slide 81Slide 82Slide 83Slide 84Slide 85Slide 86Slide 87Slide 88Slide 89Slide 90Slide 91Slide 92Slide 93Slide 94Slide 95Slide 96Slide 97Slide 98Slide 99Slide 100Slide 101Slide 102Slide 103Slide 104Slide 105Slide 106Slide 107Slide 108Slide 109Slide 110Slide 111Slide 112Slide 113Slide 114Slide 115Slide 116Slide 117Slide 118Slide 119Slide 120Slide 121Slide 122Slide 123Slide 124Slide 125Slide 126Slide 127Slide 128Slide 129Slide 130Slide 131Slide 132Slide 133Slide 134Slide 135Slide 136Slide 137Slide 138Slide 139Slide 140Slide 141Slide 142Slide 143