Reading dd perf test result Q

Sequences

Member
Nov 27, 2012
124
0
76
I recently setup a freenas instance on a laptop to play around with. I have two of the following drives in RAIDZ0 configuration: http://www.amazon.com/gp/product/B00...?ie=UTF8&psc=1

I ran the following command to test write performance: dd if=/dev/zero of=temp.dat bs=xk count=25k, where bs=xk went from 4k to 1024k. What I think this is doing is writing 25k blocks to a file temp.dat where each block is xk large. Is this correct?

My results, all in bytes/sec:
4k: 231,643,525
8k: 405,123,077
16k: 621,108,792
32k: 850,625,719
64k: 894,870,764
128k: 1,110,215,931
256k: 1,069,449,486
1024k: 998,503,067

I just want to make sure I am reading this correctly: at around 128k per block, this setup can write at 1.1GB/s sequentially?
 
Feb 25, 2011
16,824
1,493
126
The command looks right. The results are flatly impossible, so it's probably just going, "hey, this jerk is writing zeroes - let's just pretend we're done so he can go play Candy Crush."
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
You're testing how quickly the system can read from /dev/zero, , fill up buffers for a file, and sync those buffers to the contents of the file system for the drive's mount point. The drive's performance may not show up as a significant part of the results until you've written many GBs, that way. The drive only matters once the buffers are large enough, old enough, or take up too much memory, causing the OS to flush them. Unless mounted sync, that can be done while writing to the in-memory buffers, and the results, even if mounted sync, will vary by filesystem. ZFS may complicate testing and results, too.

Use a tool made to test drives, like Iometer, to have any hope of getting realistic results. You will probably find the peak sequential rate to be around 250MBps.
 
Last edited:

Sequences

Member
Nov 27, 2012
124
0
76
The command looks right. The results are flatly impossible, so it's probably just going, "hey, this jerk is writing zeroes - let's just pretend we're done so he can go play Candy Crush."

They didn't look right to me, hence this sanity check post. Thanks for the check.

You're testing how quickly the system can read from /dev/zero, , fill up buffers for a file, and sync those buffers to the contents of the file system for the drive's mount point. The drive's performance may not show up as a significant part of the results until you've written many GBs, that way. The drive only matters once the buffers are large enough, old enough, or take up too much memory, causing the OS to flush them. Unless mounted sync, that can be done while writing to the in-memory buffers, and the results, even if mounted sync, will vary by filesystem. ZFS may complicate testing and results, too.

Use a tool made to test drives, like Iometer, to have any hope of getting realistic results. You will probably find the peak sequential rate to be around 250MBps.

I ran it again with higher counts and the numbers stayed consistent. I take it from your post that this would be a much better test?

What I want to accomplish is getting some benchmark numbers so that later on I have something to compare against. Ideally, this will become part of my diagnostic toolset for maintaining my setup. I see that you mentioned iometer. I guess I will need to compile it to use it?
 
Feb 25, 2011
16,824
1,493
126
I ran it again with higher counts and the numbers stayed consistent. I take it from your post that this would be a much better test?

What I want to accomplish is getting some benchmark numbers so that later on I have something to compare against. Ideally, this will become part of my diagnostic toolset for maintaining my setup. I see that you mentioned iometer. I guess I will need to compile it to use it?

Yeah, you'd be installing it from the local ports directory, probably.

http://olddoc.freenas.org/index.php/Installing_non-PBI_Software

Once you've installed Dynamo (the I/O engine) you connect to it with the IOMeter GUI from a windows machine.

If you're just looking for sequential numbers, you can also generate a test file (do your dd command again but if=/dev/random) and and move that around. Random data won't be easy to compress/skip/cache.
 
Last edited:

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
I ran it again with higher counts and the numbers stayed consistent. I take it from your post that this would be a much better test?
The problem is that just writing data from memory to a file makes great utilization of the OS and FS implementation, and not so much the drive. If you have compression on in ZFS, FI, writing zeroes should never appear to get limited by the HDDs (I don't know for sure, but ZFS may have special treatment for all-0 blocks, too). Almost all the work that is going on is going in your RAM, then only the finalized result goes to disk. The speed differences you see are mostly the overhead of the OS managing memory outside the file system, and file system synchronizing data in memory. You need to run something that requests syncs, flushes, and/or direct access, to get around that, to see what your performance might be, if you start getting limited in IOPS.

P.S. Also check out the fio project.

I would expect the RAID 0 to max out around 250MBps and 300 IOPS, with such tests.
 
Last edited:
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |