From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm "hang", 100% CPU usage when trying to create RAID-1 array with external bitmap
Date: Thu, 15 Jul 2010 12:35:39 +0200 [thread overview]
Message-ID: <4C3EE47B.5030506@wpkg.org> (raw)
In-Reply-To: <20100715074544.3172df47@notabene>
On 15.07.2010 07:45, Neil Brown wrote:
(...)
>> access("/mnt/src/bitmap", F_OK) = -1 ENOENT (No such file or directory)
>> open("/mnt/src/bitmap", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
>>
>>
>
> Hmm... that's rather embarrassing.
> This patch should fit it. Or you can explicitly set a bitmap chunk size -
> aim for several megabyte.
>
> Thanks for the report,
> NeilBrown
>
> diff --git a/bitmap.c b/bitmap.c
> index beef2dc..44a8677 100644
> --- a/bitmap.c
> +++ b/bitmap.c
> @@ -373,7 +373,7 @@ int CreateBitmap(char *filename, int force, char uuid[16],
> */
> chunksize = DEFAULT_BITMAP_CHUNK;
> /*<<20 for 2^20 chunks,>>9 to convert bytes to sectors */
> - while (array_size> (chunksize<< (20-9)))
> + while (array_size> ((unsigned long long)chunksize<< (20-9)))
It works fine with that patch applied, thanks a lot!
--
Tomasz Chmielewski
http://syneticon.net
next prev parent reply other threads:[~2010-07-15 10:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 10:53 mdadm "hang", 100% CPU usage when trying to create RAID-1 array with external bitmap Tomasz Chmielewski
2010-07-15 5:45 ` Neil Brown
2010-07-15 10:35 ` Tomasz Chmielewski [this message]
2010-07-18 19:09 ` John Stoffel
2010-07-19 23:26 ` Neil Brown
2010-07-20 14:14 ` John Stoffel
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=4C3EE47B.5030506@wpkg.org \
--to=mangoo@wpkg.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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.