From: Andi Kleen <andi@firstfloor.org>
To: Nuno Pais Fernandes <npf@eurotux.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: proc_stack for x86_64 (spinning process)
Date: Tue, 08 Apr 2008 13:21:53 +0200 [thread overview]
Message-ID: <87myo4pp66.fsf@basil.nowhere.org> (raw)
In-Reply-To: <200804081136.41876.npf@eurotux.com> (Nuno Pais Fernandes's message of "Tue, 8 Apr 2008 11:36:41 +0100")
Nuno Pais Fernandes <npf@eurotux.com> writes:
> Hi,
>
> I have a spinning process that it's locking my server (eating 100% CPU). I
> can't kill it even with kill -9
>
> I'm trying to use proc_stack to check what's the problem, compiling the kernel
> with
>
> http://linuxhacker.ru/~nikita/patches/2.6.12-rc6/2005.06.11/vm_07-proc-stack.patch
>
> But this patch is only for x86 as my arch is x86_64. Does anyone know if
> there's a patch for x86_64?
The standard way to handle that is to just do
echo 1 > /proc/sys/kernel/sysrq
echo t > /proc/sysrq-trigger
and then look for the process backtrace in the kernel log.
Another alternative is to use crash to take a live dump and then analyse that
using crash.
-Andi
next prev parent reply other threads:[~2008-04-08 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 10:36 proc_stack for x86_64 (spinning process) Nuno Pais Fernandes
2008-04-08 11:21 ` Andi Kleen [this message]
2008-04-08 11:41 ` Nuno Fernandes
2008-04-08 11:49 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2008-04-08 10:36 Nuno Fernandes
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=87myo4pp66.fsf@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=npf@eurotux.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.