How can I disable swappiness just for Mariadb and not for other applications on the same EC2 Instance? I have an EC2 instance where DB(Mariadb) runs on the same EC2 instance as the other applications.
MySQL documentation suggests to disable swappiness since DB doesn't like swap. How can I disable swappiness just for Mariadb and not for all other users/apps ?
Thanks
Moe
Plan A (if possible):  Use &quot;huge pages&quot; for the buffer_pool.  They can't be swapped, thereby helping keep from swapping MariaDB.
Plan B:  Use swappiness = 1 -- This, in theory, discourages the OS from swapping any process.  It will still swap if it is absolutely necessary.  At that point, perhaps it is better to slow down some process(es) rather than crashing?