All of lore.kernel.org
 help / color / mirror / Atom feed
* how to increase small file writes performance in ceph
@ 2011-04-07 13:55 huang jun
  2011-04-07 19:56 ` Josh Durgin
  0 siblings, 1 reply; 2+ messages in thread
From: huang jun @ 2011-04-07 13:55 UTC (permalink / raw)
  To: ceph-devel

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]

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
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!

[-- Attachment #2: zq.sh --]
[-- Type: application/x-sh, Size: 2980 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to increase small file writes performance in ceph
  2011-04-07 13:55 how to increase small file writes performance in ceph huang jun
@ 2011-04-07 19:56 ` Josh Durgin
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Durgin @ 2011-04-07 19:56 UTC (permalink / raw)
  To: huang jun; +Cc: ceph-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-07 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-07 13:55 how to increase small file writes performance in ceph huang jun
2011-04-07 19:56 ` Josh Durgin

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.