[pve-devel] [PATCH qemu-server] fix #3329: turn on cache=writeback for efidisks on rbd

Maximilian Hill mhill at inett.de
Wed Jun 16 15:25:07 CEST 2021


Hello,

On Wed, Jun 16, 2021 at 03:09:33PM +0200, Dominik Csapak wrote:
> on slower ceph clusters, the write pattern of the ovmf booting process
> slows down the boot of the vm, so we turn on caching by default
> 
> +	my $cache = "";
> +	if ($path =~ m/^rbd:/) {
> +	    $cache = ',cache=writeback';
does this work, evven if the rbd storage is not called "rbd"?
> +	}
> +
>  	push @$cmd, '-drive', "if=pflash,unit=0,format=raw,readonly=on,file=$ovmf_code";
> -	push @$cmd, '-drive', "if=pflash,unit=1,format=$format,id=drive-efidisk0$size_str,file=$path";
> +	push @$cmd, '-drive', "if=pflash,unit=1$cache,format=$format,id=drive-efidisk0$size_str,file=$path";
>      }
>  
>      # load q35 config
> -- 
> 2.20.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20210616/141e7688/attachment.sig>


More information about the pve-devel mailing list