Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.29 KB | None | 0 0
  1. % The lock counting VM is the same except for being built with
  2. % --enable-lock-counting
  3. (dbcore@db1.cluster.name.goes.here)3> erlang:system_info(system_version).
  4. "Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:24:24] [async-threads:32] [hipe] [kernel-poll:true]\n"
  5.  
  6. % These were captured after the test and back on the non
  7. % lock counting emulator just to show a rough estimate on
  8. % reductions and proc counts for this node.
  9.  
  10. (dbcore@db1.cluster.name.goes.here)2> erlang:statistics(reductions).
  11. {5844671251,8345795}
  12. (dbcore@db1.cluster.name.goes.here)3> length(erlang:processes()).
  13. 19071
  14.  
  15.  
  16. (dbcore@db1.cluster.name.goes.here)5> lcnt:start(),
  17. (dbcore@db1.cluster.name.goes.here)5> lcnt:rt_opt({copy_save, true}),
  18. (dbcore@db1.cluster.name.goes.here)5> lcnt:clear(),
  19. (dbcore@db1.cluster.name.goes.here)5> timer:sleep(60000),
  20. (dbcore@db1.cluster.name.goes.here)5> lcnt:collect(),
  21. (dbcore@db1.cluster.name.goes.here)5>
  22. (dbcore@db1.cluster.name.goes.here)5> lcnt:conflicts(),
  23. (dbcore@db1.cluster.name.goes.here)5>
  24. (dbcore@db1.cluster.name.goes.here)5> lcnt:conflicts([
  25. (dbcore@db1.cluster.name.goes.here)5> {combine, false},
  26. (dbcore@db1.cluster.name.goes.here)5> {max_locks, none},
  27. (dbcore@db1.cluster.name.goes.here)5> {print, [name, id, type, tries, colls, ratio, time, duration]}
  28. (dbcore@db1.cluster.name.goes.here)5> ]).
  29.  
  30.  
  31. lock id #tries #collisions collisions [%] time [us] duration [%]
  32. ----- --- ------- ------------ --------------- ---------- -------------
  33. run_queue 24 18908746 1021917 5.4045 16050636 26.7506
  34. proc_link 117158 3482258 47573 1.3662 1682509 2.8041
  35. proc_main 117158 5810562 254167 4.3742 1248094 2.0801
  36. timeofday 1 2053147 76521 3.7270 1241633 2.0694
  37. proc_msgq 117158 5534703 15671 0.2831 483755 0.8062
  38. proc_status 117158 7985126 11640 0.1458 430530 0.7175
  39. async_enq_mtx 24 764843 2808 0.3671 86022 0.1434
  40. pollset 1 181308 780 0.4302 62374 0.1040
  41. alcu_allocator 9 168676 2070 1.2272 36750 0.0612
  42. db_tab 115 5224998 1240 0.0237 28876 0.0481
  43. timer_wheel 1 419002 1890 0.4511 25265 0.0421
  44. make_ref 1 836987 7738 0.9245 22007 0.0367
  45. dist_entry_links 20 139617 226 0.1619 16387 0.0273
  46. dist_entry_out_queue 20 369870 937 0.2533 11966 0.0199
  47. bif_timers 1 30017 519 1.7290 7319 0.0122
  48. drv_ev_state 16 292939 85 0.0290 2316 0.0039
  49. db_hash_slot 1024 1033679 115 0.0111 2044 0.0034
  50. child_status 1 24 1 4.1667 220 0.0004
  51. db_tab_fix 115 644 1 0.1553 57 0.0001
  52.  
  53.  
  54. lock id type #tries #collisions collisions [%] time [us] duration [%]
  55. ----- --- ----- ------- ------------ --------------- ---------- -------------
  56. timeofday mutex 2053147 76521 3.7270 1241633 2.0694
  57. run_queue 2 mutex 1122389 61760 5.5025 989035 1.6484
  58. run_queue 4 mutex 1181217 66163 5.6013 978146 1.6302
  59. run_queue 6 mutex 1402800 70816 5.0482 970177 1.6169
  60. run_queue 11 mutex 1307767 62664 4.7917 955968 1.5933
  61. run_queue 3 mutex 1133773 62482 5.5110 952507 1.5875
  62. run_queue 5 mutex 1353540 68297 5.0458 943732 1.5729
  63. run_queue 13 mutex 1073734 61010 5.6820 931738 1.5529
  64. run_queue 14 mutex 1144373 63275 5.5292 923287 1.5388
  65. run_queue 15 mutex 871349 53813 6.1758 877801 1.4630
  66. run_queue 7 mutex 917803 50092 5.4578 874415 1.4573
  67. run_queue 16 mutex 889047 49108 5.5237 855519 1.4258
  68. run_queue 9 mutex 1054746 51456 4.8785 836173 1.3936
  69. run_queue 8 mutex 884701 49930 5.6437 813207 1.3553
  70. run_queue 1 mutex 876048 46904 5.3540 802433 1.3374
  71. run_queue 10 mutex 1046125 51154 4.8899 764762 1.2746
  72. run_queue 17 mutex 736017 44946 6.1067 721016 1.2017
  73. run_queue 12 mutex 902703 44430 4.9219 710957 1.1849
  74. run_queue 18 mutex 731716 44789 6.1211 700067 1.1668
  75. proc_link ioq_server proclock 640781 32065 5.0040 536806 0.8947
  76. proc_link couch_server proclock 94487 4795 5.0748 173469 0.2891
  77. run_queue 19 mutex 89081 6381 7.1631 171900 0.2865
  78. proc_main ioq_server proclock 435917 200122 45.9083 119485 0.1991
  79. run_queue 20 mutex 64012 4302 6.7206 111211 0.1853
  80. proc_status couch_server proclock 223821 3431 1.5329 107178 0.1786
  81. proc_msgq couch_stats_process_tracker proclock 60719 909 1.4971 99799 0.1663
  82. proc_link 'rexi_server_dbcore@db10.cluster.name.goes.here' proclock 36569 404 1.1048 93663 0.1561
  83. proc_msgq couch_server proclock 180654 3219 1.7819 84054 0.1401
  84. run_queue 22 mutex 49019 3375 6.8851 78865 0.1314
  85. proc_msgq 'rexi_server_dbcore@db10.cluster.name.goes.here' proclock 55192 326 0.5907 68900 0.1148
  86. proc_status 'rexi_server_dbcore@db10.cluster.name.goes.here' proclock 79766 434 0.5441 65191 0.1086
  87. pollset mutex 181308 780 0.4302 62374 0.1040
  88. run_queue 21 mutex 55199 3460 6.2682 62201 0.1037
  89. proc_main <dbcore@db1.cluster.name.goes.here.6785.0> proclock 201667 889 0.4408 56375 0.0940
  90. proc_main couch_server proclock 156168 24760 15.8547 55535 0.0926
  91. proc_link 'rexi_server_dbcore@db8.cluster.name.goes.here' proclock 35085 371 1.0574 48509 0.0808
  92. proc_link couch_stats_process_tracker proclock 31037 532 1.7141 48357 0.0806
  93. proc_main <dbcore@db1.cluster.name.goes.here.2933.0> proclock 533930 1697 0.3178 48172 0.0803
  94. proc_msgq ioq_server proclock 713992 5134 0.7191 39111 0.0652
  95. proc_msgq 'rexi_server_dbcore@db8.cluster.name.goes.here' proclock 53338 274 0.5137 37238 0.0621
  96. alcu_allocator driver_alloc mutex 167797 2070 1.2336 36750 0.0612
  97. proc_link mem3_sync proclock 6280 552 8.7898 35985 0.0600
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement