[ https://issues.apache.org/jira/browse/HADOOP-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660104#action_12660104 ]
Ari Rabkin commented on HADOOP-4959: ------------------------------------ The whole business of "use system utilities to collect statistics, and then parse the output" never sat well with me. It's going to be a pain to maintain, going forward, since it's not easy to test on N different versions of utilities. Perhaps worse, there are cases where the text parses fine, but the meaning has shifted. I've seen this with regards cumulative-versus-instantaneous measurements from iostat and such. There's a library, Sigar [http://www.hyperic.com/products/sigar.html] that does this correctly. Unfortunately, it's GPLed. Is there an Apache-friendly equivalent that we could use instead? > System metrics does not output correctly for Redhat 5.1. > -------------------------------------------------------- > > Key: HADOOP-4959 > URL: https://issues.apache.org/jira/browse/HADOOP-4959 > Project: Hadoop Core > Issue Type: Bug > Components: contrib/chukwa > Environment: Redhat EL 5.1, Java 6 > Reporter: Eric Yang > Assignee: Eric Yang > > Top output is different between Redhat 4.5 and Redhat 5.1. The demux parser > needs to be updated to parse information correctly. > From Redhat EL 4.5: > 008-12-23 00:00:33,983 INFO > org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:00:33 up > 291 days, 3:34, > 0 users, load average: 1.42, 4.47, 4.97^D > Tasks: 184 total, 1 running, 183 sleeping, 0 stopped, 0 zombie^D > Cpu(s): 6.9% us, 0.8% sy, 0.5% ni, 90.8% id, 0.9% wa, 0.0% hi, 0.2% si^D > Mem: 3088508k total, 1364972k used, 1723536k free, 68008k buffers^D > Swap: 16386160k total, 501196k used, 15884964k free, 406344k cached^D > From Redhat EL 5.1: > 2008-12-23 00:55:00,242 INFO > org.apache.hadoop.chukwa.inputtools.plugin.metrics.Exec: top - 00:55:00 up 33 > days, 22:07, > 2 users, load average: 1.14, 1.17, 1.07^D > Tasks: 177 total, 1 running, 176 sleeping, 0 stopped, 0 zombie^D > Cpu(s): 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st^D > Mem: 8175232k total, 2027628k used, 6147604k free, 344052k buffers^D > Swap: 25157664k total, 0k used, 25157664k free, 1248400k cached^D > Notice in 5.1, there is a % for st. > The parser needs to be improved. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.