Bug #39842 | signal 11 when using large_pages | ||
---|---|---|---|
Submitted: | 3 Oct 2008 15:16 | Modified: | 21 Aug 2009 9:48 |
Reporter: | Maksim Nikulin (OCA) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: General | Severity: | S1 (Critical) |
Version: | 5.0.67, 5.1+, 6.0+ | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution, HugePages, large_pages, myisam |
[3 Oct 2008 15:16]
Maksim Nikulin
[5 Oct 2008 9:57]
Maksim Nikulin
it seems aprox. 900Mb of memory enough to repeat the error, so set key_buffer=4995M, then only one 2Mb HugePage enough to start mysql
[7 Oct 2008 12:33]
Maksim Nikulin
w/ key_cache_block_size=16K and key_buffer=4153M my mysql eats 60Mb memory, but error still happens
[16 Jan 2009 0:59]
Serge Knystautas
We are hitting the exact same error. Environment is RHEL5 x64. We have reproduced this with both MySQL 5.1.26 and 5.1.30. Part of our log message was as follows: ================================================ key_buffer_size=32768 read_buffer_size=2097152 max_used_connections=69 max_threads=250 threads_connected=35 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1026571 K bytes of memory ================================================ We've halved the read_buffer_size and sort_buffer_size to get below the potential threshold. We'll see if this prevents the problem. Unfortunately this is happening intermittently in a production environment and have not been able to recreate reliably.
[23 Jan 2009 9:37]
Maksim Nikulin
Size of read_buffer or sort_buffer doesn't matter. Problem recreated reliably each time "cat /proc/meminfo | grep HugePages_Rsvd" became zero and it doesn't matter what type of load applied to key_buffer. Have you tried my patch?
[17 Aug 2009 10:06]
Susanne Ebrecht
Bug #43606 could be related to this bug report here.
[21 Aug 2009 5:01]
Susanne Ebrecht
I will set this as duplicate of bug #43606 because there is a patch given at the other bug report.
[21 Aug 2009 9:48]
Maksim Nikulin
yes, that patch is more complicated than mine, may be someone'll add it to mainstream at long last