[opensuse] raid on mixed ssd+hdd
Hello, I wonder if it could be a good idea to make a raid with a ssd and an hdd together (mirror). will the hdd kill the ssd speed advantage or do the ssd boost the hole raid? thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Hello, I wonder if it could be a good idea to make a raid with a ssd and an hdd together (mirror).
will the hdd kill the ssd speed advantage or do the ssd boost the hole raid?
Assuming we're talking about mdraid, my immediate thought - on read, you might get some ssd boost, but on write I don't see any. -- Per Jessen, Zürich (-0.1°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 31 Dec 2014 10:14, Per Jessen
jdd wrote:
Hello, I wonder if it could be a good idea to make a raid with a ssd and an hdd together (mirror).
will the hdd kill the ssd speed advantage or do the ssd boost the hole raid?
Assuming we're talking about mdraid, my immediate thought - on read, you might get some ssd boost, but on write I don't see any.
Correct, not to mention that genuine hybrid-drives are much better optimised than any raid of ssd+hdd. Spare yourself that headache. It gets even worse in 'hardware' raid controllers, there even the read preformace can drop to hdd levels b/c of 'wait-for-other-disk' to verify the data. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 31/12/2014 10:14, Per Jessen a écrit :
Assuming we're talking about mdraid, my immediate thought - on read, you might get some ssd boost, but on write I don't see any.
yes, but read are what is the most frequent :-) I wondered that because bcache seems to be some sort of mixed raid. May be better than normal raid. the reason is to have the better of the two worlds, speed of ssd and robustness of hdd thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 31/12/2014 10:14, Per Jessen a écrit :
Assuming we're talking about mdraid, my immediate thought - on read, you might get some ssd boost, but on write I don't see any.
yes, but read are what is the most frequent :-)
If that is the case, I guess a hdd+ssd raid might bring some improvement. Depending on the read/write ratio and the system memory, just adding more memory might bring the same though.
I wondered that because bcache seems to be some sort of mixed raid. May be better than normal raid.
AFAIK, bcache is essentially an extended file system cache. It just adds a level of very fast and very large cache. I don't see any RAID-like functionality in that. -- Per Jessen, Zürich (0.8°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 31/12/2014 12:08, Per Jessen a écrit :
AFAIK, bcache is essentially an extended file system cache. It just adds a level of very fast and very large cache. I don't see any RAID-like functionality in that.
as far as I understand, one needs to make two equal sized partition, one caching the other jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-12-31 14:34, jdd wrote:
Le 31/12/2014 12:08, Per Jessen a écrit :
AFAIK, bcache is essentially an extended file system cache. It just adds a level of very fast and very large cache. I don't see any RAID-like functionality in that.
as far as I understand, one needs to make two equal sized partition, one caching the other
No, with bcache the ssd space is way smaller. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On Wed 31 Dec 2014 04:28:22 PM CST, Carlos E. R. wrote:
On 2014-12-31 14:34, jdd wrote:
Le 31/12/2014 12:08, Per Jessen a écrit :
AFAIK, bcache is essentially an extended file system cache. It just adds a level of very fast and very large cache. I don't see any RAID-like functionality in that.
as far as I understand, one needs to make two equal sized partition, one caching the other
No, with bcache the ssd space is way smaller.
Hi On my two setups I used a size of 10% of the rotating rust, seems to work fine in my tests. I image it can be smaller, but I guess dependent of files size and throughput would determine. -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default up 2 days 18:00, 4 users, load average: 0.13, 0.22, 0.29 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 31/12/2014 18:08, Malcolm a écrit :
On my two setups I used a size of 10% of the rotating rust, seems to work fine in my tests. I image it can be smaller, but I guess dependent of files size and throughput would determine.
reading your data in the other mail, I don't understand it. wich disk is the ssd? NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 260M 0 part /boot/efi ├─sda2 8:2 0 73.7G 0 part / ├─sda3 8:3 0 8G 0 part [SWAP] is sda the ssd? └─sda4 8:4 0 29.8G 0 part └─bcache0 253:0 0 298.1G 0 disk /data sdb 8:16 0 298.1G 0 disk └─sdb1 8:17 0 298.1G 0 part └─bcache0 253:0 0 298.1G 0 disk /data if so it's very interesting for me. I have 100Gb spare on my last (and faster) ssd and 500Gb data on my old 1Tb rotating disk (all this on my main station, not the laptop) I have to reread the bcache doc, thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed 31 Dec 2014 06:19:50 PM CST, jdd wrote:
Le 31/12/2014 18:08, Malcolm a écrit :
On my two setups I used a size of 10% of the rotating rust, seems to work fine in my tests. I image it can be smaller, but I guess dependent of files size and throughput would determine.
reading your data in the other mail, I don't understand it. wich disk is the ssd?
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 260M 0 part /boot/efi ├─sda2 8:2 0 73.7G 0 part / ├─sda3 8:3 0 8G 0 part [SWAP]
is sda the ssd?
└─sda4 8:4 0 29.8G 0 part └─bcache0 253:0 0 298.1G 0 disk /data sdb 8:16 0 298.1G 0 disk └─sdb1 8:17 0 298.1G 0 part └─bcache0 253:0 0 298.1G 0 disk /data
if so it's very interesting for me. I have 100Gb spare on my last (and faster) ssd and 500Gb data on my old 1Tb rotating disk (all this on my main station, not the laptop)
I have to reread the bcache doc,
thanks jdd Hi Correct sda is the ssd and the caching device is sda4 the backing device is sdb1, sda4 is 10% of the sdb1 device (a 320GB hdd).
https://forums.opensuse.org/entry.php/159-Setting-up-bcache-on-openSUSE-13-2 I use a script to test before and after with both the ssd and the hdd and then bcache0 it uses the fio tool... -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default up 2 days 18:19, 4 users, load average: 0.17, 0.21, 0.31 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 31/12/2014 18:28, Malcolm a écrit :
Correct sda is the ssd and the caching device is sda4 the backing device is sdb1, sda4 is 10% of the sdb1 device (a 320GB hdd). https://forums.opensuse.org/entry.php/159-Setting-up-bcache-on-openSUSE-13-2 I use a script to test before and after with both the ssd and the hdd and then bcache0 it uses the fio tool... aplied, will see the result.
The main thing I didn't understand is that the two bcache devices (caching and backup) do not need to have the same size. shame also it can't be applied to /root, I do very litle data management on my laptop :-( thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed 31 Dec 2014 09:57:57 AM CST, jdd wrote:
Hello, I wonder if it could be a good idea to make a raid with a ssd and an hdd together (mirror).
will the hdd kill the ssd speed advantage or do the ssd boost the hole raid?
thanks jdd Hi Use bcache...... in this laptop I have an SSD and a HDD;
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 260M 0 part /boot/efi ├─sda2 8:2 0 73.7G 0 part / ├─sda3 8:3 0 8G 0 part [SWAP] └─sda4 8:4 0 29.8G 0 part └─bcache0 253:0 0 298.1G 0 disk /data sdb 8:16 0 298.1G 0 disk └─sdb1 8:17 0 298.1G 0 part └─bcache0 253:0 0 298.1G 0 disk /data I believe there are issues if you suspend or hibernate, I don't use it, so not sure of the effect... -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default up 2 days 17:53, 4 users, load average: 0.13, 0.23, 0.31 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 31/12/2014 18:05, Malcolm a écrit :
Use bcache...... in this laptop I have an SSD and a HDD;
yes. On an other computer I have a small (32Gb) ssd included and I plan to use bcache, but the config is not that clear
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 260M 0 part /boot/efi ├─sda2 8:2 0 73.7G 0 part / ├─sda3 8:3 0 8G 0 part [SWAP] └─sda4 8:4 0 29.8G 0 part └─bcache0 253:0 0 298.1G 0 disk /data sdb 8:16 0 298.1G 0 disk └─sdb1 8:17 0 298.1G 0 part └─bcache0 253:0 0 298.1G 0 disk /data
I believe there are issues if you suspend or hibernate, I don't use it, so not sure of the effect...
If I can forbid this (hibernate), i don't like it (uses battery, not that faster than a boot) but If I read well your datas, bcache uses twice the disk size (sda4 and sdb1)? is it not easier to install the distro directly on the ssd? I could see an interest if the cache was much smaller than the disk thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd composed on 2014-12-31 18:13 (UTC+0100):
If I can forbid this (hibernate), i don't like it (uses battery, not that faster than a boot)
To prevent it from happening, have you tried the things on https://en.opensuse.org/SDB:Pm-utils and/or https://en.opensuse.org/SDB:Suspend_to_disk and/or https://forums.opensuse.org/showthread.php/499676-Removing-suspend-hibernate... and/or https://forums.opensuse.org/showthread.php/473950-how-can-I-prevent-my-lapto... ??? If you just want to not resume at boot time, exclude resume=yada from and include noresume on kernel cmdline. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 31/12/2014 18:55, Felix Miata a écrit :
jdd composed on 2014-12-31 18:13 (UTC+0100):
If I can forbid this (hibernate), i don't like it (uses battery, not that faster than a boot)
To prevent it from happening, have you tried the things on
not yet tested, but I keep your mail to read soon, thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-12-31 18:13, jdd wrote:
If I can forbid this (hibernate), i don't like it (uses battery, not that faster than a boot)
Hibernate does not use battery. Suspend does. On the other hand, booting my machine takes about 3 or 4 minutes. Restoring from hibernate is faster. It depends on how many services you boot. Not counting the bunch of applications in the desktop, in mid-use. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
participants (6)
-
Carlos E. R.
-
Felix Miata
-
jdd
-
Malcolm
-
Per Jessen
-
Yamaban