mysqld consumes about 100% cpu when idle on arm v7
Issue is also filed in mariadb
Fresh alpine linux 3.13 container running on an arm v7 debian 10.7 host.
The following issue appeared with alpine 3.13 packing mariadb 10.5.8 (there is no issue with alpine 3.12 and mariadb 10.4.x):
- On arm v7 (32 bits) mysqld consumes about 100% cpu when idle, but still works.
- On arm v8 (64 bits) or amd64, it consumes near 0% cpu when idle as expected.
I see only one difference in start logs (but that may be irrelevant):
- arm v7 : "Using generic crc32 instructions"
- arm v8 : "Using ARMv8 crc32 instructions"
Any idea why this happens and if there is an option in mysqld to circumvent the issue?
Steps to reproduce on a new alpine container:
~ # apk --update --upgrade add mariadb sudo
~ # mkdir /run/mysqld
~ # chown mysql:mysql /run/mysqld
~ # sudo -su mysql
~ $ mysql_install_db
~ $ mysqld --datadir=./data