Hi everyone,
Recently I received a notification from Nagios about high server load. All virtual machines have been slow - web pages were loading slowly, SSH login took almost a minute. There were many processes in D state.
Using iotop and my patched vztop, I've quickly located the problem - one of the clients' VMs had many sendmail processes doing lots of random I/O. I wanted to address it using only OpenVZ, not interfering with what client runs in his VM. I started with:
and waited to see if other VMs get faster. They didn't. So I tried:
and it still didn't make other VMs work faster.
I ended up stopping Sendmail on his machine upon first noticing. However, when choosing a VPS technology, I chose OpenVZ because it had fair I/O scheduling and priorities. Is there something I did wrong, or is OpenVZ just not that good at managing virtual machines' disk priorities?
Recently I received a notification from Nagios about high server load. All virtual machines have been slow - web pages were loading slowly, SSH login took almost a minute. There were many processes in D state.
Using iotop and my patched vztop, I've quickly located the problem - one of the clients' VMs had many sendmail processes doing lots of random I/O. I wanted to address it using only OpenVZ, not interfering with what client runs in his VM. I started with:
Code:
vzctl set 110 --ioprio 0 --save
Code:
vzctl set 110 --cpuunits 100 --cpulimit 50 --save
I ended up stopping Sendmail on his machine upon first noticing. However, when choosing a VPS technology, I chose OpenVZ because it had fair I/O scheduling and priorities. Is there something I did wrong, or is OpenVZ just not that good at managing virtual machines' disk priorities?
Code:
# uname -a
Linux le02 2.6.32-11-pve #1 SMP Wed Apr 11 07:17:05 CEST 2012 x86_64 GNU/Linux