All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: shylesh kumar <shylesh.mohan@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: LRC ec pool behaviour
Date: Thu, 28 May 2015 22:54:54 +0200	[thread overview]
Message-ID: <5567809E.3010103@dachary.org> (raw)
In-Reply-To: <CAMxOGo2Te_jSVMEp6FeE9VdbjFi-WaY3Ud498V3g_QEtPq1hPQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2527 bytes --]

Hi Shylesh,

On 28/05/2015 21:25, shylesh kumar wrote:
> Hi,
> 
> I created a LRC ec pool with the configuration
> 
> # ceph osd erasure-code-profile get  mylrc
> directory=/usr/lib64/ceph/erasure-code
> k=4
> l=3
> m=2
> plugin=lrc
> ruleset-failure-domain=osd
> 
> 
> 
> 
> One of the pg mapping looks like
> ----------------
> 11.4    579     0       0       0       0       11204014080     6       6       active+clean    2015-05-28 10:14:40.937902      6771'15221      6771:16093      [0,1,9,2,8,6,7,4]       0       [0,1,9,2,8,6,7,4]       0       6746'2718       2015-05-28 03:07:01.864631      0'0     2015-05-21 03:37:24.438653
> 
> 
> I am appending data  to an object in the above pg with the follwoing snippet using librados
> =======================
>   {
>                 char hello[4096] = {0,};
>                 (void) memcpy (hello, "hello world", 11);
>                 librados::bufferlist bl;
>                 bl.append(hello, 4096);
> 
>                 int i=5000;
>                 while (i > 0)    {
>                 ret = io_ctx.append("another2", bl, 4096);
>                 if (ret < 0) {
>                         std::cerr << "Couldn't write object! error " << ret << std::endl;
>                 //        exit(EXIT_FAILURE);
>                 } else {
>                         std::cout << "Wrote new object 'newobj' " << std::endl;
>                 }
>                 i--;
>                 }
>         }
> ======================
> 
> 
> I could see that stripe_0 is on osd.0 , till now I wrote data nearly 7MB , all the data is going to osd.0 and stripe_1 is on osd.1 with just a truncated file with no data ..osd.9 has global parity etc..

That does not seem right. 

> I was wondering is there any chunk size limit in LRC so that it will not write to other stripes till it fills upto the chunk size in one stripe.

To assert if you have discovered a problem, I wrote a test case that look similar to what you describe. You can repeat it with https://github.com/ceph/ceph/pull/4797 as follows:

  git clone -b wip-11665-erasure-code-lrc https://github.com/dachary/ceph ceph
  cd ceph
  ./run-make-check.sh

and repeat it after that with

  cd ceph/src
  test/osd/osd-scrub-repair.sh TEST_corrupt_and_repair_lrc

I would be happy to repeat the problem you had if you provide me with specific instructions to do so. 

Cheers

> 
> 
> 
> -- 
> Thanks 
> Shylesh
>  

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

           reply	other threads:[~2015-05-28 20:54 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAMxOGo2Te_jSVMEp6FeE9VdbjFi-WaY3Ud498V3g_QEtPq1hPQ@mail.gmail.com>]

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=5567809E.3010103@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=shylesh.mohan@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.