calc minimum required memory of mysql from my.cnf