WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] performance counters

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] performance counters
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: 2007年3月15日 13:57:03 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2007年3月15日 06:55:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C21EE582.B8A4%keir@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <45F93B96.76E4.0078.0@xxxxxxxxxx> <C21EE582.B8A4%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Keir Fraser <keir@xxxxxxxxxxxxx> 15.03.07 12:58 >>>
>On 15/3/07 11:27, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:
>
>> In order to be meaningful and usable together with other measuring methods,
>> their use in my opinion should impose as little overhead as possible. With
>> that,
>> I wonder why per-cpu counters use atomic operations.
>
>Well, they shouldn't be. Nearly all (apart from the array/histogram ones)
>are per-cpu anyway. And even if they weren't, a few lost increments wouldn't
>matter (assuming the read and write parts of the increment are each
>themselves atomic -- otherwise you could get worse write-conflict problems
>like word tearing).
Hmm, I wouldn't want to do away with the atomicity here altogether. That,
however, would imply adding knowledge about the field name of the atomic_t
to include/xen/perfc.h (and hence imply that all architectures use the same
name here). Would you consider this acceptable?
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] mini-os: C programming , Keir Fraser
Next by Date: Re: [Xen-devel] [PATCH] fix memory exchange hypercall. , Keir Fraser
Previous by Thread: Re: [Xen-devel] performance counters , Keir Fraser
Next by Thread: Re: [Xen-devel] performance counters , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /