public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Theurer <habanero@linux.vnet.ibm.com>
To: Hailong Yang <hailong.yang1115@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: perf stat to collect the performance statistics of KVM process
Date: Mon, 14 May 2012 08:43:13 -0500	[thread overview]
Message-ID: <4FB10BF1.5080807@linux.vnet.ibm.com> (raw)
In-Reply-To: <4fafd9af.62ee440a.4f7f.6049@mx.google.com>

On 05/13/2012 10:56 AM, Hailong Yang wrote:
> 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?

Can you please try "kill -s INT <pid>"
>
> Best Regards
>
> Hailong
>

-Andrew Theurer


      reply	other threads:[~2012-05-14 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=4FB10BF1.5080807@linux.vnet.ibm.com \
    --to=habanero@linux.vnet.ibm.com \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox