all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "DERUMIER, Alexandre via pve-devel" <pve-devel@lists.proxmox.com>
To: "pve-devel@lists.proxmox.com" <pve-devel@lists.proxmox.com>,
	"f.gruenbichler@proxmox.com" <f.gruenbichler@proxmox.com>
Cc: "DERUMIER, Alexandre" <alexandre.derumier@groupe-cyllene.com>
Subject: Re: [pve-devel] [PATCH qemu-server] qcow2: increase cache-size to 1GB
Date: Thu, 14 Aug 2025 14:14:34 +0000	[thread overview]
Message-ID: <mailman.97.1755180885.385.pve-devel@lists.proxmox.com> (raw)
In-Reply-To: <mailman.75.1755169848.385.pve-devel@lists.proxmox.com>

[-- Attachment #1: Type: message/rfc822, Size: 16152 bytes --]

From: "DERUMIER, Alexandre" <alexandre.derumier@groupe-cyllene.com>
To: "pve-devel@lists.proxmox.com" <pve-devel@lists.proxmox.com>, "f.gruenbichler@proxmox.com" <f.gruenbichler@proxmox.com>
Subject: Re: [pve-devel] [PATCH qemu-server] qcow2: increase cache-size to 1GB
Date: Thu, 14 Aug 2025 14:14:34 +0000
Message-ID: <d3d35e7701e478098349956797defae8340624d0.camel@groupe-cyllene.com>

some more tests with 1TB lvm qcow2:
------------------------------------

current patch

main image cluster_size=64k 
--------------------------------------------------------
cluster_size=64k cache-size=1GB: 
read 4k : 40k iops
write 4k: 25k iops
          	                       
+ 1 snapshot cluster_size=128k+suballocated, cache=size=1G:  
read 4k : 40kops iops
write 4k: 25k iops




main image cluster_size=1MB 
------------------     -----------------
cluster_size=1MB cache-size=32mb: 
read 4k : 40k iops
write 4k: 25k iops
---> bigger cluster need less cache
                       
+ 1 snapshot cluster 128k+suballocated, cache-size=32MB:     
read 4k : 3500 iops
write 4k: 2500iops
---> still not enough cache for 128k
 
  
cluster_size=1MB cache-size=1G: 
read 4k : 40k iops
write 4k: 25k iops
                       
+ 1 snapshot cluster_size=128k+suballocated, cache=size=1G:  
read 4k : 40kops iops
write 4k: 20k iops
---> enough cache  , performance are correct                          
                                  
                                  
cluster_size=1MB cache-size=32MB: 
read 4k : 40k iops
write 4k: 25k iops
                       
+ 1 snapshot cluster_size=1MB+suballocated, cache=size=32MB:     
read 4k : 40kiops
write 4k: 3000iops

---> write performance are bad with big cluster size for snapshot


cluster_size=1MB cache-size=1GB: 
read 4k : 40k iops
write 4k: 25k iops
                       
+ 1 snapshot cluster_size=1MB+suballocated, cache=size=1GB:     
read 4k : 40kiops
write 4k: 3000iops

---> write performance are bad with big cluster size for snapshot (even
with bigger cache)



So, snapshot really need small cluster size for good write performance,
to avoid big copy on write of backing image

Main image could have bigger cluster size, but I'm not sure of the
impact if // write occur on a specific cluster, maybe they could have
some kind of lock contention




some bench with enable sub allocated cluster on main image:

main image suballocated cluster_size=1MB cluster
------------------------------------------------
1MB cluster sub allocated 32mb cache : read 4k : 30k iops
                                       wirte 4: 6k iops
                                       
                                       
1MB cluster sub allocated 1GB cache : read 4k : 30k iops
                                       write 4: 6k iops
                                       

write performance is bad, better to avoid l2_extended=on on main image





[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

      reply	other threads:[~2025-08-14 14:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-13 13:46 Alexandre Derumier via pve-devel
2025-08-13 14:25 ` Fabian Grünbichler
2025-08-14 11:10   ` DERUMIER, Alexandre via pve-devel
2025-08-14 14:14     ` DERUMIER, Alexandre via pve-devel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mailman.97.1755180885.385.pve-devel@lists.proxmox.com \
    --to=pve-devel@lists.proxmox.com \
    --cc=alexandre.derumier@groupe-cyllene.com \
    --cc=f.gruenbichler@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal