start disk i/o metrics
This commit is contained in:
1 parent
f932402774
commit
e5582816c6
5 files changed
+116
-1
No files matched your search
@@ -468,6 +468,16 @@ my %classes = (
|
||||
desc => 'Number of free file nodes on the filesystem',
|
||||
plat => 'ADFHLS'
|
||||
},
|
||||
{
|
||||
name => 'disk_reads', type => 'Long',
|
||||
desc => 'Number of physical disk reads',
|
||||
plat => 'W'
|
||||
},
|
||||
{
|
||||
name => 'disk_writes', type => 'Long',
|
||||
desc => 'Number of physical disk writes',
|
||||
plat => 'W'
|
||||
},
|
||||
{
|
||||
name => 'use_percent', type => 'Double',
|
||||
desc => 'Percent of disk used',
|
||||
|
||||
@@ -43,6 +43,8 @@ public class TestFileSystem extends SigarTestCase {
|
||||
double usePercent = usage.getUsePercent() * 100;
|
||||
traceln("Used=" + usePercent + "%");
|
||||
assertTrue(usePercent <= 100.0);
|
||||
traceln("DiskReads=" + usage.getDiskReads());
|
||||
traceln("DiskWrites=" + usage.getDiskWrites());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user