[pve-devel] [PATCH qemu-server] qemu-img convert: use cache=none

Alexandre DERUMIER aderumier at odiso.com
Fri Mar 23 16:45:11 CET 2018


any impact on ceph rbd ?  (as writeback help a lot with sequential writes on ceph)


----- Mail original -----
De: "Fabian Grünbichler" <f.gruenbichler at proxmox.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Vendredi 23 Mars 2018 11:12:16
Objet: [pve-devel] [PATCH qemu-server] qemu-img convert: use cache=none

this fixes an issue with zvols, which require cache=none and eat up all 
free memory as buffered pages otherwise 

https://github.com/zfsonlinux/zfs/issues/7235 

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com> 
--- 
PVE/QemuServer.pm | 1 + 
1 file changed, 1 insertion(+) 

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm 
index 061effa..e4b090b 100644 
--- a/PVE/QemuServer.pm 
+++ b/PVE/QemuServer.pm 
@@ -6146,6 +6146,7 @@ sub qemu_img_convert { 
my $cmd = []; 
push @$cmd, '/usr/bin/qemu-img', 'convert', '-p', '-n'; 
push @$cmd, '-s', $snapname if($snapname && $src_format eq "qcow2"); 
+ push @$cmd, '-t', 'none', '-T', 'none', 
push @$cmd, '-f', $src_format, '-O', $dst_format, $src_path; 
if ($is_zero_initialized) { 
push @$cmd, "zeroinit:$dst_path"; 
-- 
2.14.2 


_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 




More information about the pve-devel mailing list