From: Doug M. <do...@hy...> - 2009-10-23 22:48:13
|
Hi Chris, DiskUsage.java is generated by the build system. The code is actually in linux_sigar.c The issue is likely file system -> device mapping: % java -Dsigar.nativeLogging=true -jar sigar.jar iostat / Filesystem Mounted on Reads Writes R-bytes W-bytes Queue Svctm 0 [main] DEBUG Sigar - [iodev] map / -> /dev/sda2 3 [main] DEBUG Sigar - [iodev] map /boot -> /dev/sda1 3 [main] DEBUG Sigar - [iodev] map /data -> /dev/sda5 3 [main] DEBUG Sigar - /proc/diskstats / -> /dev/sda2 [8,2] /dev/sda2 / 1522729 3748132 10G 14G 0.96 3.66 The iostat command also accepts the device name, does this work for you? % java -jar sigar.jar iostat sda Filesystem Mounted on Reads Writes R-bytes W-bytes Queue Svctm sda - 26260315 15559442 433G 644G 0.97 3.66 |