From: NeilBrown <neilb@suse.de>
To: Roberto Spadim <roberto@spadim.com.br>
Cc: Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: cpu/memory use
Date: Thu, 20 Jan 2011 12:29:17 +1100 [thread overview]
Message-ID: <20110120122917.3eb0a888@notabene.brown> (raw)
In-Reply-To: <AANLkTincv7RsGN5mOwAiYhPqH9ryiJ31yoVsF_9-ywnQ@mail.gmail.com>
On Wed, 19 Jan 2011 22:14:45 -0200 Roberto Spadim <roberto@spadim.com.br>
wrote:
> Hi, i wass thinking about cpu/memory use
> i have a dual (three four) cpu
> could i make linux to only use cpu1 for raid? and others to anythink
> else, don´t migrate raid between cpus... and don´t allow others
> programs to use raid cpu...
> is it possible?
> is it dificult?
> it´s more linux related feature, not raid related, but could we implement it?
> what about memory usage? how many memory software raid use? is it per
> device, per raid, does it have a hard limit (offcourse)? could we
> calculate it? for example i want raid1 with two disks of 1tb, how many
> memory should i buy?
>
For levels other than RAID4/5/6, md/raid does not use any significant amount
of CPU or memory.
For RAID4/5/6, md's use for CPU is single-threads so it will only use a
single CPU - which ever one the scheduler allocates it to from time to time.
The only room for improvement that I can see would be to allow the 'xor'
calculation to be run in parallel on multiple CPUs and that would only help
if the storage devices were nearly as fast as a CPU. Where we have tried
parallelising xor, it has only made things slower.
For your particular question about RAID1 - use a RAID1 across two devices
would use less than 100K more than using just one of the devices.
During resync it might use as much as a couple of megabytes of extra memory.
NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-01-20 1:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 0:14 cpu/memory use Roberto Spadim
2011-01-20 1:29 ` NeilBrown [this message]
2011-01-20 3:33 ` Roberto Spadim
2011-01-20 10:31 ` David Brown
2011-01-20 12:12 ` Roberto Spadim
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=20110120122917.3eb0a888@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=roberto@spadim.com.br \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).