….conf # Enable locking Huge Pages for MySQL user root soft memlock 2883584 root hard memlock 3932160 #mysql soft memlock unlimited #mysql hard memlock unlimited
Post: Heikki Tuuri Innodb answers - Part I
… swap out MySQL. There are two solutions here. Memlock and O_DIRECT. Memlock is apparently unstable on Linux. O_DIRECT is an…. In distant future, I would like to have the memlock also. PZ: memlock already works – it is global MySQL Server option, though…
Comment: Heikki Tuuri to answer your in depth Innodb questions
Just an FYI for readers at home. The –memlock command line option calls the memlock system call to keep the process in memory. O_DIRECT bypasses the kernel to do IO directly. I’m not sure if it works either for keeping the process locked into memory.
Comment: Heikki Tuuri to answer your in depth Innodb questions
… swap out MySQL. There are two solutions here. Memlock and O_DIRECT. Memlock is apparently unstable on Linux. O_DIRECT is an…
Post: Ultimate MySQL variable and status reference list
I am constantly referring to the amazing MySQL manual, especially the option and variable reference table. But just as frequently, I want to look up blog posts on variables, or look for content in the Percona documentation or forums. So I present to you what is now my newest Firefox toolbar …
Comment: Why Swapping is bad for MySQL Performance ?
CYTech, There is “memlock” option which locks MySQL process in memory. The danger with it is increased change of MySQL Server being killed if no memory is available. It also not very commonly used and people reported problems with some Linux kernel versions.
Post: Choosing innodb_buffer_pool_size
…. Finally you can try locking MySQL in memory by using –memlock – just be careful as in case you have memory usage…

