All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hailong Yang" <hailong.yang1115@gmail.com>
To: <kvm@vger.kernel.org>
Subject: perf stat to collect the performance statistics of KVM process
Date: Sun, 13 May 2012 23:56:28 +0800	[thread overview]
Message-ID: <4fafd9af.62ee440a.4f7f.6049@mx.google.com> (raw)

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


             reply	other threads:[~2012-05-13 15:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-13 15:56 Hailong Yang [this message]
2012-05-14 13:43 ` perf stat to collect the performance statistics of KVM process Andrew Theurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fafd9af.62ee440a.4f7f.6049@mx.google.com \
    --to=hailong.yang1115@gmail.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.