Re: Regarding vmlinux file for opcontrol --init
Michael Petlan <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am very far from being an expert in virtualization. I am just sharing what works for me. The solution I described is QEMU/KVM-only. The configuration (XML snippet) is set on the host per guests. When a guest is configured with <cpu mode='host-passthrough'/>, it should be able to use the host's PMU from within the guest. It is not important what is running on the guest (fedora, ubuntu) at all, and, it is probably not important what is running on the host either (fedora/ubuntu). I did not get from your mail whether you installed the libvirt-bin on guest or on host. However, all the configuration from the link I sent is done on the _host_ (QEMU/KVM host, which is just a usual Linux box). I don't know what are your other needs/limitations, but... Let's suppose you have a Broadwell bare metal machine which you don't really care which OS it is running. Having that, I would install Fedora there, then I would try out oprofile there (it is available within the repositories (`dnf install oprofile`). If this works (it should), then I would follow a tutorial how to set up a QEMU/KVM guest on Fedora and install anything you want into that guest. Then, on the host, change the settings of the guest as described in [1] and try the latest oprofile in the guest. This should work. However, wrt Xen, google says, that for enabling PMU within guests, you need to boot with 'vpmu=1' option [2]. Just saying. Michael [1] https://sourceforge.net/p/oprofile/mailman/message/35645458/ [2] https://lwn.net/Articles/566159/ On Tue, 7 Mar 2017, dhara buch wrote: > Hi, > Although now I will try with Fedora+KVM, in my existing ssetup (Uvuntu+Xen) I tried to change cpu mode as per the > way, you have shown in previous link. > > I have installed libvirt-bin for ubuntu but libvirtd service is not getting started. It gives an error like: > libvirt service not found. no such file or directory. > > Any installation is missing? > > Thanking you, > > Dhara Buch > > > > On Mon, Mar 6, 2017 at 10:36 PM, Michael Petlan <[email protected]> wrote: > On Mon, 6 Mar 2017, dhara buch wrote: > Thanks a lot for your reply. > Considering Xen virtualization problem, if I plan to work with KVM, will it work if I use KVM > with Ubuntu only. > > Is it necessary to go for redhat for HW events monitoring? > > > It should work with Ubuntu, but I have run that myself on RHEL/Fedora > only, so far. > > Please refer to [1] regarding to enabling PMU support there. > > Cheers, > Michael > > [1] https://sourceforge.net/p/oprofile/mailman/message/35645458/ > > > Regards > > On Mon, Mar 6, 2017 at 7:25 PM, Michael Petlan <[email protected]> wrote: > Hi Dhara, > > from all the mails and our investigation, I think that OProfile, > your kernel version and your machine should be all OK. Thus, I > would guess that the problem is in Xen virtualization, which I > don't have any experience with, so I cannot help more. I have > used OProfile/perf/PMU HW events on QEMU/KVM guests and bare > metal boxes only. Thus I don't know what else to advise, I am > sorry. > > Regards, > Michael > > > On Sat, 4 Mar 2017, dhara buch wrote: > Hello, > In continuity of my previous mail, I would like to add that, after getting > failure in rebuilding existing kernel , I downloaded source of latest linux-4.10.1 also. > > While trying to install it i encountered : > > REPORTING_BUGS not found error: > > Can you please help to solve this issue? > > Thanking you, > > Dhara Buch > > > > > ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford _______________________________________________ oprofile-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oprofile-list