All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sage Weil <sage@newdream.net>
To: Xusangdi <xu.sangdi@h3c.com>
Cc: "Chen, Xiaoxi" <xiaoxi.chen@intel.com>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: RE: chooseleaf may cause some unnecessary pg migrations
Date: Sun, 18 Oct 2015 19:17:43 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.00.1510181912160.16833@cobra.newdream.net> (raw)
In-Reply-To: <FF8D83DAE5DF57468726B79904321E06047D8A@H3CMLB12-EX.srv.huawei-3com.com>

On Mon, 19 Oct 2015, Xusangdi wrote:
> 
> > -----Original Message-----
> > From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-owner@vger.kernel.org] On Behalf Of
> > Chen, Xiaoxi
> > Sent: Monday, October 19, 2015 9:11 AM
> > To: xusangdi 11976 (RD)
> > Cc: ceph-devel@vger.kernel.org
> > Subject: RE: chooseleaf may cause some unnecessary pg migrations
> >
> > Sorry but not following...
> >
> > > then shut down one or more osds (please don't touch the crushmap, just stop the osd service or kill
> > its process).
> >
> > In this case, OSD is only down but not out, but will be marked out after 300s.
> >
> > So in what case your patch is helping?
> >
> >       If you said your patch helps on "down and out" , then my experiment is exactly the case,
> >
> 
> I am afraid it is probably not. Could you tell me how did you simulate 
> the osd "down and out" situation using crushtool? If it was done by 
> arguments such as '--remove-item' or 'reweight-item', it modified the 
> crushmap and is not what I'm aiming for. 

There is a --weight argument (noted in usage near --test, which is the 
only piece that uses it).  The crush map is not modified--only the weight 
vector that is passed in when a mapping is calculated (which is the 
equivalent of the in/out state in Ceph's OSDMap).  This should let you 
simulate this case.

When I'm debugging/understanding these issues I usually change the dprintk 
#define at the top of crush/mapper.c and use crushtool or osdmaptool to 
calculate a single mapping, comparing the log before and after a 
particular change.

sage

  reply	other threads:[~2015-10-19  2:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13  8:22 chooseleaf may cause some unnecessary pg migrations Xusangdi
2015-10-13 14:20 ` Robert LeBlanc
2015-10-14  2:15   ` Xusangdi
2015-10-14 12:18     ` Sage Weil
2015-10-13 16:44 ` Sage Weil
2015-10-14  5:22   ` Xusangdi
2015-10-14 14:17     ` Sage Weil
     [not found]       ` <FF8D83DAE5DF57468726B79904321E06047677@H3CMLB12-EX.srv.huawei-3com.com>
2015-10-15 19:14         ` Sage Weil
2015-10-16  4:28           ` Chen, Xiaoxi
2015-10-16  6:12             ` Xusangdi
2015-10-16  6:26               ` Chen, Xiaoxi
2015-10-16  6:36                 ` Dałek, Piotr
2015-10-16  6:43                 ` Xusangdi
2015-10-19  1:11                   ` Chen, Xiaoxi
2015-10-19  2:08                     ` Xusangdi
2015-10-19  2:17                       ` Sage Weil [this message]
2015-10-19  7:33                         ` Chen, Xiaoxi
2015-10-19  8:12                           ` Xusangdi
2015-10-23 15:41                             ` Chen, Xiaoxi
2015-10-16 11:24           ` Xusangdi

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=alpine.DEB.2.00.1510181912160.16833@cobra.newdream.net \
    --to=sage@newdream.net \
    --cc=ceph-devel@vger.kernel.org \
    --cc=xiaoxi.chen@intel.com \
    --cc=xu.sangdi@h3c.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.