Skip to content

Instantly share code, notes, and snippets.

View pyama86's full-sized avatar

Kazuhiko Yamashita pyama86

View GitHub Profile
@pyama86
pyama86 / 再現手順.md
Last active July 22, 2019 08:36
mysqlのinformation schemaの律速問題

dockerはこの世に叡智をもたらした

# straceとかうちたいから特権与える
$ docker run --rm --privileged -it -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 mysql:5.7

大量にDB創る

$ mysql -uroot -h127.0.0.1 -P3306 -e "CREATE USER 'user'@'%' IDENTIFIED BY 'test';"
@pyama86
pyama86 / 再現手順.md
Created July 22, 2019 08:32
mysqlのinformation schemaの律速問題

dockerはこの世に叡智をもたらした

# straceとかうちたいから特権与える
$ docker run --rm --privileged -it -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 mysql:5.7

大量にDB創る

# mysql -uroot -h127.0.0.1 -P3306 -e "CREATE USER 'user'@'%' IDENTIFIED BY 'test';"
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 4 of event 'cpu-clock'
# Event count (approx.): 1000000
#
# Children Self Command Shared Object Symbol
# ........ ........ ....... ................. ......................................