Hi all,
why is backing up an empty VM under Proxmox is so slow? Is it possible that no one has ever noticed?
example: whether I create an empty 1 TB qcow file, or I create a 1 TB KVM in a ZFS partition, and install, for example, debian 10 (ssh server only and nothing else), my server with a CPU Intel(R) Xeon(R) CPU E5-2470 take 28 minutes to backup!!
INFO: starting new backup job: vzdump 101 --node s0 --mode stop --storage local2 --remove 0 --compress gzip
INFO: Starting Backup of VM 101 (qemu)
INFO: Backup started at 2020-01-22 09:25:20
INFO: status = stopped
INFO: update VM 101: -lock backup
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: BackupCT
INFO: include disk 'scsi0' 'local-zfs:vm-101-disk-0' 1T
INFO: creating archive '/local2/dump/vzdump-qemu-101-2020_01_22-09_25_20.vma.gz'
INFO: starting kvm to execute backup task
INFO: started backup task '346c984b-d79d-4183-a0fe-f7a6db44bf65'
INFO: status: 0% (593494016/1099511627776), sparse 0% (301903872), duration 3, read/write 197/97 MB/s
INFO: status: 1% (11119230976/1099511627776), sparse 0% (10374496256), duration 22, read/write 553/23 MB/s
INFO: status: 2% (22407675904/1099511627776), sparse 1% (21662392320), duration 39, read/write 664/0 MB/s
INFO: status: 3% (33644544000/1099511627776), sparse 2% (32898711552), duration 56, read/write 660/0 MB/s
INFO: status: 4% (44333989888/1099511627776), sparse 3% (43588120576), duration 72, read/write 668/0 MB/s
INFO: status: 5% (54985621504/1099511627776), sparse 4% (54239203328), duration 88, read/write 665/0 MB/s
[...]
INFO: status: 100% (1099511627776/1099511627776), sparse 99% (1098065768448), duration 1700, read/write 609/2 MB/s
INFO: transferred 1099511 MB in 1700 seconds (646 MB/s)
INFO: stopping kvm after backup task
INFO: archive file size: 395MB
INFO: Finished Backup of VM 101 (00:28:24)
INFO: Backup finished at 2020-01-22 09:53:44
INFO: Backup job finished successfully
TASK OK
Instead if I unzip the backup it takes less than 30 seconds!
Another example, if I have two ZFS partitions (in two different HDDs), and I want move a near 1 TB empty disk from 1 ZFS partition to another, it take 4 minutes...
Watching with iotop noticed a strange thing:
DISK READ 3,9 G/s , DISK WRITE 3.46 M/s ??? WHY? it's a damn empty file!
why is backing up an empty VM under Proxmox is so slow? Is it possible that no one has ever noticed?
example: whether I create an empty 1 TB qcow file, or I create a 1 TB KVM in a ZFS partition, and install, for example, debian 10 (ssh server only and nothing else), my server with a CPU Intel(R) Xeon(R) CPU E5-2470 take 28 minutes to backup!!
INFO: starting new backup job: vzdump 101 --node s0 --mode stop --storage local2 --remove 0 --compress gzip
INFO: Starting Backup of VM 101 (qemu)
INFO: Backup started at 2020-01-22 09:25:20
INFO: status = stopped
INFO: update VM 101: -lock backup
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: BackupCT
INFO: include disk 'scsi0' 'local-zfs:vm-101-disk-0' 1T
INFO: creating archive '/local2/dump/vzdump-qemu-101-2020_01_22-09_25_20.vma.gz'
INFO: starting kvm to execute backup task
INFO: started backup task '346c984b-d79d-4183-a0fe-f7a6db44bf65'
INFO: status: 0% (593494016/1099511627776), sparse 0% (301903872), duration 3, read/write 197/97 MB/s
INFO: status: 1% (11119230976/1099511627776), sparse 0% (10374496256), duration 22, read/write 553/23 MB/s
INFO: status: 2% (22407675904/1099511627776), sparse 1% (21662392320), duration 39, read/write 664/0 MB/s
INFO: status: 3% (33644544000/1099511627776), sparse 2% (32898711552), duration 56, read/write 660/0 MB/s
INFO: status: 4% (44333989888/1099511627776), sparse 3% (43588120576), duration 72, read/write 668/0 MB/s
INFO: status: 5% (54985621504/1099511627776), sparse 4% (54239203328), duration 88, read/write 665/0 MB/s
[...]
INFO: status: 100% (1099511627776/1099511627776), sparse 99% (1098065768448), duration 1700, read/write 609/2 MB/s
INFO: transferred 1099511 MB in 1700 seconds (646 MB/s)
INFO: stopping kvm after backup task
INFO: archive file size: 395MB
INFO: Finished Backup of VM 101 (00:28:24)
INFO: Backup finished at 2020-01-22 09:53:44
INFO: Backup job finished successfully
TASK OK
Instead if I unzip the backup it takes less than 30 seconds!
Another example, if I have two ZFS partitions (in two different HDDs), and I want move a near 1 TB empty disk from 1 ZFS partition to another, it take 4 minutes...
Watching with iotop noticed a strange thing:
DISK READ 3,9 G/s , DISK WRITE 3.46 M/s ??? WHY? it's a damn empty file!
Last edited: