Opened 13 years ago
Closed 13 years ago
#10991 closed Bug Report - General (Feature request without patch)
RFE: make recording raid friendly
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | MythTV - Recording | Version: | 0.25-fixes |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
When recordings are written raid devices, it is often reporting that write is too slow and eventually the recording stops after truncating the file.
Benchmarks on the raid device show that the throughput is far higher than mythtv reports.
According to iostat output, when mythtv is recording, there is also lots of read activity on all of the raid disks. It is happening even if there are no read requests on the md device itself. This implies that there is partial stripe writes happening. In this case, raid has to do a read in order to completes the partial stripe write.
Two factors can trigger partial stripe writes:
- write offset is not stripe aligned
- io size is not a multiple of a stripe
Although there is no direct control of raid layout at application layer, it helps if mythtv performs aligned writes only and uses an io size that's a multiple of a raid stripe. The alignment should also be a multiple of the raid stripe.
Yes, an underperforming disk can slow down writes. But partial stripe writes make it even slower :)
observed io sizes used by recording: