Wonka--
From: Daniel Becker <razz...@gmail.com>
To: zfs-...@googlegroups.com
Sent: Thursday, 15 November 2012, 16:25
Subject: Re: [zfs-macos] Slow performance in new USB3 enclosure
--
My understanding is that UASP is essentially USB 3 only (although a USB 2 version is defined), and that even recent USB 3 controllers and enclosures are not guaranteed to support it (although the controllers used in Macs apparently do). Google should have more info.
pool: Mediastate: ONLINEscrub: none requestedconfig:
NAME STATE READ WRITE CKSUMMedia ONLINE 0 0 0raidz1 ONLINE 0 0 0
disk2s2 ONLINE 0 0 0disk3s2 ONLINE 0 0 0disk4s2 ONLINE 0 0 0
disk5s2 ONLINE 0 0 0disk6s2 ONLINE 0 0 0errors: No known data errors
- high speed, sufficient that can work directly off the pool (not have to copy files to internal drive to process then copy back to pool, as am doing now).- compact unit (why i moved from previous self-contained box to mac mini + external enclosure, as mentioned in the OP)- as much space as possible (4 bay minimum).
--
--
Well your sort of hurting yourself, large drives are never fast, too much surface to cover on rotating-rust.
Speed is from small drives (servers - small surface area) or these days SSDs. The best bet for day to day is a smaller set of rotational
--
--
--
The overall issue is "seek". If you have 4x4GB disks, or 40x400MB disk, you have different "seek" vs "access" formulas. I think this is what Jason is speaking to. For any particular "data", its location on disk, compared to where the head is, creates a certain latency. If you just start reading, and read the same "file" contiguously, then a filesystem which "wrote" the data contiguously under the head(s) can provide a reasonable speed up/equalization of transfer rates.However, for general computer system operation, the more "independent" heads you have, the more "random" I/O speed you can obtain, because the heads can "move" independently, and the OS can schedule "seeks" ahead of the upcoming reads.
Very view people actually use a disk system where "huge" contiguous systems are extremely common. Yes, the OP was about a "test" which involved large, contiguous I/O performance.
There are additional reliability issues with "data" being so narrow on the service (higher density), that you lose some reliability. It takes much smaller surface deterioration to create much large data loss.
--
<iostat.txt><image001.png><image002.png><image003.png>
On Nov 15,2012, at 16:47, Daniel Becker <razz...@gmail.com> wrote:
Daniel, fyi, he said it's a new USB 3 enclosure from 2012 so do those phenomena still exist on USB 3, assuming that it is properly using USB 3?
My understanding is that UASP is essentially USB 3 only (although a USB 2 version is defined), and that even recent USB 3 controllers and enclosures are not guaranteed to support it (although the controllers used in Macs apparently do). Google should have more info.
On Nov 15, 2012, at 2:36 PM, Daniel Bethe <d...@smuckola.org> wrote:
Hey I guess I'll throw in the standard troubleshooting advice of swapping stuff out. Move your enclosure to a different system or a different USB controller and try again. Try another filesystem on the same hardware, to swap out MacZFS. Boot the same system to another OS. Ensure that your enclosure is actually negotiating USB 3 and not just 2. Daniel, fyi, he said it's a new USB 3 enclosure from 2012 so do those phenomena still exist on USB 3, assuming that it is properly using USB 3?
From: Daniel Becker <razz...@gmail.com>
To: zfs-...@googlegroups.com
Sent: Thursday, 15 November 2012, 16:25
Subject: Re: [zfs-macos] Slow performance in new USB3 enclosure
Difficult to say, as "2 minutes" doesn't really mean much by itself. However, a few things to consider:
In terms of raw throughput, 3 SATA-3 links give you almost four times the aggregate throughput as USB 3.0. However, I doubt that that would be a problem with compression (unless you're using a trivial scheme) or encoding (unless you're encoding uncompressed source material), as both would likely be CPU-limited before you hit anywhere near 5 Gbps.
Does your enclosure support UASP (USB-attached SCSI protocol)? Many older and/or cheaper enclosures only support BOT (bulk-only transfer), which means no command queuing and lots of unnecessary round trip times between host controller and device. This will particularly hurt heavy I/O, e.g. if source and destination for your encoding/compression tests are located on the same pool.
In any case, the best way to figure out what's going on is usually looking at "zpool iostat -v 1" and/or "iostat 1" while you're doing your thing.
On Thu, Nov 15, 2012 at 1:34 PM, Wonka <cas...@gmail.com> wrote:
Hi!
Recently transplanted a 9GB raidz1 pool to a new USB3 enclosure (http://www.amazon.com/gp/product/B004WNLPH8/ref=oh_details_o01_s00_i00) on Mac Mini Server 6,2 (2012 model with USB3) and am seeing quite slow performance.
Esp. noticeable with heavy tasks like compressing video or decompressing archives. For example, if compressing a video file existing in the ZFS pool, it takes about 20min. Compressing same file from system's internal SATA drive takes <2m.
To help, here are some details on the pool & the drives it comprises of:
zpool status output:
NAME STATE READ WRITE CKSUM
Media ONLINE 0 0 0
raidz1 ONLINE 0 0 0
disk3s2 ONLINE 0 0 0
disk2s2 ONLINE 0 0 0
disk4s2 ONLINE 0 0 0
Drives are all matched 3x 3TB HDS723030ALA640.
So questions, yes:• Is this expected performance?• If not, can anyone offer tips on isolating the bottleneck? Is it the USB3 enclosure somehow? Need to raise the performance level however i can.• Which benchmark programs support mac-ZFS implementation? (tried XBench but it stopped on -54 error on the ZFS pool only, internal drives benched just fine).Thanks for any help on this. In any case, long live Mac-ZFS!! :)
Wonka
--
See the original post; ran some specific video compression tests using same file: on ZFS + enclosure conversion yielded a time of about 20m, on internal drive <2min.
If you need more technical tests than that, please bear in mind i am alas but a humble user (with big storage needs); can only speak in the language I know ;)
On Jan 7,2013, at 15:02, Daniel Becker <razz...@gmail.com> wrote:I would suggest you run some targeted experiments to see what kind of raw throughput you can get from a single disk in the enclosure, and then repeat the experiment with multiple disks simultaneously.
--