aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2010-10-11 18:08:40 +0100
committerEric B Munson <emunson@mgebm.net>2010-10-11 14:50:33 -0700
commit5e17de6b7c082ade561e4490a228bf39486abbed (patch)
treee7dbda793e9ee60bf37cdda0eca9a66e10a27a48
parent53e062d46116e368fbd23e195ade8f354b75ca98 (diff)
downloadlibhugetlbfs-5e17de6b7c082ade561e4490a228bf39486abbed.tar.gz
cpupcstat: Reduce the sampling rate used by oprofile
oprofile at its maximum sampling rate causes a lot of interference. There is no good automatic way of finding out a non-interfering level as it basically depends on the workload. Still, we can reduce the impact somewhat with this patch. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Acked-by: Eric B Munson <emunson@mgebm.net> Signed-off-by: Eric B Munson <emunson@mgebm.net>
-rw-r--r--TLBC/OpCollect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/TLBC/OpCollect.pm b/TLBC/OpCollect.pm
index 9066099..b5f0fcd 100644
--- a/TLBC/OpCollect.pm
+++ b/TLBC/OpCollect.pm
@@ -55,7 +55,7 @@ sub _setup_oprofile()
my $self = shift;
my $vmlinux = shift;
my $refEvents = shift;
- my $cmd = "$Bin/oprofile_start.sh --vmlinux=$vmlinux ";
+ my $cmd = "$Bin/oprofile_start.sh --sample-cycle-factor 6 --sample-event-factor 2 --vmlinux=$vmlinux ";
foreach my $event (@{$refEvents}) {
$cmd .= " --event=$event";
$self->_get_event($event);