From: Marcello de S. <mar...@gm...> - 2010-07-29 21:53:27
|
I'm trying to verify how close the values from the command line "du" and the implementation class "Du". I don't know if that is the result of using the commands under a virtual machine, but the values differ... * Sigar du execution >$ /usr/lib/jvm/java-6-openjdk/bin/java -Djava.library.path=/u1/svnedge/replica_admin/SvnEdge/ext/sigar -classpath /u1/svnedge/replica_admin/SvnEdge/lib/sigar.jar org.hyperic.sigar.cmd.Du /u1/svnedge/production-tests/1.1/csvn/data/repositories/ddd * Sigar Du execution output 73110 /u1/svnedge/production-tests/1.1/csvn/data/repositories/ddd * Linux du command execution >$ du -sb /u1/svnedge/production-tests/1.1/csvn/data/repositories/ddd * Linux du command output 77206 /u1/svnedge/production-tests/1.1/csvn/data/repositories/ddd I'm running these commands under a VMWare image running the following OS. # Arch: i686 # Name: Linux # VendorName: Linux # Description: Ubuntu 10.04 # VendorVersion: 10.04 # Machine: i686 # Vendor: Ubuntu # VendorCodeName: lucid # PatchLevel: unknown # Version: 2.6.32-23-generic Any comments on that? How could I get the same values on the method calls? Is there a difference related to the blocks on the OS image? Thanks... Marcello de Sales |