linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Gionatan Danti <g.danti@assyoma.it>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Roger Heflin <rogerheflin@gmail.com>,
	Malin Bruland <malin.bruland@pm.me>
Subject: Re: [linux-lvm] lvconvert --uncache takes hours
Date: Thu, 02 Mar 2023 18:34:04 +0100	[thread overview]
Message-ID: <17a0cca9c38c6eb8384275f68a2b465f@assyoma.it> (raw)
In-Reply-To: <CAAMCDeftn7gLN8s3EMFer+jJ95dRkdpR4007hDMqNNhjrbGDJA@mail.gmail.com>

Il 2023-03-02 01:51 Roger Heflin ha scritto:
> A spinning raid6 array is slow on writes (see raid6  write penalty).
> Because of that the array can only do about 100 write operattions/sec.

True. But does flushing cached data really proceed in random LBA order 
(as seen by HDDs), rather than trying to coalesce writes in linear 
fashion?

> If the disk is doing other work then it only has the extra capacity so
> it could destage slower.
> 
> A lot depends on how big each chunk is.     The lvmcache indicates the
> smallest chunksize is 32k.
> 
> 100G / 32k = 3 million, and at 100seeks/sec that comes to at least an 
> hour.

You are off an order of magnitude: 3 millions IOP at 100 IOPs means 
~30000s, so about 9 hours.

> Lvm bookkeeping has to also be written to the spinning disks I would
> think, so 2 hours if the array were idle.
> 
> Throw in a 50% baseload on the disks and you get 4 hours.
> 
> Hours is reasonable.

If flushing happens in random disk order, than yes, you are bound to 
wait several hours indeed.

Regards.

-- 
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@assyoma.it - info@assyoma.it
GPG public key ID: FF5F32A8

_______________________________________________
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/


  parent reply	other threads:[~2023-03-02 17:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01 22:44 [linux-lvm] lvconvert --uncache takes hours Roy Sigurd Karlsbakk
2023-03-01 22:55 ` Demi Marie Obenour
2023-03-02  0:51 ` Roger Heflin
2023-03-02  8:33   ` Roy Sigurd Karlsbakk
2023-03-02 11:27     ` Roger Heflin
2023-03-02 17:34   ` Gionatan Danti [this message]
2023-03-02 18:33     ` Roger Heflin
2023-03-02 20:47       ` Gionatan Danti

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=17a0cca9c38c6eb8384275f68a2b465f@assyoma.it \
    --to=g.danti@assyoma.it \
    --cc=linux-lvm@redhat.com \
    --cc=malin.bruland@pm.me \
    --cc=rogerheflin@gmail.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;
as well as URLs for NNTP newsgroup(s).