Re: test read and write speed in file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23 Oct 2013 10:12:28 +0800, wuyaalan@xxxxxxxxx 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. :)

Attachment: pgpQKxnZLkNE3.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux