"sqlio -kW -b64" - Writing 64-KB Block Test
How to perform tests for writing 64 KB files? My Website allows users to upload picture files with an average of 64 KB per file.
If you want to know how your environment performs on writing 64 KB files, you can use the following SQLIO options:
Below is a test result SQLIO with above options on a Dell computer hard disk with Windows 8:
C:\fyicenter\SQLIO>sqlio -LS -kW -b64 -i64 -f64 -t1 -s300 1 thread writing for 300 secs to file testfile.dat using 64KB IOs over 4096KB stripes with 64 IOs per run size of file testfile.dat needs to be: 268435456 bytes initialization done CUMULATIVE DATA: throughput metrics: IOs/sec: 487.31 MBs/sec: 30.45 latency metrics: Min_Latency(ms): 0 Avg_Latency(ms): 1 Max_Latency(ms): 280 histogram: ms: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24+ %: 59 13 11 6 3 3 1 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
As you can see, this Dell computer is capable to write 487 files of 64 KB per second to the hard disk in a single thread without any buffering.
The average latency of writing a 64-KB block is about 1 milliseconds. In other words, your users should be able to upload a file to your Website in 1 millisecond if we ignore the impact of the Web server software.
Comparing to the data reading test in the previous tutorial, the result might be a surprise to many of us. This Dell computer writes data at a speed of 30.45 MBs/sec, but reads data at a speed of 8.77 MBs/sec. So writing data is 3.5 times faster than reading data!
Usually, hard disks are capable to read faster than write. But in the case of 64-KB block I/O tests, operating system caching mechanism helps writing more than reading. See next tutorials on performance impact of block size.
2019-08-23, 193👍, 0💬
How to create a new WeChat account without phone number? I want to use WeChat, but I don't have a ce...
How to add a hyperlink to connect a keyword to another slide in PowerPoint? I want to have clickable...
How to join a team in Microsoft Teams? My manager told me we are using Microsoft Teams service. In o...
What is "Microsoft Access Outlook Add-in for Data Collection and Publishing" COM Add-in in Outlook 2...
Sometimes I see special symbols are showing up at the end of each paragraph in my Microsoft Word doc...