Hey guys,
I would like to get your advice on my setup and whether or not I should enable the writeback cache mode considering that I'm planning to run a MariaDB production database inside a KVM virtual machine.
Here's my setup:
CPU: Intel(R) Xeon(R) CPU E5-2650 v3
RAM: 256GB
HDD: 3 x HGST HUC156060CSS200 2.5" 600GB SAS 12Gb/s 15K
The raid controller is the LSI MegaRAID SAS 9271-4i (80 GB CacheCade SSD) configured in RAID 5 with a BBU (writeback). I'm using Proxmox 4.4 and the host and the guests are all using the EXT4 filesystem (3 virtual machines: 1 database + 2 application servers).
I've spent many hours on the Proxmox forum and from I read it should be safe to use writeback nowadays as long as the server is running on an uninterruptible power source and that the raid controller is equipped with a BBU. Is this correct to assume that?
I also did some benchmarks using FIO and the configuration file found on the Proxmox web site (https://pve.proxmox.com/wiki/Iscsi/tests) using iodepth=256 and I was quite surprised to see the big difference in terms of IOPS between the results of the default cache mode and the writeback one!
cache=default
read : io=3279.8MB, bw=31293KB/s, iops=5077, runt=107323msec
write: io=835856KB, bw=7788.3KB/s, iops=1275, runt=107323msec
cache=writeback
read : io=3279.8MB, bw=752004KB/s, iops=122027, runt= 4466msec
write: io=835856KB, bw=187160KB/s, iops=30645, runt= 4466msec
So now my question is the following: would I see a big performance gain by using the writeback cache mode for a database?
All comments and or suggestions would be greatly appreciated!
Thanks,
Christian
I would like to get your advice on my setup and whether or not I should enable the writeback cache mode considering that I'm planning to run a MariaDB production database inside a KVM virtual machine.
Here's my setup:
CPU: Intel(R) Xeon(R) CPU E5-2650 v3
RAM: 256GB
HDD: 3 x HGST HUC156060CSS200 2.5" 600GB SAS 12Gb/s 15K
The raid controller is the LSI MegaRAID SAS 9271-4i (80 GB CacheCade SSD) configured in RAID 5 with a BBU (writeback). I'm using Proxmox 4.4 and the host and the guests are all using the EXT4 filesystem (3 virtual machines: 1 database + 2 application servers).
I've spent many hours on the Proxmox forum and from I read it should be safe to use writeback nowadays as long as the server is running on an uninterruptible power source and that the raid controller is equipped with a BBU. Is this correct to assume that?
I also did some benchmarks using FIO and the configuration file found on the Proxmox web site (https://pve.proxmox.com/wiki/Iscsi/tests) using iodepth=256 and I was quite surprised to see the big difference in terms of IOPS between the results of the default cache mode and the writeback one!
cache=default
read : io=3279.8MB, bw=31293KB/s, iops=5077, runt=107323msec
write: io=835856KB, bw=7788.3KB/s, iops=1275, runt=107323msec
cache=writeback
read : io=3279.8MB, bw=752004KB/s, iops=122027, runt= 4466msec
write: io=835856KB, bw=187160KB/s, iops=30645, runt= 4466msec
So now my question is the following: would I see a big performance gain by using the writeback cache mode for a database?
All comments and or suggestions would be greatly appreciated!
Thanks,
Christian