Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] Psuedo Mirroring
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: Psuedo Mirroring
26th Mar, 2014, 05:34 AM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Psuedo Mirroring
The problem is that btrfs doesn't (normally) allow you to boot from a degraded mirror. If that's not a problem you can.

https://github.com/xbianonpi/xbian-package-initramfs/issues/18#issuecomment-20597109

Quote:I did some benchmarks and the results are as follows (SD card + USB stick):

Code:
random  random
           KB  reclen   write rewrite    read    reread    read   write
RAID1 : 51200       4     493     518     4578     4346    4440     649
RAID0 :
- USB : 51200       4     730    1092     3788     2979    3691     281
- SD   : 51200      4     992     788     5558     4706    4974     732
                         -33%    -35%     +20%     +50%    +20%   +130%

RAID1 : 51200     512    3748    4475    18705    11533   18672    4521
RAID0 :
- USB : 51200     512    3157    3488    23652    17815   24158    2918
- SD  : 51200     512    4849    4182    17513    17537   17443    4198
                         +20%    +28%      +6%    -35%      +7%    +55%

RAID1 : 51200   16384    5572    5456    25016    24991   24994    3247
RAID0 :
- USB : 51200   16384    4151    4492    27078    27682   27621    3114
- SD  : 51200   16384    7632    9915    22041    22032   22050    9801
                         +31%    +21%     +13%     +13%    +13%     +4%

The percentages were calculated like this:
Increase: How much faster than the slowest of the USB/SD
Decrease: How much slower than the slowest of the USB/SD

Conclusion:
- 4k write performance dropped by about 33%
- 4k read performance has increased for about 33%*
- All other IO show an increase of a about 20%*, except for the 512k reread.

*With the slowest device as the reference

I used a fairly slow and generic USB stick. However, the results show that the performance of the USB stick can be increased fairly well by a fast SD card. The ideal solution would of course be, adding a USB stick that is faster than the SD card so we get a overall performance gain instead of decrease.

The only problem is that you can't simply go back to the RAID0 situation. If you want to remove the USB drive from the mirror, you need to boot degraded mode.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Psuedo Mirroring - IriDium - 26th Mar, 2014, 03:35 AM
RE: Psuedo Mirroring - CurlyMo - 26th Mar, 2014 05:34 AM
RE: Psuedo Mirroring - mk01 - 26th Mar, 2014, 01:17 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 8th Jun, 2025, 12:08 PM Powered By MyBB, © 2002-2025 MyBB Group.