[MDEV-4616] Crash after InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts is back Created: 2013-06-05  Updated: 2016-09-28  Resolved: 2013-06-05

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: 10.0.4

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: innodb

Issue Links:
Relates
relates to MDEV-10918 InnoDB 5.7 aborts on AIO initializati... Closed

 Description   

There was a good fix in 5.5 that disabled Linux Native AIO in case of a problem, instead of making the server crash on startup:

revno: 3460
revision-id: monty@askmonty.org-20120627141312-z65pj80390f0f5pp
parent: wlad@montyprogram.com-20120625161724-05sguk5snhzdezzg
committer: Michael Widenius <monty@askmonty.org>
branch nick: maria-5.5
timestamp: Wed 2012-06-27 17:13:12 +0300
message:
  Don't abort InnoDB/XtraDB if one can't allocate resources for AIO
  - Better error messages
  
  This fixes that one again can run the test systems with many threads without having to increase fs.aio-max-nr.

In current 10.0 the fix for XtraDB (which is basically 5.5) is still present, but for InnoDB it disappeared, apparently after the previous merge.
Please add it back when the next merge is finished.

130605  0:49:26 InnoDB: Compressed tables use zlib 1.2.3.4
130605  0:49:26 InnoDB: Using Linux native AIO
130605  0:49:26 InnoDB: CPU does not support crc32 instructions
130605  0:49:27 InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
InnoDB: Warning: io_setup() attempt 1 failed.
InnoDB: Warning: io_setup() attempt 2 failed.
InnoDB: Warning: io_setup() attempt 3 failed.
InnoDB: Warning: io_setup() attempt 4 failed.
InnoDB: Warning: io_setup() attempt 5 failed.
130605  0:49:29 InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
130605  0:49:29 InnoDB: Initializing buffer pool, size = 128.0M
130605  0:49:29 InnoDB: Completed initialization of buffer pool
130605  0:49:29 [ERROR] mysqld got signal 11 ;

bzr version-info
revision-id: wlad@montyprogram.com-20130523125248-22m56m01r24t0dmb
revno: 3752
branch-nick: 10.0



 Comments   
Comment by Michael Widenius [ 2013-06-05 ]

Fixed and pushed into 10.0

The issue was that the patch to fix this was accidentally left out between 10.0-base and 10.0

Generated at Thu Feb 08 06:57:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.