All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Liu <jeff.liu@easystack.cn>
To: Ning Yao <zay11022@gmail.com>, Haomai Wang <haomai@xsky.com>
Cc: ceph-devel <ceph-devel@vger.kernel.org>,
	"xfs@oss.sgi.com" <xfs@oss.sgi.com>
Subject: Re: Disable fiemap lead to Data In-balance between OSD
Date: Fri, 30 Sep 2016 11:23:07 +0800	[thread overview]
Message-ID: <57EDDA9B.5030807@easystack.cn> (raw)
In-Reply-To: <CALZt5jwaVhpjdw22avC4kNwQ44VFtAQxCuhCqSYsmRK4SMF8Ow@mail.gmail.com>

Could you please show your test cases about the fiemap issue against XFS?
I'd like to dig into it if that is still existing in upstream code base.

On 2016年09月29日 21:49, Ning Yao wrote:

XFS has #fiemap extent intervals limitted in kernel, so if we do not
use seek_data, seek_hole. It will lead to getting a wrong fiemap
(absence of some extents)  from a large object. It is actually not
security before Jewel with enabling filestore_seek_data_hole.
Regards
Ning Yao


2016-09-29 10:27 GMT+08:00 Haomai Wang <haomai@xsky.com>:

> On Thu, Sep 29, 2016 at 10:25 AM, Haomai Wang <haomai@xsky.com> wrote:
>> On Thu, Sep 29, 2016 at 12:26 AM, Ning Yao <zay11022@gmail.com> wrote:
>>> Hi,
>>>
>>> As lots of fiemap issues in XFS, fiemap is default disabled now,
>>> especially in Hammer, before seek_data, seek_hole is added.
>>>
>>> But disabling fiemap feature will cause a small sparse object become a
>>> large full object during PushOps, which may lead to notably data
>>> in-balance between OSD, especially on the new added OSD  during data
>>> rebalance. With those full objects, some OSDs may simultaneously
>>> becomes full.
>> Until now, I don't know existing problem with fiemap enabled in
>> hammer. Although we find it maybe problem when clone to a existing
>> overlap data range, but it won't exists in real case.
> Hmm, I can't guarantee this... I only means if you want to have sparse
> object, you can enable this. ....
>
>>> Furthermore, currently, it is impossible to make the full objects
>>> sparse again if we enable the fiemap feature in the future.
>>>
>>> So I think if any solutions to make a full object back to a sparse
>>> object again? One of the idea is to check whether the content in the
>>> object contains consecutive zero and punch zeros for those object
>>> during deep-scrub,  is that possible and reasonable?
>> Obviously it's a complex thing more than we get.
>>
>>>
>>> Regards
>>> Ning Yao
>>> --
>>> 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

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


-- 
Cheers,

Jeff Liu


  parent reply	other threads:[~2016-09-30  3:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 16:26 Disable fiemap lead to Data In-balance between OSD Ning Yao
2016-09-29  2:25 ` Haomai Wang
2016-09-29  2:27   ` Haomai Wang
2016-09-29 13:49     ` Ning Yao
2016-09-29 13:54       ` Haomai Wang
2016-09-30  3:23       ` Jeff Liu [this message]
2016-10-12 15:02         ` Haomai Wang
2016-10-13 17:06           ` Ning Yao
2016-10-14  2:25             ` Haomai Wang
2016-10-14  2:31               ` Sage Weil

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=57EDDA9B.5030807@easystack.cn \
    --to=jeff.liu@easystack.cn \
    --cc=ceph-devel@vger.kernel.org \
    --cc=haomai@xsky.com \
    --cc=xfs@oss.sgi.com \
    --cc=zay11022@gmail.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.