Encrypted 2-drive mirrored RAID setup

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Tue Sep 11, 2012 2:36 am

After an EXT4 upgrade:

$this->bbcode_second_pass_code('', '[root@pogoweb ~]# dd count=100 bs=1M if=/dev/zero of=/srv/test oflag=sync
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 6.91609 s, 15.2 MB/s
[root@pogoweb ~]# rm /srv/test

[root@pogoweb ~]# dd count=1000 bs=1M if=/dev/zero of=/srv/test oflag=sync
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 72.8226 s, 14.4 MB/s
[root@pogoweb ~]# rm /srv/test ')
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Tue Sep 11, 2012 2:48 am

So, putting my first Samba stats here. Downloading a 600+ MB file from my Windows 7 Server:

$this->bbcode_second_pass_code('', 'smb: \> get SW_CD_Windows_Svr_Std_2003_R2_32-BIT_X64_English_ISO_32bit_1_MLF_X13-73742.ISO
getting file \SW_CD_Windows_Svr_Std_2003_R2_32-BIT_X64_English_ISO_32bit_1_MLF_X13-73742.ISO of size 623075328 as SW_CD_Windows_Svr_Std_2003_R2_32-BIT_X64_English_ISO_32bit_1_MLF_X13-73742.ISO (24259.3 KiloBytes/sec) (average 24259.3 KiloBytes/sec)')

Throughput is around 23.690722656 MBytes. Let me try on bigger files.
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Tue Sep 11, 2012 2:54 am

Gigabit backbone, no JUMBO frames:

$this->bbcode_second_pass_code('', 'smb: \> get bigfile.iso
getting file \bigfile.iso of size 1246150656 as bigfile.iso (19998.4 KiloBytes/sec) (average 21242.1 KiloBytes/sec)')

htop showed that the smbclient varied from 20% CPU to as high as 71%, averaged around 45~46%

Second run:

$this->bbcode_second_pass_code('', 'smb: \> get bigfile.iso
getting file \bigfile.iso of size 1246150656 as bigfile.iso (24499.6 KiloBytes/sec) (average 22435.3 KiloBytes/sec)')
Average htop is 67.2% CPU usage

Third run, turned off cherokee, mysqld and subsonic, nothing else running:

$this->bbcode_second_pass_code('', 'smb: \> get bigfile.iso
getting file \bigfile.iso of size 1246150656 as bigfile.iso (25745.6 KiloBytes/sec) (average 23290.9 KiloBytes/sec)')
Average htop is 87.8% CPU usage
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby sambul13 » Tue Sep 11, 2012 3:02 am

I assume you're writing to the RAID. Not sure, why you're not hitting 30 MB/s if its not 100% CPU load. Unless your enclosure chipset controls writing to the RAID and is not a bottleneck, RAID should increase Plug proc load thus limiting copy speed, but it seems the proc is not maxed out here, so it may be the enclosure.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Tue Sep 11, 2012 3:18 am

$this->bbcode_second_pass_quote('sambul13', 'I') assume you're writing to the RAID. Not sure, why you're not hitting 30 MB/s if its not 100% CPU load. Unless your enclosure chipset controls writing to the RAID and is not a bottleneck, RAID should increase Plug proc load thus limiting copy speed, but it seems the proc is not maxed out here, so it may be the enclosure.


Yeah, all the writes have been to the RAID enclosure.

Well, the enclosure is a RAID enclosure so I would assume that it controls the write. Maybe there's an overhead in using the enclosure that may not be obvious to determine.
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby sambul13 » Tue Sep 11, 2012 11:49 am

It doesn't look from your data that the enclosure adds overhead to the Plug's CPU. Its USB 3.0 chipset may underperform in 2.0 mode, or its internal bus is slow as Greg_E reported: "RAID 0 is not faster than any other mode on USB 2.0, only getting maximum 20MBps writes and 30MBps reads, same for all modes. ATTO 2.46 used for benchmark." But its nice to see, HW RAID-enabled enclosures work fine with Pogo, and can deliver comparable read & write speeds without overloading the plug.

There might be a modded FW available for the enclosure. Try also hooking it directly to a PC via USB 2.0 and check the speeds. Despite Samba is not a limiting factor here, I wonder if ISCSI over LAN can be faster? If you run ArchLinux 3.5.3, you should be able to install ISCSI Target (targetcli and lio-utils) to the plug without issues. ArchLinux Wiki (not ARM) has articles on ISCI Target and Initiator setup. :)
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby WarheadsSE » Tue Sep 11, 2012 12:29 pm

sambul13: the likely limit here is the USB on the device itself, plus the CPU overhead of samba.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Tue Sep 11, 2012 2:35 pm

$this->bbcode_second_pass_quote('sambul13', 'T')here might be a modded FW available for the enclosure. Try also hooking it directly to a PC via USB 2.0 and check the speeds. Despite Samba is not a limiting factor here, I wonder if ISCSI over LAN can be faster? If you run ArchLinux 3.5.3, you should be able to install ISCSI Target (targetcli and lio-utils) to the plug without issues. ArchLinux Wiki (not ARM) has articles on ISCI Target and Initiator setup. :)


I'll look around for a modded firmware, though, I'm not sure how much of a difference iSCSI will be.

I'll try to perform some exhaustive disk tests on a desktop machine and provide feedback.
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby WarheadsSE » Tue Sep 11, 2012 3:28 pm

I wouldn't go messing with the firmware just yet!!
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby sambul13 » Tue Sep 11, 2012 3:58 pm

$this->bbcode_second_pass_quote('mastashake57', 'I')'ll try to perform some exhaustive disk tests on a desktop machine and provide feedback.
What plug device do you have? I use Dockstar with USB 2.0, but now thinking to move to GoFlex Net with 2 SATA II ports. That one may work much faster with your RAID enclosure, if you remove its USB3.0-to-SATA adapter and hook directly to SATA port on the enclosure board if possible. It should also heat up less.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm
Top

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests