A simple MySQL restart is taking too much time. No, it is not doing recovery.
We have tried over 10 restarts one after other.
MySQL stop takes short time but start takes very long time.
We noticed that it is spending too much time reading ibd files.
watch -n 1 'ls -l /proc/26980/fd | grep .ibd'
Above command shows status of MySQL reading .ibd files.
We noted that for first few minutes, MySQL was very fast but then it started becoming slow and slower.
We have few thousand small databases with total .ibd files about 800000.
It takes 2.5 hours to start MySQL and it is not recovery.
Is there any way we could speed this up?
PS : We never noticed this with 5.5. This problem is after we upgraded 5.6.
I have faced this issue on Amazon long ago, as it used to start MySQL after going through each and every database on the server. What platform are you using and how many databases (and how large) you have got on your server?