Darhazer is right (I will vote for him, but I have no reputation points). It is generally recommended that you set innodb_buffer_pool_size to 70-80% of the memory, although it is really more difficult, since you need to consider how much RAM other parts of your system actually use.
source share