Remote NAS
No one has any idea on my questions?
Quoted 37 lines · adfas asd
From: adfas asd <[email protected]>
Subject: Remote NAS
To: [email protected]
Date: Wednesday, September 16, 2009, 9:21 AM
A couple questions about MD RAID10:Right now I'm RAIDing two 2TB drives in RAID10offset2. Need to add some drives and maybe I'll remote them using NAS (GB ethernet), for fire and theft protection.
So could the BIOS actually boot this if 2 drives are in the machine and 2 are in the garage? Is there a way to specify in mdadm that the two in the garage are mirrored from the two in the system?
Is GB ethernet NAS noticably slower than eSATA? Is it reliable?
What if I use the mobo's e-SATA port to add 5 external drives locally. This would require a port multiplier. I presume it would not be bootable, since a port multiplier needs OS support? Or would something go in initrd.img? Or would I need an individual boot drive to get things up?
Using the array to store MythTV recordings (very large files), but when it does commercial flagging (lots of writes) the array is so busy that GUI response is very slow. I've set readahead cache to optimal (4096, after testing most sizes), so read should be OK. I know far is optimized for read, so I chose offset in hopes it would bring up write speed. Is there a way to speed up writes?
Quoted 9 lines · adfas asd
Quoted 9 lines
Right now I'm RAIDing two 2TB drives in RAID10offset2. Need to add some drives and maybe I'll remote them using NAS (GB ethernet), for fire and theft protection.
So could the BIOS actually boot this if 2 drives are in the machine and 2 are in the garage? Is there a way to specify in mdadm that the two in the garage are mirrored from the two in the system?
The BIOS boots from a single drive, and won't boot from RAID10, so presumably you already have a non-RAID (or RAID-1) boot partition. Certainly I don't see why mdadm can't start up an array set up like this though. As for setting up how they're mirrored, it sounds like you want a RAID-1 mirror over the top of a pair of RAID10 arrays.
Quoted 3 lines
Quoted 3 lines
Is GB ethernet NAS noticably slower than eSATA? Is it reliable?
It's technically slower, certainly - eSATA could be 3Gb compared to the 1Gb on ethernet. On top of that you'll have added latency, so I'd be surprised if you didn't notice the speed difference. As for reliability
- I don't see why it shouldn't be (providing you're using decent cabling).
Quoted 6 lines
Quoted 6 lines
What if I use the mobo's e-SATA port to add 5 external drives locally. This would require a port multiplier. I presume it would not be bootable, since a port multiplier needs OS support? Or would something go in initrd.img? Or would I need an individual boot drive to get things up?
Depends on exactly how the BIOS sees is - some seem to see a single drive off the multiplier, so can boot off that one, whereas others won't see anything. The initrd question is immaterial, as this is only read after the BIOS has called the boot loader, but certainly you could load any necessary drivers at that point.
Quoted 9 lines
Quoted 9 lines
Using the array to store MythTV recordings (very large files), but when it does commercial flagging (lots of writes) the array is so busy that GUI response is very slow. I've set readahead cache to optimal (4096, after testing most sizes), so read should be OK. I know far is optimized for read, so I chose offset in hopes it would bring up write speed. Is there a way to speed up writes?
I'm not sure offset is really noticeably faster than far for writes. Commercial flagging shouldn't be writing to the recordings drive though
- it's just inserting database metadata. If your MythTV database is on the same array/drives then you'll certainly get a big gain from moving it to a separate disk.
Cheers,
Robin
Signature · 4 lines
___
( ' } | Robin Hill <[email protected]> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |Thanks Robin.
Quoted 4 lines · Robin Hill
The BIOS boots from a single drive, and won't boot from RAID10, so
presumably you already have a non-RAID (or RAID-1) boot partition.
I have my only two drives set up as RAID10offset2 (WD 2TB each), and it boots just fine for some reason.
Quoted 11 lines
Quoted 1 line
Quoted 1 line
What if I use the mobo's e-SATA port to add 5
external
Quoted 1 line
Quoted 1 line
drives locally. This would require a port
multiplier. I
Quoted 1 line
Quoted 1 line
presume it would not be bootable, since a port
multiplier
Quoted 1 line
Quoted 1 line
needs OS support? Or would something go in
initrd.img?
Quoted 1 line
Quoted 1 line
Or would I need an individual boot drive to get
things up?
Quoted 1 line
Quoted 1 line
Quoted 9 lines
Depends on exactly how the BIOS sees is - some seem to see a single
drive off the multiplier, so can boot off that one, whereas others won't
see anything. The initrd question is immaterial, as this is only read
after the BIOS has called the boot loader, but certainly you could load
any necessary drivers at that point.
It's an Asus P5N7A-VM mobo, and of course Asus doesn't know the answer to this question. I have in mind the Addonics port "software" multiplier, which is a pure hardware multiplexer. (AD5SARPM-E with eSATA & Sii3726 chip)
I guess the answer is to just buy and try it. Reluctant to though, owing to the expense. I am surprised no one else has tried this.
Quoted 9 lines
I'm not sure offset is really noticeably faster than far for writes.
Commercial flagging shouldn't be writing to the recordings drive though
- it's just inserting database metadata. If your MythTV database is on
the same array/drives then you'll certainly get a big gain from moving
it to a separate disk.
Commercial flagging is writing like hell to the array, according to iotop. I don't know how else to assess what's going on. The drives are constantly hammering, and my Myth menu moves get very slow during flagging, even with the latest 2TB disk drives and RAID10.
Quoted 9 lines · adfas asd
Thanks Robin.
Quoted 2 lines · Robin Hill
The BIOS boots from a single drive, and won't boot from RAID10, so presumably you already have a non-RAID (or RAID-1) boot partition.
I have my only two drives set up as RAID10offset2 (WD 2TB each), and it boots just fine for some reason.
Yes, with a 2-drive RAID10o2 layout, one of the drives contains all blocks in normal order, the other doesn't (see
http://en.wikipedia.org/wiki/Non-standard_RAID_levels#Linux_MD_RAID_10)
so if the one drive fails then your system will be non-bootable. A RAID10n2 or RAID1 (the layout's the same) would be a better choice.
Quoted 12 lines
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
What if I use the mobo's e-SATA port to add 5 external drives locally. This would require a port multiplier. I presume it would not be bootable, since a port multiplier needs OS support? Or would something go in initrd.img? Or would I need an individual boot drive to get things up?
Depends on exactly how the BIOS sees is - some seem to see a single drive off the multiplier, so can boot off that one, whereas others won't see anything. The initrd question is immaterial, as this is only read after the BIOS has called the boot loader, but certainly you could load any necessary drivers at that point.
Quoted 8 lines
It's an Asus P5N7A-VM mobo, and of course Asus doesn't know the answer to this question. I have in mind the Addonics port "software" multiplier, which is a pure hardware multiplexer. (AD5SARPM-E with eSATA & Sii3726 chip)
I guess the answer is to just buy and try it. Reluctant to though, owing to the expense. I am surprised no one else has tried this.
I certainly haven't anyway. Is there any reason you can't leave a couple of drives internal though? You could definitely boot from those then.
Quoted 7 lines
Quoted 6 lines
I'm not sure offset is really noticeably faster than far for writes. Commercial flagging shouldn't be writing to the recordings drive though - it's just inserting database metadata. If your MythTV database is on the same array/drives then you'll certainly get a big gain from moving it to a separate disk.
Quoted 5 lines
Commercial flagging is writing like hell to the array, according to iotop. I don't know how else to assess what's going on. The drives are constantly hammering, and my Myth menu moves get very slow during flagging, even with the latest 2TB disk drives and RAID10.
Are you transcoding as well? The flagging itself shouldn't write, but if you're transcoding as well (to cut the commercials) then it will have to write. And slow menu moves would suggest database/CPU holdups - there should be no need to read from the recordings disk (actually, it may have to check the file exists, but that's it). You didn't say whether your database is on the array or not (if you're booting from the array then I'd guess so though).
If your aim is to improve performance then I'd recommend using a single (relatively small) drive for the main OS and database, and then one (or more) drives for the recordings.
Cheers,
Robin
Signature · 4 lines
___
( ' } | Robin Hill <[email protected]> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |Quoted 8 lines · Robin Hill
Quoted 6 lines · adfas asd
Thanks Robin.
Quoted 2 lines · Robin Hill
The BIOS boots from a single drive, and won't boot from RAID10, so presumably you already have a non-RAID (or RAID-1) boot partition.
Quoted 8 lines
Quoted 3 lines
I have my only two drives set up as RAID10offset2 (WD 2TB each), and it boots just fine for some reason.
Yes, with a 2-drive RAID10o2 layout, one of the drives contains all blocks in normal order, the other doesn't (see
http://en.wikipedia.org/wiki/Non-standard_RAID_levels#Linux_MD_RAID_10)
so if the one drive fails then your system will be non-bootable. A RAID10n2 or RAID1 (the layout's the same) would be a better choice.
There is a setup described at
http://linux-raid.osdl.org/index.php/Preventing_against_a_failing_disk
You can substitute raid10,o2 for raid10,f2 for the root partitions etc.
Anyway, raid10,f2 should be faster than raid10,o2, for at least reads, while for writes it is about the same performance given that you employ a file system.
Best regards
keld
Quoted 9 lines · Robin Hill
Quoted 1 line
Commercial flagging is writing like hell to the array,
according to
Quoted 1 line
iotop. I don't know how else to assess what's
going on. The drives
Quoted 1 line
are constantly hammering, and my Myth menu moves get
very slow during
Quoted 1 line
flagging, even with the latest 2TB disk drives and
RAID10.
Quoted 1 line
Quoted 13 lines
Are you transcoding as well? The flagging itself shouldn't write, but
if you're transcoding as well (to cut the commercials) then it will have
to write. And slow menu moves would suggest database/CPU holdups -
there should be no need to read from the recordings disk (actually, it
may have to check the file exists, but that's it). You didn't say
whether your database is on the array or not (if you're booting from the
array then I'd guess so though).
Not transcoding at the same time, just the standard commercial flagging. The drive light is constantly on. CPU is pretty busy (3GHz) reaching 180% when simultaneously flagging 2 videos.
The database in in the / partition of the array, and the videos are in the /home partition on it. No idea why the array is so busy.
Quoted 5 lines
If your aim is to improve performance then I'd recommend using a single
(relatively small) drive for the main OS and database, and then one (or
more) drives for the recordings.
My goal is to have two large drives in the HTPC and two out in the garage NASed, in RAID10 so that if my HTPC is stolen or there's a fire I'll still have my data. But no one here seems to know how to specify the HTPC drives as one side of the mirror and the garage drives as the other.
Needless to say I'd like performance to be good, but that's starting to look hopeless.
Quoted 4 lines · Keld Jørn Simonsen
There is a setup described at
http://linux-raid.osdl.org/index.php/Preventing_against_a_failing_disk
Quoted 8 lines
You can substitute raid10,o2 for raid10,f2 for the root partitions etc.
Anyway, raid10,f2 should be faster than raid10,o2, for at least reads,
while for writes it is about the same performance given that you employ
a file system.
Thanks keld. I used this procedure, which does about the same thing and seems more clear, adapting it to RAID10-o2:
http://www.howtoforge.com/software-raid1-grub-boot-debian-etch
I could find no performance comparison with far and offset, and knew that far improved on reads, so since offset came later inferred that it would have improved writes. No objective data to confirm otherwise.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 25 lines · adfas asd
Quoted 9 lines · Robin Hill
Quoted 1 line
Commercial flagging is writing like hell to the array,
according to
Quoted 1 line
iotop. I don't know how else to assess what's
going on. The drives
Quoted 1 line
are constantly hammering, and my Myth menu moves get
very slow during
Quoted 1 line
flagging, even with the latest 2TB disk drives and
RAID10.
Quoted 1 line
Quoted 13 lines
Are you transcoding as well? The flagging itself shouldn't write, but
if you're transcoding as well (to cut the commercials) then it will have
to write. And slow menu moves would suggest database/CPU holdups -
there should be no need to read from the recordings disk (actually, it
may have to check the file exists, but that's it). You didn't say
whether your database is on the array or not (if you're booting from the
array then I'd guess so though).
Quoted 7 lines
Not transcoding at the same time, just the standard commercial flagging. The drive light is constantly on. CPU is pretty busy (3GHz) reaching 180% when simultaneously flagging 2 videos.
The database in in the / partition of the array, and the videos are in the /home partition on it. No idea why the array is so busy.
If they're both on the array, then that's the problem. The partitioning doesn't make difference to the issue - the drive heads are having to seek frantically between reading the data file and writing the database.
Quoted 7 lines
Quoted 6 lines
If your aim is to improve performance then I'd recommend using a single
(relatively small) drive for the main OS and database, and then one (or
more) drives for the recordings.
Quoted 6 lines
My goal is to have two large drives in the HTPC and two out in the garage NASed, in RAID10 so that if my HTPC is stolen or there's a fire I'll still have my data. But no one here seems to know how to specify the HTPC drives as one side of the mirror and the garage drives as the other.
You have two drives in RAID10 currently, and you want to go to four. Are you meaning to increase the capacity as well or do you just want the two remote drives to be a mirror of your current two drives?
Quoted 3 lines
Needless to say I'd like performance to be good, but that's starting to look hopeless.
I'd recommend getting two smaller drives, and having two separate mirrored pairs - the smaller array for the OS and database and the larger one for recording. Keep one of each size within the HTPC and one of each in the garage. You can also use the write-mostly option to make the kernel read from the local drives where possible.
Cheers,
Robin
Signature · 4 lines
___
( ' } | Robin Hill <[email protected]> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |Quoted 8 lines · Robin Hill
Quoted 1 line
My goal is to have two large drives in the HTPC and
two out in the
Quoted 1 line
garage NASed, in RAID10 so that if my HTPC is stolen
or there's a fire
Quoted 1 line
I'll still have my data. But no one here seems
to know how to specify
Quoted 1 line
the HTPC drives as one side of the mirror and the
garage drives as the
Quoted 8 lines
Quoted 2 lines
other.
You have two drives in RAID10 currently, and you want to go to four.
Are you meaning to increase the capacity as well or do you just want the
two remote drives to be a mirror of your current two drives?
Both more capacity, and remote storage.
Quoted 4 lines
Quoted 1 line
Needless to say I'd like performance to be good, but
that's starting
Quoted 2 lines
to look hopeless.
Quoted 9 lines
I'd recommend getting two smaller drives, and having two separate
mirrored pairs - the smaller array for the OS and database and the
larger one for recording. Keep one of each size within the HTPC and one
of each in the garage. You can also use the write-mostly option to make
the kernel read from the local drives where possible.
But what I'm saying there doesn't seem to be a way in mdadm to specify --one side-- of the mirror here, and the other side, there.
Thanks for the tip on write-mostly.
Quoted 11 lines · adfas asd
Quoted 10 lines · Robin Hill
Quoted 1 line
My goal is to have two large drives in the HTPC and
two out in the
Quoted 1 line
garage NASed, in RAID10 so that if my HTPC is stolen
or there's a fire
Quoted 1 line
I'll still have my data. But no one here seems
to know how to specify
Quoted 1 line
the HTPC drives as one side of the mirror and the
garage drives as the
Quoted 2 lines
other.
Quoted 9 lines
Quoted 6 lines
You have two drives in RAID10 currently, and you want to go to four.
Are you meaning to increase the capacity as well or do you just want the
two remote drives to be a mirror of your current two drives?Both more capacity, and remote storage.
Okay, so you want the local drives to be (effectively) a RAID-0, and then mirrored to the remote drives?
Quoted 15 lines
Quoted 5 lines
Quoted 2 lines
Needless to say I'd like performance to be good, but
that's starting
Quoted 2 lines
to look hopeless.
Quoted 9 lines
I'd recommend getting two smaller drives, and having two separate
mirrored pairs - the smaller array for the OS and database and the
larger one for recording. Keep one of each size within the HTPC and one
of each in the garage. You can also use the write-mostly option to make
the kernel read from the local drives where possible.
Quoted 3 lines
But what I'm saying there doesn't seem to be a way in mdadm to specify --one side-- of the mirror here, and the other side, there.
I've no idea what you mean here. You specify two block devices for the mirror - what difference does it make where (or what) they are? And if you want RAID10 then (in the create order) drives 0 and 2 are local and 1 and 3 remote.
Cheers,
Robin
Signature · 4 lines
___
( ' } | Robin Hill <[email protected]> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |Quoted 14 lines · adfas asd
Quoted 4 lines · Keld Jørn Simonsen
There is a setup described at
http://linux-raid.osdl.org/index.php/Preventing_against_a_failing_disk
Quoted 8 lines
You can substitute raid10,o2 for raid10,f2 for the root partitions etc.
Anyway, raid10,f2 should be faster than raid10,o2, for at least reads,
while for writes it is about the same performance given that you employ
a file system.
Quoted 4 lines
Thanks keld. I used this procedure, which does about the same thing and seems more clear, adapting it to RAID10-o2:
http://www.howtoforge.com/software-raid1-grub-boot-debian-etchI could find no performance comparison with far and offset, and knew that far improved on reads, so since offset came later inferred that it would have improved writes. No objective data to confirm otherwise.
There are a number of performance tests at:
http://linux-raid.osdl.org/index.php/Performance
Writes are about the same for RAID10 types and RAID1.
This is also what theory would tell for random writes, given that they are random, and that the elevator algorithm of the file system optimizes the writing.
Yes, offset came after far, but Neil Brown said that offset was implemented to make Linux MD align to RAID standards. It was not necessarily meant to be better than far.
I think it is hard to beat raid10 far on reads (but then I am also the one that invented the layout). As said for random reading and writing the theory says that all mirrored raid types perform equally, and tests verify this. Maybe far layout even has an edge for random reading, in theory it should, but I have not seen tests really verifying that.
best regards
Keld
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 13 lines · Keld Jørn Simonsen
Writes are about the same for RAID10 types and RAID1. This is also what theory would tell for random writes, given that they
are random, and that the elevator algorithm of the file system optimizes
the writing.Yes, offset came after far, but Neil Brown said that offset was
implemented to make Linux MD align to RAID standards. It was not
necessarily meant to be better than far.
Quoted 10 lines
I think it is hard to beat raid10 far on reads (but then I am also the
one that invented the layout). As said for random reading and writing
the theory says that all mirrored raid types perform equally, and tests
verify this. Maybe far layout even has an edge for random reading, in
theory it should, but I have not seen tests really verifying that.
Excellent, thanks Keld.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 27 lines
Quoted 9 lines
Quoted 6 lines
You have two drives in RAID10 currently, and you want to go to four.
Are you meaning to increase the capacity as well or do you just want the
two remote drives to be a mirror of your current two drives?Both more capacity, and remote storage.
Okay, so you want the local drives to be (effectively) a RAID-0, and then mirrored to the remote drives?
Quoted 15 lines
Quoted 14 lines
Quoted 2 lines
Needless to say I'd like performance to be good, but
that's starting
Quoted 2 lines
to look hopeless.
I'd recommend getting two smaller drives, and having two separate
mirrored pairs - the smaller array for the OS and database and the
larger one for recording. Keep one of each size within the HTPC and one
of each in the garage. You can also use the write-mostly option to make
the kernel read from the local drives where possible.
Quoted 5 lines
Quoted 3 lines
But what I'm saying there doesn't seem to be a way in mdadm to specify --one side-- of the mirror here, and the other side, there.
I've no idea what you mean here. You specify two block devices for the mirror - what difference does it make where (or what) they are? And if
Well, he doesn't want to wind up with both a primary copy and a
mirror copy of any of the drive elements in one physical location.
Quoted 2 lines
you want RAID10 then (in the create order) drives 0 and 2 are local and 1 and 3 remote.
In his situation (assuming he doesn't take my advice and separate
the remote system entirely), wouldn't he be better served to create a RAIDn array on both systems and then create a RAID1 from the local and NAS array with the write mostly option?
Quoted 10 lines
Quoted 7 lines
Not transcoding at the same time, just the standard commercial flagging. The drive light is constantly on. CPU is pretty busy (3GHz) reaching 180% when simultaneously flagging 2 videos.
The database in in the / partition of the array, and the videos are in the /home partition on it. No idea why the array is so busy.
If they're both on the array, then that's the problem. The partitioning doesn't make difference to the issue - the drive heads are having to seek frantically between reading the data file and writing the database.
You are perfectly correct that having the database and the video
files on the same array presents a very significant bottleneck, but I think something else must be going on, as well. If the CPU were having to wait for drive seeks, then the CPU utilization would never be that high. What's more, while I am not intimately familiar with MythTV's database structure, I don't think database writes are done very much. Typically, in such applications, one only marks the audio / video transition points, where the video fades to black and the audio squelches and then again when a black transitions to live video. The rest of time should ordinarily be spent entirely in memory (other than reading the video file, of course), analyzing the video data to search for such transitions and decide whether the transition in question is the entry or exit point for a group of commercials. I would expect a write to the database would only occur after examining several minutes worth of video data - probably several seconds worth of reading video.
I cannot say for certain, but I suspect he might see significant
performance gains by increasing the size of his memory and perhaps his swap partition, as well. He also might do well to adjust the priority of the threads handling the commercial flagging. He hasn't mentioned what his actual drive performance is, but his main complaint seems to me not to be drive system performance but CPU loading.
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Commercial flagging is writing like hell to the array,
according to
Quoted 1 line
iotop.
You might be a little more quantitative about "writing like hell".
How many MBps? See my last message.
Quoted 2 lines
Quoted 2 lines
I don't know how else to assess what's
going on. The drives
You might look at the output of watch iotstat -m 1 2, as well.
Iotop breaks down disk usage by application. Iostat shows the total utilization of each disk element by all processes.
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
are constantly hammering, and my Myth menu moves get
very slow during
Quoted 1 line
flagging, even with the latest 2TB disk drives and
RAID10.
Unless perhaps your swap is on the array, as well, that doesn't
really suggest a drive system bottleneck. What size is your swap, your main memory, and how much memory and swap do you show being utilized during flagging? For any system doing any sort of video analysis, I suggest at least 2G of memory. You say this is a 3GHz CPU, but how many cores and what width? I recommend at least a dual core and a 64 bit, unless you have a RISC based system.
I have a very different setup than you, and I don't have any Linux
based commercial scan tools handy at the moment, but I have Video Redo on a Windows XP 64 Pro machine with a dual core 3.2GHz CPU and 8G of RAM. When I run a commercial scan on a single video, the system slams both CPUs to more than 50% and gulps more than 2G of real memory. Meanwhile, the system is reading steadily off the video array, but only at around 8MBps. Even 20 MBps would not be tasking for the most inefficient of array topologies, and I expect not even with a moderate amount of database activity, constant seeking notwithstanding.
Even so, having a completely separate cache group for the database
not touched by any reads or writes of the video files definitely can't hurt. If you separate the database onto an independant high performance drive then its entire 32MB is dedicated to caching the database. If you employ a striped array, then the database cache is N x 32MB, where N is the number of drives. This cannot hurt menu responsiveness of the MythTV menu. (I use Series III TiVos fed by the video server, so menu operations are on a separate machine from file manipulations, including commercial elimination.) I definitely suggest having plenty of memory to prevent any significant amount of swapping, and having the swap, the database, and the video files on three separate drive subsystems.
Quoted 2 lines
Not transcoding at the same time, just the standard commercial flagging. The drive light is constantly on.
That's to be expected. After all, it should only take a few
microseconds to inspect a pair of successive frames for a black transition before the system reads the next frame. Even allowing for caching, the system should be reading the array pretty much continuously in human terms.
Quoted 2 lines
CPU is pretty busy (3GHz) reaching 180%
when simultaneously flagging 2 videos.
Again, see my last message. It doesn't sound to me like you are
having a particularly large drive througput problem. Of course, it can't hurt to optimize the drive subsystem, but I am skeptical it will do much to address your issue.
I am puzzled by why write-mostly. Ostensibly Gb ethernet is supposed to nearly equal the data transfer rate of the controller cards, and be many times the speed of actual data transfer from the drives.
So shouldn't a NAS have plenty of bandwidth to accommodate most any drive operations?
I will be setting up a small high-perf drive for / (including database) so the only data on the array will be /home (including large videos).
Seems like there is no need to specify write-mostly?
Quoted 7 lines · Leslie Rhorer
In his situation (assuming he doesn't
take my advice and separate
the remote system entirely), wouldn't he be better served to create a RAIDn
array on both systems and then create a RAID1 from the local and NAS array
with the write mostly option?
Quoted 6 lines · adfas asd
I am puzzled by why write-mostly. Ostensibly Gb ethernet is supposed to
nearly equal the data transfer rate of the controller cards, and be many times the speed of actual data transfer from the drives.So shouldn't a NAS have plenty of bandwidth to accommodate most any drive
operations?
My GbE lan gets about 90MiB/s, my pcie sata card has shown upwards of 400MiB/s. I haven't done full tests on the sata card yet, but it clearly is able to more than saturate a single GbE connection.
Quoted 19 lines
I will be setting up a small high-perf drive for / (including database) so
the only data on the array will be /home (including large videos).Seems like there is no need to specify write-mostly?
Quoted 7 lines · Leslie Rhorer
In his situation (assuming he doesn't
take my advice and separate
the remote system entirely), wouldn't he be better served to create a RAIDn
array on both systems and then create a RAID1 from the local and NAS array
with the write mostly option?--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Thomas Fjellstrom [email protected]
Quoted 3 lines
I am puzzled by why write-mostly. Ostensibly Gb ethernet is supposed to nearly equal the data transfer rate of the controller cards, and be many times the speed of actual data transfer from the drives.
Not at all. Some multilane solutions can manage close to 300MBps per drive. The absolute maximum throughput of a Gig-E is right at 120MBps. OTOH, 50 - 60 MBps may be far more than you need, in which case Gig-E is fine.
Quoted 2 lines
So shouldn't a NAS have plenty of bandwidth to accommodate most any drive operations?
For your case, perhaps, but you were the one concerned about performance.
Quoted 2 lines
I will be setting up a small high-perf drive for / (including database) so the only data on the array will be /home (including large videos).
Why are you putting the array in /home? Does MythTV require it? If
not, personally, I would recommend a separate directory for the recordings and not in /home. I mount my array in /RAID and put the recordings in /RAID/Recordings.
Quoted 1 line
Seems like there is no need to specify write-mostly?
For your setup it may or may not result in some performance gain.
Certainly reading the material strictly from the local drives will probably result in higher throughput, but a lower througput for reading the videos during commercial flagging might actually result in better responsiveness of your MythTV menus.
Quoted 3 lines · Leslie Rhorer
You might be a little more quantitative
about "writing like hell".
How many MBps? See my last message.
I just started a mythcommflag on a video, and it is not behaving the same. It's acting more like ppl here would expect with ~3.7MB/s read and 3.5KB/s write. I'll have to wait for a normal automatic job and do these checks.
Quoted 5 lines
Unless perhaps your swap is on the
array, as well, that doesn't
really suggest a drive system bottleneck. What size is your swap, your main
memory, and how much memory and swap do you show being
Quoted 8 lines
utilized during
flagging? For any system doing any sort of video analysis, I suggest at
least 2G of memory. You say this is a 3GHz CPU, but how many cores and what
width? I recommend at least a dual core and a 64 bit, unless you have a
RISC based system.
Yes swap is on the same array, different part. 4G of memory and an E8400 Intel CPU (2 cores). Debian 64bit OS, and self-compiles MythTV-fixes 0.21. For the array 2 each WD Green 2TB drives.
Interesting, thanks.
Quoted 16 lines · Thomas Fjellstrom
Quoted 1 line
I am puzzled by why write-mostly. Ostensibly Gb
ethernet is supposed to
Quoted 1 line
nearly equal the data transfer rate of the
controller cards, and be many
Quoted 1 line
times the speed of actual data transfer from the
drives.
Quoted 2 lines
So shouldn't a NAS have plenty of bandwidth to
accommodate most any drive
Quoted 1 line
operations?
My GbE lan gets about 90MiB/s, my pcie sata card has shown upwards of
400MiB/s. I haven't done full tests on the sata card yet, but it clearly is
able to more than saturate a single GbE connection.
Quoted 8 lines
Quoted 3 lines · Leslie Rhorer
You might be a little more quantitative
about "writing like hell".
How many MBps? See my last message.I just started a mythcommflag on a video, and it is not behaving the same. It's acting more like ppl here would expect with ~3.7MB/s read and 3.5KB/s write. I'll have to wait for a normal automatic job and do these checks.
Hmm. It's odd the process would provide different performance when
automated. It's possible there's a problem at the application layer.
Quoted 14 lines
Quoted 5 lines
Unless perhaps your swap is on the
array, as well, that doesn't
really suggest a drive system bottleneck. What size is your swap, your main
memory, and how much memory and swap do you show beingQuoted 8 lines
utilized during
flagging? For any system doing any sort of video analysis, I suggest at
least 2G of memory. You say this is a 3GHz CPU, but how many cores and what
width? I recommend at least a dual core and a 64 bit, unless you have a
RISC based system.
Quoted 3 lines
Yes swap is on the same array, different part. 4G of memory and an E8400 Intel CPU (2 cores). Debian 64bit OS, and self-compiles MythTV-fixes 0.21. For the array 2 each WD Green 2TB drives.
Do you have a GUI installed on the box? Gnome has a sort of nifty
resource monitor which shows swap and memory usage in real time. If not, you can use watch along with vmstat and free to see what's happening with your memory usage. If you are writing to the swap file and the database and both are on your array, it could definitely affect performance, especially since it is possible almost as much data is being written to the swap file as is being read from the video files. I believe there are also free tools out there which monitor I/O and memory usage for specific applications and / or threads. A Google search may be in order if the less specific tools point in that direction.
It's possible 4G of memory is insufficient, although I would not
expect so for this application. If the swap file is quiescent, then memory size is not the issue, but if the system is swapping a great deal, then a memory upgrade is definitely indicated, and indeed is a very inexpensive fix.