All of lore.kernel.org
 help / color / mirror / Atom feed
* When ceph synchronizes journal to disk?
@ 2013-03-03 12:36 Xing Lin
  2013-03-04 16:32 ` Sage Weil
  2013-03-04 16:55 ` Gregory Farnum
  0 siblings, 2 replies; 12+ messages in thread
From: Xing Lin @ 2013-03-03 12:36 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

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

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

end of thread, other threads:[~2013-03-06  1:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-03-05 14:27     ` Ugis
2013-03-05  4:47   ` Xing Lin

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.