test read and write speed in file
hi all, how can i test read and wirte speed in a file in linux OS. the command dd provided how to test the speed of harddisk, i think dd can not accurate test the speed of file.what should i do ? which tool or software can do this .
"于运超" <wuyaalan@gmail.com> wrote:
hi all, how can i test read and wirte speed in a file in linux OS. the command dd provided how to test the speed of harddisk, i think dd can not accurate test the speed of file.what should i do ? which tool or software can do this .
A lot of kernel hackers use fio to create complex disk workloads. The basic tool is command line, bit there is an optional gui front-end for it. Greg -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.
On Wed, 23 Oct 2013 10:12:28 +0800, wuyaalan@gmail.com said:
how can i test read and wirte speed in a file in linux OS.
This is a lot harder than it looks - mostly because you need to figure out exactly what question you're actually asking. With or without the in-memory file cache? Streaming with readahead, or random? If random, what access pattern? How large a file? Kilobytes, megabytes, gigabytes, terabytes? Access to one file, or interleaved access to multiple files? Do you need to account for intermediate layers, such as cryptLUKS, LVM, or even both in combination? Are you measuring writes as complete when they hit the block cache layer, or when they're actually writeback flushed to disk? Do you need to include the impact of fsync() or sync() system calls? And that's just the obvious stuff I can think of at 1AM. There's more. :)
participants (3)
-
Greg Freemyer -
Valdis.Kletnieks@vt.edu -
于运超