[MDEV-7758] Small buffer pool size causes XtraDB buffer flush thread to spin at 100% cpu Created: 2015-03-11 Updated: 2023-01-22 Resolved: 2023-01-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - XtraDB |
| Affects Version/s: | 10.0.17 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Kristian Nielsen | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | verified | ||
| Description |
|
Small innodb_buffer_pool_size causes mysqld to spin at 100% CPU. Here is how I could repeat: Start server with:
Create some dirty pages to trigger flush thread:
This causes the mysqld process to appear at 100% CPU in `top`. The problem seems to be related to heuristics with hard-coded constants that Se with small buffer pool, we end up with two heuristics fighting one another, |
| Comments |
| Comment by Kristian Nielsen [ 2015-03-11 ] |
|
Work-around: set --innodb-lru-scan-depth=100 |
| Comment by Elena Stepanova [ 2015-03-12 ] |
|
For me it took a few more INSERTs to get there, so if it's not reproducible with SQL above, just keep inserting. |
| Comment by Jan Lindström (Inactive) [ 2015-03-12 ] |
|
Is this true for XtraDB only or is InnoDB also affected ? |
| Comment by Elena Stepanova [ 2015-03-12 ] |
|
I didn't get it with InnoDB. "ERROR 1206 (HY000): The total number of locks exceeds the lock table size" happened sooner than it got into the spin. |
| Comment by Jan Lindström (Inactive) [ 2015-03-13 ] |
|
Have you tested does Percona 5.6 has this problem ? If it has, I rather wait them to fix it. |
| Comment by Elena Stepanova [ 2015-03-13 ] |
|
Yes, it also happens on Percona Server 5.6.22-72.0, but I don't know if it has been reported to them. |
| Comment by Laurynas Biveinis [ 2015-12-02 ] |
| Comment by Laurynas Biveinis [ 2015-12-02 ] |
|
But note https://bugs.launchpad.net/percona-server/+bug/1521905 |
| Comment by Elena Stepanova [ 2023-01-22 ] |
|
XtraDB is no longer provided. |