From: Ilya Dryomov <idryomov@gmail.com>
To: Zhi Yong Wu <zwu.kernel@gmail.com>
Cc: linux-btrfs@vger.kernel.org, chris.mason@fusionio.com,
linuxram@linux.vnet.ibm.com, sekharan@us.ibm.com,
mingming cao <mingming@oracle.com>
Subject: Re: [RFC] How to enable btrfs reserve block space from specific device?
Date: Wed, 27 Mar 2013 13:34:51 +0200 [thread overview]
Message-ID: <20130327113451.GA1979@zambezi.lan> (raw)
In-Reply-To: <CAEH94Lgbo_QLkWzqE5cOSC7WAV5HCKhBSKR6LUG2trePH7D=_w@mail.gmail.com>
On Wed, Mar 27, 2013 at 09:45:59AM +0800, Zhi Yong Wu wrote:
> HI,
>
> When i work on btrfs hot relocation feature, i hit one question
> about block reservation. btrfs hot relocation need to reserve block
> space from specific devices such as SSD, but current btrfs reserving
> code doesn't differentiate if block space is reserved from SSD or HDD.
> In order to make btrfs support this, I thought that we can introduce
> one new block group or flag, but this will maybe make large impact on
> current existing other functions. For this, does any guy have some
> better idea? thanks.
Hi,
Sorry for the late reply. I have a lot on my plate right now, so I
haven't looked at your WIP code. However, based on my knowledge, I can
tell you that block reservation problem is completely orthogonal to the
way you choose to handle hot data storage. A separate block group is
one way to do it, and probably the easiest one. Block groups -> chunks
is a 1:1 mapping, so, for now, it might make sense to have one giant
block group spanning over the entire hot data device. OTOH, IIRC the
original implementation from IBM just used the rotation flag to detect
"hot data" devices. You have a lot of choices here, but, if you are
planning on implementing mirrored/striped "hot data" devices in future,
I'd definitely go with block groups, since that'll give you some of the
infrastructure for that for free.
Thanks,
Ilya
next prev parent reply other threads:[~2013-03-27 11:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-27 1:45 [RFC] How to enable btrfs reserve block space from specific device? Zhi Yong Wu
2013-03-27 11:34 ` Ilya Dryomov [this message]
2013-03-27 13:50 ` Zhi Yong Wu
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=20130327113451.GA1979@zambezi.lan \
--to=idryomov@gmail.com \
--cc=chris.mason@fusionio.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linuxram@linux.vnet.ibm.com \
--cc=mingming@oracle.com \
--cc=sekharan@us.ibm.com \
--cc=zwu.kernel@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