All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xing Lin <xinglin@cs.utah.edu>
To: Greg Farnum <greg@inktank.com>
Cc: Wido den Hollander <wido@42on.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: When ceph synchronizes journal to disk?
Date: Tue, 05 Mar 2013 18:50:02 -0700	[thread overview]
Message-ID: <5136A0CA.7050001@cs.utah.edu> (raw)
In-Reply-To: <B8143C8DB41A458098CA3B73D784685B@inktank.com>

Thanks very much for all your explanations. I am now much clearer about 
it. Have a great day!

Xing

On 03/05/2013 01:12 PM, Greg Farnum wrote:
>> All the data goes to the disk in write-back mode so it isn't safe yet
>> >until the flush is called. That's why it goes into the journal first, to
>> >be consistent at all times.
>> >  
>> >If you would buffer everything in the journal and flush that at once you
>> >would overload the disk for that time.
>> >  
>> >Let's say you have 300MB in the journal after 10 seconds and you want to
>> >flush that at once. That would mean that specific disk is unable to do
>> >any other operations then writing with 60MB/sec for 5 seconds.
>> >  
>> >It's better to always write in write-back mode to the disk and flush at
>> >a certain point.
>> >  
>> >In the meantime the scheduler can do it's job to balance between the
>> >reads and the writes.
>> >  
>> >Wido
> Yep, what Wido said. Specifically, we do force the data to the journal with an fsync or equivalent before responding to the client, but once it's stable on the journal we give it to the filesystem (without doing any sort of forced sync). This is necessary — all reads are served from the filesystem.
> -Greg

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

  reply	other threads:[~2013-03-06  1:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 12:36 When ceph synchronizes journal to disk? Xing Lin
2013-03-04 16:32 ` Sage Weil
2013-03-05  4:08   ` Xing Lin
2013-03-04 16:55 ` Gregory Farnum
2013-03-05  4:33   ` Xing Lin
2013-03-05  8:37     ` When ceph synchronizes journal to disk? / read request Dieter Kasper
2013-03-05 20:13       ` Greg Farnum
2013-03-05 13:54     ` When ceph synchronizes journal to disk? Wido den Hollander
2013-03-05 20:12       ` Greg Farnum
2013-03-06  1:50         ` Xing Lin [this message]
2013-03-05 14:27     ` Ugis
2013-03-05  4:47   ` Xing Lin

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=5136A0CA.7050001@cs.utah.edu \
    --to=xinglin@cs.utah.edu \
    --cc=ceph-devel@vger.kernel.org \
    --cc=greg@inktank.com \
    --cc=wido@42on.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.