Kernel VM Dirty Ratio

I’ve seen a few servers in the last few weeks becoming unreachable due to the memory usage.

These issues have looked to have been caused by processes being blocked by the kernel as it tries to reserve too much memory for it’s self.

A usual error in messages looks like :

kernel: INFO: task crond:2828 blocked for more than 120 seconds.
kernel: “echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message.

To resolve this issue, I’ve ran the following command, this limits the amount of memory to reserve for system processes from the default 40% down to 10%.

“vm.dirty_ratio=10″ >> /etc/sysctl.conf

This entry was posted in Managed Hosting. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>