All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xing Lin <xinglin@cs.utah.edu>
To: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: When ceph synchronizes journal to disk?
Date: Sun, 03 Mar 2013 05:36:40 -0700	[thread overview]
Message-ID: <513343D8.8050402@cs.utah.edu> (raw)

Hi,

There were some discussions about this before on the mailing list but I 
am still confused with this. I thought Ceph would flush data from the 
journal to disk when either the journal is full or when the time to do 
synchronization is due. In my test experiment, I used 24 osds(one osd 
for each disk). I used a 10 GB tmpfs file as the journal disk for each 
osd. Then for testing, I delayed the synchronization between the journal 
and disk on purpose. I increased the 'journal min sync interval' to be 
60 s and 'journal max sync interval' to be 300 s. Then I created a rbd 
and then started a 4M sequential write workload with fio for 30 seconds. 
I was expecting that no IO should happen to disks, unless we have filled 
240 GB data (10G*24). However, 'iostat' showed there was data
started to be written into disks (at about 20 MB/s per disk), right 
after I started the sequential workload. Could someone help to explain 
this situation? Thanks,

I am running 0.48.2. The related configuration is as follows.
-----------------
[osd]
         osd journal size = 10000
         osd journal = /dev/shm/journal/$name-journal
         journal dio = false
         filestore xattr use omap = true

         # The maximum interval in seconds for synchronizing the filestore.
         filestore min sync interval = 60
         filestore max sync interval = 300
-------------

Xing

             reply	other threads:[~2013-03-03 12:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 12:36 Xing Lin [this message]
2013-03-04 16:32 ` When ceph synchronizes journal to disk? 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
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=513343D8.8050402@cs.utah.edu \
    --to=xinglin@cs.utah.edu \
    --cc=ceph-devel@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 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.