public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "Metzger, Markus T" <markus.t.metzger@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"markus.t.metzger@gmail.com" <markus.t.metzger@gmail.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [patch] x86, perf_counter, bts: add bts to perf_counter
Date: Fri, 7 Aug 2009 13:33:49 +0200	[thread overview]
Message-ID: <20090807113349.GA31673@elte.hu> (raw)
In-Reply-To: <20090807112421.GB30014@elte.hu>


* Ingo Molnar <mingo@elte.hu> wrote:

> * Metzger, Markus T <markus.t.metzger@intel.com> wrote:
> 
> > Ingo, what exactly do you mean by "locks up"? Is the kernel 
> > hanging or is perf record hanging?
> 
> it was a hard hang - box was not pingable, etc.

the moment i tried kernel-mode BTS tracing (i.e. -e branches, not -e 
branches:u) it hung hard again:

  titan:~> perf record -o /dev/null -f -e branches -c 1 ./loop_1b_instructions

this time i had a serial console attached - there's a perfcounters 
warning prior the hang - attached below. Peter, any ideas?

	Ingo

[  995.556131] ------------[ cut here ]------------
[  995.557128] WARNING: at kernel/perf_counter.c:1191 __perf_counter_task_sched_out+0x48/0x6b()
[  995.557128] Hardware name:         
[  995.557128] Modules linked in:
[  995.557128] Pid: 2008, comm: perf Tainted: G   M       2.6.31-rc5-tip #1350
[  995.557128] Call Trace:
[  995.557128]  <IRQ>  [<ffffffff810a20d9>] ? __perf_counter_task_sched_out+0x48/0x6b
[  995.557128]  [<ffffffff81044880>] warn_slowpath_common+0x77/0xa4
[  995.557128]  [<ffffffff810448bc>] warn_slowpath_null+0xf/0x11
[  995.557128]  [<ffffffff810a20d9>] __perf_counter_task_sched_out+0x48/0x6b
[  995.557128]  [<ffffffff810a4c75>] perf_counter_task_tick+0x61/0x9d
[  995.557128]  [<ffffffff810408b1>] scheduler_tick+0x112/0x237
[  995.557128]  [<ffffffff8104eb58>] update_process_times+0x4f/0x60
[  995.557128]  [<ffffffff81065186>] tick_sched_timer+0x6e/0x8e
[  995.557128]  [<ffffffff8105bff5>] __run_hrtimer+0x71/0xa5
[  995.557128]  [<ffffffff8105c23f>] hrtimer_interrupt+0xef/0x149
[  995.557128]  [<ffffffff810208b8>] smp_apic_timer_interrupt+0x83/0x96
[  995.557128]  [<ffffffff8100c6b3>] apic_timer_interrupt+0x13/0x20
[  995.557128]  <EOI>  [<ffffffff811465ac>] ? __log_space_left+0x0/0x2f
[  995.557128]  [<ffffffff811439a6>] ? start_this_handle+0x302/0x373
[  995.557128]  [<ffffffff810a6e09>] ? lock_page+0x11/0x29
[  995.557128]  [<ffffffff81143b66>] ? journal_start+0x95/0xc5
[  995.557128]  [<ffffffff8113d67f>] ? ext3_journal_start_sb+0x4a/0x4c
[  995.557128]  [<ffffffff81135d3e>] ? ext3_write_begin+0x9c/0x1e2
[  995.557128]  [<ffffffff810a66ef>] ? generic_perform_write+0xb4/0x1a7
[  995.557128]  [<ffffffff810a7dc8>] ? generic_file_buffered_write+0x6d/0x10c
[  995.557128]  [<ffffffff810a825c>] ? __generic_file_aio_write_nolock+0x25e/0x292
[  995.557128]  [<ffffffff810efa74>] ? mntput_no_expire+0x24/0xe8
[  995.557128]  [<ffffffff810a86a4>] ? generic_file_aio_write+0x67/0xc3
[  995.557128]  [<ffffffff811313ff>] ? ext3_file_write+0x1e/0x9f
[  995.557128]  [<ffffffff810da4dc>] ? do_sync_write+0xe7/0x12d
[  995.557128]  [<ffffffff8111f6d4>] ? show_map_vma+0x1c1/0x1d0
[  995.557128]  [<ffffffff811dabfa>] ? __up_read+0x9e/0xa8
[  995.557128]  [<ffffffff81059a10>] ? autoremove_wake_function+0x0/0x38
[  995.557128]  [<ffffffff8111e941>] ? m_stop+0x2b/0x4d
[  995.557128]  [<ffffffff8119a140>] ? security_file_permission+0x11/0x13
[  995.557128]  [<ffffffff810daeb8>] ? vfs_write+0xab/0x105
[  995.557128]  [<ffffffff810dafd6>] ? sys_write+0x47/0x6f
[  995.557128]  [<ffffffff8100bbab>] ? system_call_fastpath+0x16/0x1b
[  995.557128] ---[ end trace ff0d385da11eb1c5 ]---

  reply	other threads:[~2009-08-07 11:33 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21 13:56 [patch] x86, perf_counter, bts: add bts to perf_counter Markus Metzger
2009-08-04 10:24 ` Peter Zijlstra
2009-08-04 11:14   ` Ingo Molnar
2009-08-04 11:35     ` Ingo Molnar
2009-08-05 11:10       ` Metzger, Markus T
2009-08-07  7:29       ` Metzger, Markus T
2009-08-07  8:21         ` Peter Zijlstra
2009-08-07 10:18           ` Metzger, Markus T
2009-08-07 10:29             ` Peter Zijlstra
2009-08-07 12:18               ` Metzger, Markus T
2009-08-07 13:05                 ` Peter Zijlstra
2009-08-07 10:31             ` Ingo Molnar
2009-08-07 10:36               ` Ingo Molnar
2009-08-07 10:57                 ` Metzger, Markus T
2009-08-07 11:17                   ` Metzger, Markus T
2009-08-07 11:24                     ` Ingo Molnar
2009-08-07 11:33                       ` Ingo Molnar [this message]
2009-08-07 17:49                         ` [PATCH] perf_counter: Fix a race on perf_counter_ctx Peter Zijlstra
2009-08-08 11:52                           ` [tip:perfcounters/core] " tip-bot for Peter Zijlstra
2009-08-08 12:03                           ` [PATCH] " Ingo Molnar
2009-08-10 12:33                             ` Metzger, Markus T
2009-08-10 12:59                               ` Peter Zijlstra
2009-08-10 13:46                               ` Ingo Molnar
2009-08-11  6:33                                 ` Metzger, Markus T
2009-08-11  8:59                                 ` Metzger, Markus T
2009-08-18 12:49                                   ` Metzger, Markus T
2009-08-18 12:59                                     ` Peter Zijlstra
2009-08-18 12:59                                       ` Peter Zijlstra
2009-08-18 13:20                                         ` Metzger, Markus T
2009-08-18 13:37                                           ` Peter Zijlstra
2009-08-18 13:54                                             ` Metzger, Markus T
2009-08-18 14:00                                               ` Ingo Molnar
2009-08-18 14:15                                                 ` Metzger, Markus T
2009-08-28  9:56                                                   ` Metzger, Markus T
2009-09-01 11:17                                                     ` [discuss] BTS overflow handling, was: " Metzger, Markus T
2009-09-01 13:00                                                       ` Peter Zijlstra
2009-09-01 13:09                                                         ` Ingo Molnar
2009-09-01 13:32                                                         ` Metzger, Markus T
2009-09-01 13:53                                                           ` Peter Zijlstra
2009-09-01 14:27                                                             ` Metzger, Markus T
2009-09-01 14:35                                                               ` Peter Zijlstra
2009-09-03 14:25                                                             ` Metzger, Markus T
2009-08-18 14:01                                               ` Peter Zijlstra
2009-08-18 14:19                                                 ` Metzger, Markus T
2009-08-09 11:10                           ` [tip:perfcounters/core] " tip-bot for Peter Zijlstra
2009-08-07 11:26                     ` [patch] x86, perf_counter, bts: add bts to perf_counter Ingo Molnar
2009-08-07 11:29                       ` Ingo Molnar
2009-08-07 12:14                         ` Metzger, Markus T
2009-08-07 11:19                   ` Ingo Molnar
2009-08-07 11:34                     ` Metzger, Markus T
2009-08-07 11:37                     ` Metzger, Markus T
2009-08-04 11:37 ` [tip:perfcounters/urgent] x86, perf_counter, bts: Add BTS support to perfcounters tip-bot for Markus Metzger
2009-08-07 10:10 ` [tip:perfcounters/core] " tip-bot for Markus Metzger
2009-08-08 11:43 ` tip-bot for Markus Metzger
2009-08-08 11:53 ` tip-bot for Markus Metzger
  -- strict thread matches above, loose matches on Subject: below --
2009-08-07  7:22 [patch] x86, perf_counter, bts: add bts to perf_counter Markus Metzger
2009-08-07 11:45 ` Peter Zijlstra
2009-08-07 11:51   ` Metzger, Markus T
2009-08-07 11:57     ` Peter Zijlstra
2009-08-07 16:39 ` Peter Zijlstra

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=20090807113349.GA31673@elte.hu \
    --to=mingo@elte.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markus.t.metzger@gmail.com \
    --cc=markus.t.metzger@intel.com \
    --cc=tglx@linutronix.de \
    /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