Cannot Reproduce
Details
Details
Assignee
Nickolay Ihalainen
Nickolay Ihalainen(Deactivated)Reporter
lpjirasync
lpjirasync(Deactivated)Upstream Bug URL
Priority
Smart Checklist
Smart Checklist
Created January 24, 2018 at 9:47 AM
Updated March 6, 2024 at 1:53 PM
Resolved January 22, 2019 at 5:46 AM
**Reported in Launchpad by Rick Pizzi last update 27-09-2016 08:55:30
When using client/server compression, issuing SHOW WARNINGS eats an incredible amount of system CPU time. This behaviour is already visible with 16 threads, at 64 threads it will saturate a 32 CPU machine completely.
We have encountered this bug in production, where an ORM was configured to issue a SHOW WARNINGS statement after each and every query. We had complete MySQL stalls that lasted from several seconds to few minutes because of this, as the machine was CPU bound during this time with 99% of system time used by MySQL server. MySQL was unable to perform any operation during the stall.
This only happens if you have MySQL compression enabled!
How to reproduce:
install sysbench with MySQL driver from usual source
copy the attached LUA script to your test system
run sysbench as follows: ./sysbench --mysql-host=.... --mysql-user=sysbench --mysql-password=sbtest --mysql-db=sbtest --test=show_warnings.lua --max_requests=0 --max_time=20 --num-threads=64 --mysql-engine-trx=yes --mysql-compression=on run
watch system CPU reach 100%
This has been verified on 5.6.26-74.0-log Percona Server (GPL), Release 74.0