Wes Schlichter created SIGAR-236:
-
Summary: Sigar returns raw free megabytes rather than % for Windows Perfmon statistic: LogicalDisk % Free Space
Key: SIGAR-236
URL: https://jira.hyperic.com/browse/SIGAR-236
Project: Sigar
Issue Type: Bug
Affects Versions: 1.6.4
Reporter: Wes Schlichter
Assignee: Doug MacEachern
Priority: Major
Sample Sigar command line to compare data and get information for plugin shows:
java -classpath sigar-1.6.4.jar org.hyperic.sigar.win32.Pdh -i --object=LogicalDisk -k -v LogicalDisk C: % Free Space = 75403.0 Free Megabytes = 75403.0 Current Disk Queue Length = 0.0 % Disk Time = 8.47627527788E11 Avg. Disk Queue Length = 8.47627527788E11 % Disk Read Time = 4.49497108621E11 Avg. Disk Read Queue Length = 4.49497108621E11 % Disk Write Time = 3.98130419167E11 Avg. Disk Write Queue Length = 3.98130419167E11 Avg. Disk sec/Transfer = 3.03412112677E11 Avg. Disk sec/Read = 1.60899537549E11 Avg. Disk sec/Write = 1.42512575127E11 Disk Transfers/sec = 2.7533828E7 Disk Reads/sec = 4679165.0 Disk Writes/sec = 2.2854663E7 Disk Bytes/sec = 2.92375414272E11 Disk Read Bytes/sec = 9.4181958144E10 Disk Write Bytes/sec = 1.98193456128E11 Avg. Disk Bytes/Transfer = 2.92375414272E11 Avg. Disk Bytes/Read = 9.4181958144E10 Avg. Disk Bytes/Write = 1.98193456128E11 % Idle Time = 2.357662819011E12 Split IO/Sec = 3023861.0 E: % Free Space = 1690582.0 Free Megabytes = 1690582.0 Current Disk Queue Length = 0.0 % Disk Time = 2.629521497E9 Avg. Disk Queue Length = 2.629521497E9 % Disk Read Time = 1.586835896E9 Avg. Disk Read Queue Length = 1.586835896E9 % Disk Write Time = 1.042685601E9 Avg. Disk Write Queue Length = 1.042685601E9 Avg. Disk sec/Transfer = 9.41249052E8 Avg. Disk sec/Read = 5.68015049E8 Avg. Disk sec/Write = 3.73234002E8 Disk Transfers/sec = 721960.0 Disk Reads/sec = 487483.0 Disk Writes/sec = 234477.0 Disk Bytes/sec = 5.739574272E9 Disk Read Bytes/sec = 2.075692544E9 Disk Write Bytes/sec = 3.663881728E9 Avg. Disk Bytes/Transfer = 5.739574272E9 Avg. Disk Bytes/Read = 2.075692544E9 Avg. Disk Bytes/Write = 3.663881728E9 % Idle Time = 1.808814288712E12 Split IO/Sec = 898.0 _Total % Free Space = 1765985.0 Free Megabytes = 1765985.0 Current Disk Queue Length = 1.0 % Disk Time = 4.25128843134E11 Avg. Disk Queue Length = 8.50257686268E11 % Disk Read Time = 2.25542087602E11 Avg. Disk Read Queue Length = 4.51084175205E11 % Disk Write Time = 1.99586792308E11 Avg. Disk Write Queue Length = 3.99173584617E11 Avg. Disk sec/Transfer = 3.04353591287E11 Avg. Disk sec/Read = 1.61467610392E11 Avg. Disk sec/Write = 1.42885980893E11 Disk Transfers/sec = 2.825583E7 Disk Reads/sec = 5166650.0 Disk Writes/sec = 2.308918E7 Disk Bytes/sec = 2.98115191296E11 Disk Read Bytes/sec = 9.625765888E10 Disk Write Bytes/sec = 2.01857532416E11 Avg. Disk Bytes/Transfer = 2.98115191296E11 Avg. Disk Bytes/Read = 9.625765888E10 Avg. Disk Bytes/Write = 2.01857532416E11 % Idle Time = 2.083239035619E12 Split IO/Sec = 3024768.0
Compared results to Windows Perfmon display utility which does show % Free Space as %. Screenshot attached for reference.
Also ran df command in Sigar which shows correct information for Use%:
sigar> df Filesystem Size Used Avail Use% Mounted on Type C:\ 149G 75G 74G 51% C:\ NTFS/local D:\ 0 0 0 - D:\ cdrom/cdrom E:\ 1.8T 212G 1.6T 12% E:\ NTFS/local H:\ 5.0G 16E 1.9G 1% H:\ NTFS/remote S:\ 15G 6.0G 9.0G 41% S:\ NTFS/remote T:\ 1.4T 691G 736G 49% T:\ NTFS/remote W:\ 0 0 0 - W:\ remote/remote Y:\ 16G 9.8G 6.2G 62% Y:\ NTFS/remote Z:\ 1.4T 691G 736G 49% Z:\ NTFS/remote sigar>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.hyperic.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira