public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Fiona Ebner <f.ebner@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] qcow2 internal snapshot: 4k write speed reduce to 100~200 iops on ssd ?
Date: Wed, 11 Sep 2024 11:11:29 +0200	[thread overview]
Message-ID: <6a44716a-88bc-4523-b210-d67031917d8f@proxmox.com> (raw)
In-Reply-To: <mailman.477.1725033712.302.pve-devel@lists.proxmox.com>

Hi,

Am 30.08.24 um 18:01 schrieb DERUMIER, Alexandre via pve-devel:
> Hi,
> 
> I was doing tests with gfs2 && ocfs2,
> 
> and I have notice 4k randwrite iops going from 20000 iops to
> 100~200iops when a snapshot is present.
> 
> I thinked it was related to gfs2 && ocfs2 allocation, 
> but I can reproduce too with a simple qcow2 file on
> a local ssd drive.
> 

Is the performance drop also this big with the local storage?

> is it expected ?
> 
> (I don't have use qcow2 snapshot since 10year, so I really don't 
>  remember performance).
> 

A performance drop is of course expected, because AFAIU it needs to do
COW for the sectors that the snapshot references, but the drop does
sound rather dramatic in your case. The performance should be better
again once the COW is done, e.g. when running another test afterwards. I
quickly tested in a nested VM with qcow2 disk on a directory storage and
--numjobs=4:

ran test, got ~33k IOPS
made a snapshot
ran test, got ~20k IOPS (it starts out very slow and then recovers)
ran test, got ~33k IOPS again

Best Regards,
Fiona

> 
> Using external snapshot file, I'm around 10000iops.
> 
> test inside the vm:
> 
> fio --filename=/dev/sdX --ioengine=libaio --direct 1 --bs=4k  --
> rw=randwrite --numjobs=64
> 
> 


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


  reply	other threads:[~2024-09-11  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-30 16:01 DERUMIER, Alexandre via pve-devel
2024-09-11  9:11 ` Fiona Ebner [this message]
2024-09-19 13:50   ` DERUMIER, Alexandre via pve-devel

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=6a44716a-88bc-4523-b210-d67031917d8f@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=pve-devel@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal