From: Josh Durgin <josh.durgin@dreamhost.com>
To: huang jun <hjwsm1989@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: how to increase small file writes performance in ceph
Date: Thu, 07 Apr 2011 12:56:49 -0700 [thread overview]
Message-ID: <4D9E1701.7090902@dreamhost.com> (raw)
In-Reply-To: <BANLkTinj4RYa0gQ5Nyshv2_oKEei-kaU+Q@mail.gmail.com>
On 04/07/2011 06:55 AM, huang jun wrote:
> hi,developers
> Recently,i test ceph's performance of writing small files,but the result
> seems not so good.
>
> i have 4 OSDs (on two hosts,each have two cosd process), and 4 clients,
> 3 of them execute the zq.sh script,and 1 writes small files :
> for i in {1..30000}; do
> dd if=/dev/zero of=$i.txt bs=10M count=1
> done
> and write speed is about 7MB/s~12MB/s
I'd expect better performance, but this depends on your cluster setup.
We have some guidelines for improving performance on the wiki:
http://ceph.newdream.net/wiki/Troubleshooting#Performance
Another thing that may be causing problems when writing many small files
is the MDS cache, if it's too small. You can set the size of this in the
mds section of your ceph.conf:
mds cache size = 300000
> my ceph version 0.24.3
> linux kernel version 2.6.35
> i want to know that does the cluster size matters our write speed?
> does our filesystem good at small files writing?
>
> thanks!
Ideally, write speed is limited by client bandwidth, but there are often
bottlenecks in other areas. For example, you could have too few OSDs to
handle the amount of data you're writing. Writing lots of small files
will involve more metadata operations, which should be handled well with
enough MDSs. There's ongoing work to make this more efficient for
directories with large numbers of files, but it's not quite ready to be
used yet.
-Josh Durgin
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2011-04-07 19:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 13:55 how to increase small file writes performance in ceph huang jun
2011-04-07 19:56 ` Josh Durgin [this message]
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=4D9E1701.7090902@dreamhost.com \
--to=josh.durgin@dreamhost.com \
--cc=ceph-devel@vger.kernel.org \
--cc=hjwsm1989@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.