From: Zdenek Kabelac <zkabelac@redhat.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] copy lv from lv?
Date: Thu, 31 Mar 2011 14:15:04 +0200 [thread overview]
Message-ID: <4D947048.8060006@redhat.com> (raw)
In-Reply-To: <alpine.LRH.2.00.1103302019060.412@bmsred.bmsi.com>
Dne 31.3.2011 02:27, Stuart D. Gathman napsal(a):
> On Wed, 30 Mar 2011, Ray Morris wrote:
>
>>> 1..how to pipe two copy together
>>
>> This is what I use after some experimenting. I've found
>> it's often far faster than the more obvious use of dd:
>>
>> nice -5 dd if=/dev/clones/from bs=64M iflag=direct |
>> dd of=/dev/scratch/to bs=64M oflag=direct
>>
>> I use 64 MB extents. For smaller extents, a matching dd
>> block size might be good.
>
> Thanks for that recipe. It ought to be in lvm2 as an lvcopy utility
> (dynamically determining extent size, etc).
>
Isn't this already done in a better way by 'dd' using 'zero' copy mechanism ??
(assuming it is already using either 'mmap()' -> 'write()' or 'splice()' as
your proposed piped copy is doing a lot of pointless memory copies and cache
trashing.
If it's still faster - then your kernel setting for buffering are most probaly
not tuned for the best performance.
Zdenek
next prev parent reply other threads:[~2011-03-31 12:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 12:53 [linux-lvm] copy lv from lv? yue
2011-03-29 17:48 ` Ray Morris
2011-03-30 13:49 ` yue
2011-03-30 18:28 ` Ray Morris
2011-03-31 0:27 ` Stuart D. Gathman
2011-03-31 12:15 ` Zdenek Kabelac [this message]
2011-04-05 16:25 ` Ray Morris
2011-04-05 21:10 ` Zdenek Kabelac
2011-04-05 21:29 ` [linux-lvm] Taking it off list - " Ray Morris
2011-04-01 2:46 ` [linux-lvm] " yue
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=4D947048.8060006@redhat.com \
--to=zkabelac@redhat.com \
--cc=linux-lvm@redhat.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).