From: Guang Subject: Re: RADOS + deep scrubbing performance issues in production environment Date: Mon, 3 Feb 2014 21:40:07 +0800 Message-ID: References: <20140127151321.GD26390@philipgian-mac> <20140128181306.GC11532@philipgian-mac> <066498EC-D137-472A-85DB-93751E85C753@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/mixed; boundary="===============0303378362==" Return-path: In-Reply-To: <066498EC-D137-472A-85DB-93751E85C753-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ceph-users-bounces-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org Sender: ceph-users-bounces-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org To: Filippos Giannakos , "ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Development" , "ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org" Cc: synnefo-devel-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Id: ceph-devel.vger.kernel.org --===============0303378362== Content-Type: multipart/alternative; boundary="Apple-Mail=_B23FDCA9-018B-412A-A12B-63E9E9FBCDF8" --Apple-Mail=_B23FDCA9-018B-412A-A12B-63E9E9FBCDF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii +ceph-users. Does anybody have the similar experience of scrubbing / deep-scrubbing? Thanks, Guang On Jan 29, 2014, at 10:35 AM, Guang wrote: > Glad to see there are some discussion around scrubbing / = deep-scrubbing. >=20 > We are experiencing the same that scrubbing could affect latency quite = a bit and so far I found two slow patterns (dump_historic_ops): 1) = waiting from being dispatched 2) waiting in the op working queue to be = fetched by an available op thread. For the first slow pattern, it looks = like there is lock (as dispatcher stop working for 2 seconds and then = resume, same for scrubber thread), that needs further investigation. For = the second slow pattern, as scrubbing brings more ops (for scrubbing = check), that make the op thread's work load increase (client op has a = lower priority), I think that could be improved by increasing the op = thread number, I will confirm this analysis by adding more op threads = and turn on scrubbing on OSD basis. >=20 > Does the above observation and analysis make sense? >=20 > Thanks, > Guang >=20 > On Jan 29, 2014, at 2:13 AM, Filippos Giannakos = wrote: >=20 >> On Mon, Jan 27, 2014 at 10:45:48AM -0800, Sage Weil wrote: >>> There is also=20 >>>=20 >>> ceph osd set noscrub >>>=20 >>> and then later >>>=20 >>> ceph osd unset noscrub >>>=20 >>> I forget whether this pauses an in-progress PG scrub or just makes = it stop=20 >>> when it gets to the next PG boundary. >>>=20 >>> sage >>=20 >> I bumped into those settings but I couldn't find any documentation = about them. >> When I first tried them, they didn't do anything immediately, so I = thought they >> weren't the answer. After your mention, I tried them again, and after = a while >> the deep-scrubbing stopped. So I'm guessing they stop scrubbing on = the next PG >> boundary. >>=20 >> I see from this thread and others before, that some people think it = is a spindle >> issue. I'm not sure that it is just that. Replicating it to an idle = cluster that >> can do more than 250MiB/seconds and pausing for 4-5 seconds on a = single request, >> sounds like an issue by itself. Maybe there is too much locking or = not enough >> priority to the actual I/O ? Plus, that idea of throttling deep = scrubbing based >> on the iops sounds appealing. >>=20 >> Kind Regards, >> --=20 >> Filippos >> >> -- >> To unsubscribe from this list: send the line "unsubscribe ceph-devel" = in >> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >=20 --Apple-Mail=_B23FDCA9-018B-412A-A12B-63E9E9FBCDF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii yguang11-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> = wrote:
Glad to see there are some = discussion around scrubbing / deep-scrubbing.

We are experiencing the same that scrubbing could affect latency = quite a bit and so far I found two slow patterns = (dump_historic_ops)1) waiting from being = dispatched 2) waiting in the op working queue to be fetched by an = available op thread. For the first slow pattern, it looks like there is = lock (as dispatcher stop working for 2 seconds and then resume, same for = scrubber thread), that needs further investigation. For the second slow = pattern, as scrubbing brings more ops (for scrubbing check), that make = the op thread's work load increase (client op has a lower priority), I = think that could be improved by increasing the op thread = number, I will confirm this analysis by adding more op threads and turn = on scrubbing on OSD basis.

Does the = above observation and analysis make = sense?

Thanks,
Guang

On Jan 29, 2014, at 2:13 AM, = Filippos Giannakos <philipgian-Sqt7GMbKoOQ@public.gmane.org> = wrote:

On Mon, Jan 27, 2014 at 10:45:48AM -0800, Sage Weil = wrote:
There is also

ceph osd set = noscrub

and then later

ceph osd unset noscrub

I = forget whether this pauses an in-progress PG scrub or just makes it stop =
when it gets to the next PG = boundary.

sage

I bumped into those settings = but I couldn't find any documentation about them.
When I first tried = them, they didn't do anything immediately, so I thought they
weren't = the answer. After your mention, I tried them again, and after a = while
the deep-scrubbing stopped. So I'm guessing they stop scrubbing = on the next PG
boundary.

I see from this thread and others = before, that some people think it is a spindle
issue. I'm not sure = that it is just that. Replicating it to an idle cluster that
can do = more than 250MiB/seconds and pausing for 4-5 seconds on a single = request,
sounds like an issue by itself. Maybe there is too much = locking or not enough
priority to the actual I/O ? Plus, that idea of = throttling deep scrubbing based
on the iops sounds = appealing.

Kind Regards,
--
Filippos
<philipgian-Sqt7GMbKoOQ@public.gmane.org>
--
T= o unsubscribe from this list: send the line "unsubscribe ceph-devel" = in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.orgMore majordomo info at  http://vger.kernel.org= /majordomo-info.html


= --Apple-Mail=_B23FDCA9-018B-412A-A12B-63E9E9FBCDF8-- --===============0303378362== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ceph-users mailing list ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com --===============0303378362==--