I am writing an EC2 clustering profiling tool that is designed to collect data by running OProfile for each instance. Ultimately, I would like to combine the XML output generated by opreport and parse it later.
Right now, I'm stuck in getting OProfile to view hardware events - all I can do is create profiles in timer interrupt mode. I have a feeling that this is due to the fact that EC2 instances work in a virtualized environment where OProfile cannot see hardware events.
I studied this hunch a bit and came up with Xenoprof as a possible solution, but there is very limited documentation on how to run it and work with EC2.
If someone managed to launch Xenoprof on EC2 (and I know that there should be some success, because there are several articles about this), could you tell me what is going wrong?
When I run yum install oprofile
and then the person is opcontrol
in the instance, I see that there are options for xen, which I think means that Xenoprof should be installed. I just don’t know what to do to get hardware events as my samples.
Any advice would be highly appreciated! Thanks.
source share