public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* perf stat to collect the performance statistics of KVM process
@ 2012-05-13 15:56 Hailong Yang
  2012-05-14 13:43 ` Andrew Theurer
  0 siblings, 1 reply; 2+ messages in thread
From: Hailong Yang @ 2012-05-13 15:56 UTC (permalink / raw)
  To: kvm

Dear all,

I am running perf stat to collect the performance statistics of the already
running KVM guest VM process. And I have a shell script to execute the perf
stat as a daemon process. But when I use the 'kill' command to stop the perf
stat, there is no output redirected to a file. What I would like to do is
that to collect performance counters of the guest VM process for a certain
period and redirect the output to a log file, but without user interaction
(such as using CTRL + C to stop the perf stat)

[root@dell06 ~]# (perf stat -p 7473 -x ,) 2> perftest & 
[1] 15086
[root@dell06 ~]# kill 15086
[root@dell06 ~]# 
[1]+  Terminated              ( perf stat -p 7473 -x , ) 2> perftest
[root@dell06 ~]# cat perftest
[root@dell06 ~]#

Any clue?

Best Regards

Hailong


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-14 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-13 15:56 perf stat to collect the performance statistics of KVM process Hailong Yang
2012-05-14 13:43 ` Andrew Theurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox