質問

How to measure write/read disc speed using java, i know about SIGAR library, but i can't found such methods in there. Maybe someone know solution?

The problem is that I need to determine at what rate currently is writing to disk, and at what speed is being read. Furthermore, ideally, the data must be obtained for specific directories. But if you tell me at least how to define the entire disk would be very grateful.

役に立ちましたか?

解決

How you obtain this information is entirely dependant on the operating system.

On Linux the simplest tool is to use iostat which will show you how much read/write in blocks and count for each file system.

Performance measurements on a per directory basis are not very meaningful as file systems are not implemented that way. You write to files which can be anywhere on disk and these files might appear in one or more directories. The files are not physically arranged by directory.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top