I've tested this thoroughly and I can tell that writing to DRBD on my physical host is slow.
I've made a test environment: started a VM on my host, gave it a passthorugh hdd and set up proxmox from iso installer, then updated kernel to 2.6.35. On my host I have debian installed on usb-flash and proxmox 2.6.35 over it, so the setups are not totally identical, but similar.
I set up drbd on /dev/sda1 (/dev/vda1 in VM), initialize it and make it primary. There is no network connection but I've tried with it and there was no change.
On host I get 33MB/s write to drbd0 device (using dd from /dev/zero to /dev/drbd0 with fdatacync to be sure not to include buffer speed). In VM I get 70MB/s write to drbd0. both drives are physically in one server and are identical. Without drbd I have 70MB/s on host. (i.e. dd to /dev/sda1). This seems to be a problem of Debian+proxmox setup. How do I cure my write speed? I don't want to experiment with host (for example installing proxmox to hdd from ISO instead of Debian to USB + proxmox) because I have one production VM on it currently.
I've made a test environment: started a VM on my host, gave it a passthorugh hdd and set up proxmox from iso installer, then updated kernel to 2.6.35. On my host I have debian installed on usb-flash and proxmox 2.6.35 over it, so the setups are not totally identical, but similar.
I set up drbd on /dev/sda1 (/dev/vda1 in VM), initialize it and make it primary. There is no network connection but I've tried with it and there was no change.
On host I get 33MB/s write to drbd0 device (using dd from /dev/zero to /dev/drbd0 with fdatacync to be sure not to include buffer speed). In VM I get 70MB/s write to drbd0. both drives are physically in one server and are identical. Without drbd I have 70MB/s on host. (i.e. dd to /dev/sda1). This seems to be a problem of Debian+proxmox setup. How do I cure my write speed? I don't want to experiment with host (for example installing proxmox to hdd from ISO instead of Debian to USB + proxmox) because I have one production VM on it currently.