linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: wks1986 <wks1986@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: A device dedicated for metadata?
Date: Wed, 28 Jul 2010 17:32:01 +0800	[thread overview]
Message-ID: <AANLkTik3Mrf+vY6qW6TTtGEghm48ma8tjiWYGfcLhhMq@mail.gmail.com> (raw)

Hello

Recently I am learning about the Btrfs.

My requirement is to construct a cross-device btrfs volume consisting
of a single SSD and many (much larger) HDDs.  The tricky part is that
I want the SSD to be dedicated to metadata since SSDs are much faster
(and more expensive) than HDDs and metadata are much more frequently
queried than data.  And I do not want ordinary data to use up the
precious space on the SSD in case there would be no room for metadata.

I have figured out that I can keep the metadata stored inside the
first device by applying the "-m single" option to mkfs.btrfs.
However, I do not know how to require that data should NOT be
allocated on the SSD.  I read the mkfs code.  It appears to me that it
can be worked around by excluding the SSD from the "raid group" for
ordinary data.

A recent patch have been proposed to move "hot" (according to
statistics) data to SSDs in order to improve performance.  My case is
similar, but I know in advance that metadata are hotter.

I am not very confident about what I have found, so I need some
comment.  Is it necessary to modify the Btrfs code?  On the other
hand, I have not figured out exactly how much metadata there would be
with a given amount of data.  How significant will it be to exclude
ordinary data from the SSD?

Kunshan Wang

             reply	other threads:[~2010-07-28  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-28  9:32 wks1986 [this message]
2010-07-28 13:14 ` A device dedicated for metadata? Wengang Wang
2010-07-28 15:49   ` wks1986
2010-07-28 17:49     ` Sean Bartell

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=AANLkTik3Mrf+vY6qW6TTtGEghm48ma8tjiWYGfcLhhMq@mail.gmail.com \
    --to=wks1986@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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).