All of lore.kernel.org
 help / color / mirror / Atom feed
From: WANG Cong <xiyou.wangcong@gmail.com>
To: kexec@lists.infradead.org
Subject: Re: kdump with /proc/oldproc
Date: Wed, 18 May 2011 02:28:38 +0000 (UTC)	[thread overview]
Message-ID: <iqvasm$ctv$1@dough.gmane.org> (raw)
In-Reply-To: OFC164F955.6ED93986-ON86257893.00589FE8-86257893.006037E5@us.ibm.com

On Tue, 17 May 2011 12:30:58 -0500, Nathan D Miller wrote:

> Hello-
> 
> Has anyone tried reconstituting a portion of the old kernel's /proc
> while in the capture kernel?
> 
> I had the idea while digging through the kexec/kdump code and it seemed
> intriguing.
> 
> It might be a means by which user-space dump applications running under
> the capture kernel could interrogate the old system, and identify bad
> processes that instigated the panic.  In particular, I'm thinking of Out
> Of Memory scenarios.   We've modified our kernel to panic instead of
> invoking the kernel's OOM killer, but we still have the problem of
> identifying the "bad" process while running in the capture kernel.
> 
> Perhaps everything could be accomplished using some sort of FUSE
> file-system around /proc/oldmem and /proc/vmcore.  Not all the
> proc/<pid>/ files would need to be implemented, of course.  In addition,
> each old process could have its own 'vmcore' file for getting a core
> dump of the original process.
> 

Well, actually you don't need to bother the old /proc
to find which process is the killer. The old dmesg contains
the PID/comm of the killer process, and we have a tool named
vmcore-dmesg to read out the dmesg from the vmcore.

With the utility 'crash', you can query any info of any process
in the old kernel, so why do you need a per-process vmcore anyway?

Thanks.


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2011-05-18  2:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 17:30 kdump with /proc/oldproc Nathan D Miller
2011-05-18  2:28 ` WANG Cong [this message]
2011-05-18  7:00   ` Maxim Uvarov

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='iqvasm$ctv$1@dough.gmane.org' \
    --to=xiyou.wangcong@gmail.com \
    --cc=kexec@lists.infradead.org \
    /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.