* raid1 on HDD + RAM ?
@ 2008-09-30 15:49 Janek Kozicki
2008-09-30 17:09 ` David Greaves
2008-09-30 18:21 ` Robin Hill
0 siblings, 2 replies; 6+ messages in thread
From: Janek Kozicki @ 2008-09-30 15:49 UTC (permalink / raw)
To: Linux RAID Mailing List
Hi,
It's possible to have a ramdisk device. Would it make any sense in
doing raid1 using a common HDD and a ramdisk?
They would automatically sync on boot-up of the computer.
I'm asking because an ultra-fast READ and normal WRITE would be
useful for me...
--
Janek Kozicki |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: raid1 on HDD + RAM ?
2008-09-30 15:49 raid1 on HDD + RAM ? Janek Kozicki
@ 2008-09-30 17:09 ` David Greaves
2008-09-30 19:21 ` Janek Kozicki
2008-09-30 18:21 ` Robin Hill
1 sibling, 1 reply; 6+ messages in thread
From: David Greaves @ 2008-09-30 17:09 UTC (permalink / raw)
To: Janek Kozicki; +Cc: Linux RAID Mailing List
Janek Kozicki wrote:
> Hi,
>
> It's possible to have a ramdisk device.
yes
> Would it make any sense in
> doing raid1 using a common HDD and a ramdisk?
It sounds interesting if you have a need...
md just uses block devices so there shouldn't be a problem.
> They would automatically sync on boot-up of the computer.
You'd need to create and --add the ramdisk...
> I'm asking because an ultra-fast READ and normal WRITE would be
> useful for me...
Also look at the --write-mostly and --write-behind options in mdadm.
David
--
"Don't worry, you'll be fine; I saw it work in a cartoon once..."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: raid1 on HDD + RAM ?
2008-09-30 17:09 ` David Greaves
@ 2008-09-30 19:21 ` Janek Kozicki
2008-09-30 20:43 ` David Greaves
0 siblings, 1 reply; 6+ messages in thread
From: Janek Kozicki @ 2008-09-30 19:21 UTC (permalink / raw)
To: Linux RAID Mailing List
David Greaves said: (by the date of Tue, 30 Sep 2008 18:09:57 +0100)
> > They would automatically sync on boot-up of the computer.
> You'd need to create and --add the ramdisk...
ok, I'll figure this out :)
> > I'm asking because an ultra-fast READ and normal WRITE would be
> > useful for me...
>
> Also look at the --write-mostly and --write-behind options in mdadm.
thanks, this is great news for me. For real use I will need to
repartition my hard drive - to create another partition for that.
But just for testing - will it work if mdadm will use LVM partition,
which is already on top of mdadm raid ?
Or maybe just use some huge file as a loopback device?
Which testing method is better?
--
Janek Kozicki |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: raid1 on HDD + RAM ?
2008-09-30 19:21 ` Janek Kozicki
@ 2008-09-30 20:43 ` David Greaves
0 siblings, 0 replies; 6+ messages in thread
From: David Greaves @ 2008-09-30 20:43 UTC (permalink / raw)
To: Janek Kozicki; +Cc: Linux RAID Mailing List
Janek Kozicki wrote:
> David Greaves said: (by the date of Tue, 30 Sep 2008 18:09:57 +0100)
>
>>> They would automatically sync on boot-up of the computer.
>> You'd need to create and --add the ramdisk...
>
> ok, I'll figure this out :)
>
>
>
>>> I'm asking because an ultra-fast READ and normal WRITE would be
>>> useful for me...
>> Also look at the --write-mostly and --write-behind options in mdadm.
>
> thanks, this is great news for me. For real use I will need to
> repartition my hard drive - to create another partition for that.
>
> But just for testing - will it work if mdadm will use LVM partition,
> which is already on top of mdadm raid ?
yes, absolutely.
md works with *any* block device.
> Or maybe just use some huge file as a loopback device?
>
> Which testing method is better?
Since you are intending not to use the device then they should be the same.
I'd use an lvm partition though.
David
--
"Don't worry, you'll be fine; I saw it work in a cartoon once..."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: raid1 on HDD + RAM ?
2008-09-30 15:49 raid1 on HDD + RAM ? Janek Kozicki
2008-09-30 17:09 ` David Greaves
@ 2008-09-30 18:21 ` Robin Hill
2008-09-30 19:36 ` Janek Kozicki
1 sibling, 1 reply; 6+ messages in thread
From: Robin Hill @ 2008-09-30 18:21 UTC (permalink / raw)
To: Linux RAID Mailing List
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
On Tue Sep 30, 2008 at 05:49:26PM +0200, Janek Kozicki wrote:
> Hi,
>
> It's possible to have a ramdisk device. Would it make any sense in
> doing raid1 using a common HDD and a ramdisk?
>
> They would automatically sync on boot-up of the computer.
>
> I'm asking because an ultra-fast READ and normal WRITE would be
> useful for me...
>
I don't see why it wouldn't be possible. I would think you'd get the
same performance leaving the RAM for caching though - that way anything
you _are_ actually reading/writing will be cached and the RAM is still
available for applications if needed.
Cheers,
Robin
--
___
( ' } | Robin Hill <robin@robinhill.me.uk> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: raid1 on HDD + RAM ?
2008-09-30 18:21 ` Robin Hill
@ 2008-09-30 19:36 ` Janek Kozicki
0 siblings, 0 replies; 6+ messages in thread
From: Janek Kozicki @ 2008-09-30 19:36 UTC (permalink / raw)
To: Linux RAID Mailing List
Robin Hill said: (by the date of Tue, 30 Sep 2008 19:21:29 +0100)
> I don't see why it wouldn't be possible. I would think you'd get the
> same performance leaving the RAM for caching though - that way anything
> you _are_ actually reading/writing will be cached and the RAM is still
> available for applications if needed.
yes, I know. But in my case this won't work. This data which I want
quickly is seldom accessed therefore it will not be cached.
--
Janek Kozicki |
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-09-30 20:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-30 15:49 raid1 on HDD + RAM ? Janek Kozicki
2008-09-30 17:09 ` David Greaves
2008-09-30 19:21 ` Janek Kozicki
2008-09-30 20:43 ` David Greaves
2008-09-30 18:21 ` Robin Hill
2008-09-30 19:36 ` Janek Kozicki
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).