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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 2/2] xenoprofile: Add IBS support

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/2] xenoprofile: Add IBS support
From: Wei Wang2 <wei.wang2@xxxxxxx>
Date: Tue, 10 Aug 2010 14:44:48 +0200
Cc: robert.richter@xxxxxxx, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 10 Aug 2010 05:48:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C600577020000780000ED13@xxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201007301528.41379.wei.wang2@xxxxxxx> <4C600577020000780000ED13@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
On Monday 09 August 2010 13:41:11 Jan Beulich wrote:
> >>> On 30.07.10 at 15:28, Wei Wang2 <wei.wang2@xxxxxxx> wrote:
> >
> >--- a/drivers/oprofile/oprofile_files.c
> >+++ b/drivers/oprofile/oprofile_files.c
> >@@ -21,7 +21,7 @@
> > #include "oprof.h"
> >
> > unsigned long fs_buffer_size = 131072;
> >-unsigned long fs_cpu_buffer_size = 8192;
> >+unsigned long fs_cpu_buffer_size = 131072;
>
> Why is this needed at all, why this much of an increase, and why not
> conditional upon CONFIG_XEN?
>
> Jan


Hi Jan
I had observed over 50% samples lose using following configuration:
opcontrol --start --event=IBS_OP_ALL:50000 --no-vmlinux
if fs_cpu_buffer_size = 8192. The same issue was also seen on native 2.6.34 
kernel. In my case, extending fs_cpu_buffer_size or increasing sampling 
period can fix this issue.

Since each IBS_OP sample will occupy 14 entries in cpu buffer compared with 
only 1 entry for event-based sample, I suspect that the default size of 
per-cpu buffer would not be enough for IBS_OP mode in minimum sampling period 
(50000). I simply extended fs_cpu_buffer_size just to make sure it works for 
current userland tools. If we intent to force a longer minimum sampling 
period for IBS_OP_ALL in future release of tools, we could keep 
fs_cpu_buffer_size = 8192.

Thanks,
Wei


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>