Re: 答复: journal alignment

2015-11-23 Thread Haomai Wang
Actually, the broken zero-copy for data is discouraging. I think the way we could do is rearrange the layout of journal entry, just like message we make journal header and payload(extra encoding bytes without data), then data and footer. I think it should be a easy adapt change? On Fri, Nov 20, 20

Re: 答复: journal alignment

2015-11-20 Thread Evgeniy Firsov
Do you see any performance difference between direct io and non direct io mode? If it¹s disabled, you don¹t need any buffer alignment. On 11/20/15, 5:29 AM, "ceph-devel-ow...@vger.kernel.org on behalf of Haomai Wang" wrote: >On Fri, Nov 20, 2015 at 9:08 PM, Sage Weil wrote: >> On Fri, 20 Nov 20

Re: 答复: journal alignment

2015-11-20 Thread Haomai Wang
On Fri, Nov 20, 2015 at 9:08 PM, Sage Weil wrote: > On Fri, 20 Nov 2015, Haomai Wang wrote: >> On Fri, Nov 20, 2015 at 7:41 PM, Sage Weil wrote: >> > On Fri, 20 Nov 2015, changtao381 wrote: >> >> Hi All, >> >> >> >> Thanks for you apply! >> >> >> >> If directioIO + async IO requirement that align

Re: 答复: journal alignment

2015-11-20 Thread Haomai Wang
On Fri, Nov 20, 2015 at 7:41 PM, Sage Weil wrote: > On Fri, 20 Nov 2015, changtao381 wrote: >> Hi All, >> >> Thanks for you apply! >> >> If directioIO + async IO requirement that alignment, it shouldn't aligned by >> PAGE for each journal entry. >> For it may write many entries of journal once ti

Re: 答复: journal alignment

2015-11-20 Thread 池信泽
...@ts.fujitsu.com [mailto:piotr.da...@ts.fujitsu.com] >> 发送时间: 2015年11月20日 16:42 >> 收件人: changtao381; ceph-devel@vger.kernel.org >> 主题: RE: journal alignment >> >>> -Original Message- >>> From: ceph-devel-ow...@vger.kernel.org [mailto:ceph-devel- &g

Re: 答复: journal alignment

2015-11-20 Thread 池信泽
原件- > 发件人: piotr.da...@ts.fujitsu.com [mailto:piotr.da...@ts.fujitsu.com] > 发送时间: 2015年11月20日 16:42 > 收件人: changtao381; ceph-devel@vger.kernel.org > 主题: RE: journal alignment > >> -Original Message- >> From: ceph-devel-ow...@vger.kernel.org [mailto:ceph-devel- >> ow

答复: journal alignment

2015-11-20 Thread changtao381
write] ? Am I right? -邮件原件- 发件人: piotr.da...@ts.fujitsu.com [mailto:piotr.da...@ts.fujitsu.com] 发送时间: 2015年11月20日 16:42 收件人: changtao381; ceph-devel@vger.kernel.org 主题: RE: journal alignment > -Original Message- > From: ceph-devel-ow...@vger.kernel.org [mailto:ceph-

RE: journal alignment

2015-11-20 Thread piotr.da...@ts.fujitsu.com
> -Original Message- > From: ceph-devel-ow...@vger.kernel.org [mailto:ceph-devel- > ow...@vger.kernel.org] On Behalf Of changtao381 > Sent: Friday, November 20, 2015 9:33 AM > > HI All, > > Why it is needed an entry of journal t is aligned by CEPH_PAGE_MASK ? For > it causes the data o

Re: journal alignment

2015-11-20 Thread Haomai Wang
On Fri, Nov 20, 2015 at 4:33 PM, changtao381 wrote: > HI All, > > Why it is needed an entry of journal t is aligned by CEPH_PAGE_MASK ? For > it causes the data of journal write are amplified by 2X for small io > linux aio/dio required this > For example write io size 4096 bytes, it may write

journal alignment

2015-11-20 Thread changtao381
HI All, Why it is needed an entry of journal t is aligned by CEPH_PAGE_MASK ? For it causes the data of journal write are amplified by 2X for small io For example write io size 4096 bytes, it may write 8192 bytes prepare_single_write 2 will write 98304 : seq 24 len 4324 -> 8192 (head 40 pre_p