linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM2 : performance drop even after deleting the snapshot
@ 2022-10-12 17:12 Pawan Sharma
  2022-10-13  6:53 ` Pawan Sharma
  0 siblings, 1 reply; 13+ messages in thread
From: Pawan Sharma @ 2022-10-12 17:12 UTC (permalink / raw)
  To: linux-lvm; +Cc: Kapil Upadhayay, Mitta Sai Chaithanya


[-- Attachment #1.1: Type: text/plain, Size: 1338 bytes --]

Hi Everyone,


We are evaluating lvm2 snapshots and doing performance testing on it. This is what we are doing :

  1.  dump some data to lvm2 volume (using fio)
  2.  take the snapshot
  3.  delete the snapshot (no IOs anywhere after creating the snapshot)
  4.  run the fio on lvm2 volume

Here as you can see, we are just creating the snapshot and immediately deleting it. There are no IOs to the main volume or anywhere. When we run the fio after this (step 4) and we see around 50% drop in performance with reference to the number we get in step 1.

It is expected to see a performance drop if there is a snapshot because of the COW. But here we deleted the snapshot, and it is not referring to any data also. We should not see any performance drop here.

Could someone please help me understand this behavior. Why are we seeing the performance drop in this case? It seems like we deleted the snapshot but still it is not deleted, and we are paying the COW penalty.

System Info:

OS : ubuntu 18.04
Kernel : 5.4.0

# lvm version
  LVM version:     2.02.176(2) (2017-11-03)
  Library version: 1.02.145 (2017-11-03)
  Driver version:  4.41.0

We also tried on latest ubuntu with newer version of LVM. We got the same behavior.

Any help/pointers would be appreciated. Thanks in advance.

Regards,
Pawan

[-- Attachment #1.2: Type: text/html, Size: 5746 bytes --]

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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-10-20 18:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 17:12 [linux-lvm] LVM2 : performance drop even after deleting the snapshot Pawan Sharma
2022-10-13  6:53 ` Pawan Sharma
2022-10-13 10:50   ` Zdenek Kabelac
2022-10-14 19:31     ` [linux-lvm] [EXTERNAL] " Mitta Sai Chaithanya
2022-10-17 13:10       ` Zdenek Kabelac
2022-10-17 13:41         ` Erwin van Londen
2022-10-20 18:19           ` Zdenek Kabelac
2022-10-18  3:33         ` Pawan Sharma
2022-10-18 11:15           ` Zdenek Kabelac
2022-10-14 19:50   ` [linux-lvm] " Roger Heflin
2022-10-14 20:28     ` Roberto Fastec
2022-10-17  5:01       ` Kapil Upadhayay
2022-10-17 15:16       ` Demi Marie Obenour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).