From: William Cohen <wcohen@redhat.com>
To: "\"蒋雄伟(蒋冲)\"" <xiongwei.jiang@alibaba-inc.com>,
oprofile-list@lists.sourceforge.net
Cc: xen-devel@lists.xensource.com, xen-devel@lists.xen.org
Subject: Re: 答复: oprofile-list Digest, Vol 108, Issue 1
Date: Thu, 07 May 2015 10:18:50 -0400 [thread overview]
Message-ID: <554B744A.40100@redhat.com> (raw)
In-Reply-To: <00eb01d086ee$34097d80$9c1c7880$@alibaba-inc.com>
On 05/05/2015 12:44 AM, 蒋雄伟(蒋冲) wrote:
> In /xen/arch/x86/oprofile/op_counter.h there is a definition
>
> #define OP_MAX_COUNTER 8
>
> As far as I know , the number of counter equals the number of events. As
> all we know that the number of events is more than 8.
> So my question is : Is it the maximum concurrent counter or the total
> counter ?
>
Hi,
You are referring to OP_MAX_COUNTER in:
http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/x86/oprofile/op_counter.h;h=b515ac9ebc8e379a36917e6f270653d412a87dd7;hb=refs/heads/master
This is the maximum number of performance monitoring counters that the processors could have and can use concurrently. However, some x86 processors have fewer performance counters available. Many AMD processors only have 4 and when hyperthreading is used on some Intel processors the number of counters is halfed with each thread getting 4. The following checks with OP_MAX_COUNTER look a bit odd as a result allowing writing to things that will never be used:
http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/x86/oprofile/xenoprof.c;h=002a6962246598ab150f03acc27dc9753fa436f5;hb=refs/heads/master
-Will
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list
prev parent reply other threads:[~2015-05-07 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.231693.1430794183.2287.oprofile-list@lists.sourceforge.net>
2015-05-05 4:44 ` 答复: oprofile-list Digest, Vol 108, Issue 1 蒋雄伟(蒋冲)
2015-05-07 14:18 ` William Cohen [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=554B744A.40100@redhat.com \
--to=wcohen@redhat.com \
--cc=oprofile-list@lists.sourceforge.net \
--cc=xen-devel@lists.xen.org \
--cc=xen-devel@lists.xensource.com \
--cc=xiongwei.jiang@alibaba-inc.com \
/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.