Periodical stalls in high memory write intensive tpcc-mysql workload
Bug #1041700 reported by
Vadim Tkachenko
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | |||
5.5 |
Expired
|
Medium
|
Unassigned | |||
5.6 |
Invalid
|
Undecided
|
Unassigned | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This bug is created to report a problem I observe and to track progress of research.
In tpcc-mysql workloads on boxes with big memory / big datasize I still see periodical stalls
(throughput drops to 0).
It appears for example in 2000 W (200G) datasize + 100GB buffer pool.
Attached png with 16 (no stalls) vs 64 (stalls) threads.
To post a comment you must log in.
There is a stack trace of most threads during stalls
Thread 20 (Thread 0x7f728497c700 (LWP 21781)): cond_wait@ @GLIBC_ 2.3.2 () from /lib64/ libpthread. so.0 workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ storage/ innobase/ os/os0sync. c:207 workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ storage/ innobase/ os/os0sync. c:609 mysql_thread (thr=0x7f71dc01 4d28) workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ storage/ innobase/ srv/srv0srv. c:1837 handle_ errors (new_err= 0x7f7284979f18, trx=0x7f723c010e48, thr=0x7f71dc014d28, savept=0x0) workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ storage/ innobase/ row/row0mysql. c:598 for_mysql (buf=0x7f71dc013d60 "\377", mode=2, prebuilt= 0x7f71dc0145a8, match_mode=1, workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ storage/ innobase/ row/row0sel. c:4745 :index_ read (this=0x7f71dc0 12130, buf=0x7f71dc013d60 "\377", key_ptr=<value optimized out>, HA_READ_ KEY_EXACT) workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ storage/ innobase/ handler/ ha_innodb. cc:6664 :read_range_ first (this=0x7f71dc0 12130, start_key=<value optimized out>, workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ sql/handler. cc:4857 :read_multi_ range_first (this=0x7f71dc0 12130, found_range_ p=0x7f728497a01 0, 0x7f723c0d2c40, range_count=1, sorted=<value optimized out>, buffer=<value optimized out>) workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ sql/handler. cc:4731 SELECT: :get_next (this=0x7f723c0 d4920) workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ sql/opt_ range.cc: 8711 7a2e0) workspace/ percona- server- 5.5-binaries/ label_exp/ centos5- 64/Percona- Server- 5.5.27- rel28.0/ sql/records. cc:344 0x7f723c052a20, fields=..., values=..., conds=0x7f723c0 53d10, num=<value optimized out>, order=<value optimized out>, limit=184467440 73709551615, handle_ duplicates= DUP_ERROR, 0x7f728497b020, updated_ return= 0x7f728497b018) workspace/ percona- server- 5.5-...
#0 0x000000313a20b43c in pthread_
#1 0x00000000008f8207 in os_cond_wait (event=0x2c878e0, reset_sig_count=12)
at /home/jenkins/
#2 os_event_wait_low (event=0x2c878e0, reset_sig_count=12)
at /home/jenkins/
#3 0x0000000000821135 in srv_suspend_
at /home/jenkins/
#4 0x0000000000803c6a in row_mysql_
at /home/jenkins/
#5 0x0000000000810b37 in row_search_
direction=0)
at /home/jenkins/
#6 0x00000000007e6edb in ha_innobase:
key_len=<value optimized out>, find_flag=
at /home/jenkins/
#7 0x000000000069709f in handler:
end_key=<value optimized out>, eq_range_arg=<value optimized out>, sorted=<value optimized out>)
at /home/jenkins/
#8 0x0000000000698ae3 in handler:
ranges=
at /home/jenkins/
#9 0x0000000000765a14 in QUICK_RANGE_
at /home/jenkins/
#10 0x000000000077a034 in rr_quick (info=0x7f72849
at /home/jenkins/
#11 0x00000000005f2456 in mysql_update (thd=0xac7d3050, table_list=
order_
ignore=false, found_return=
at /home/jenkins/