How does MySQL 5.5 and InnoDB on Linux use RAM?

Posted by Loren on Server Fault See other posts from Server Fault or by Loren
Published on 2012-05-31T15:52:12Z Indexed on 2012/05/31 16:42 UTC
Read the original article Hit count: 248

Does MySQL 5.5 InnoDB keep indexes in memory and tables on disk? Does it ever do it's own in-memory caching of part or whole tables? Or does it completely rely on the OS page cache (I'm guessing that it does since Facebook's SSD cache that was built for MySQL was done at the OS-level: https://github.com/facebook/flashcache/)? Does Linux by default use all of the available RAM for the page cache? So if RAM size exceeds table size + memory used by processes, then when MySQL server starts and reads the whole table for the first time it will be from disk, and from that point on the whole table is in RAM? So using Alchemy Database (SQL on top of Redis, everything always in RAM: http://code.google.com/p/alchemydatabase/) shouldn't be much faster than MySQL, given the same size RAM and database?

© Server Fault or respective owner

Related posts about linux

Related posts about mysql