public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vivek Goyal <vgoyal@in.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>, Chris Newport <crn@netunix.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Christoph Lameter <clameter@sgi.com>,
	Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>,
	"Cherwin R. Nooitmeer" <cherwin@gmail.com>,
	linux-pcmcia@lists.infradead.org,
	Robert de Rooy <robert.de.rooy@gmail.com>,
	Alan Cox <alan@redhat.com>, Tejun Heo <htejun@gmail.com>,
	sparclinux@vger.kernel.org, David Miller <davem@davemloft.net>,
	Mikael Pettersson <mikpe@it.uu.se>,
	linux1394-devel@lists.sourceforge.net,
	Stefan Richter <stefanr@s5r6.in-berlin.de>,
	Kristian H?gsberg <krh@bitplanet.net>,
	linux-pm@lists.linux-foundation.org,
	"Rafael J. Wysocki" <rjw@sisk.pl>, Pavel Machek <pavel@ucw.cz>,
	Marcus Better <marcus@better.se>,
	Andrey Borzenkov <arvidjaar@mail.ru>,
	linux-usb-devel@lists.sourceforge.net,
	Greg Kroah-Hartman <gregkh@suse.de>,
	"Ken'ichi Ohmichi" <oomichi@mxs.nes.nec.co.jp>
Subject: Re: [2/3] 2.6.22-rc2: known regressions v2
Date: Mon, 28 May 2007 09:16:40 +0530	[thread overview]
Message-ID: <20070528034640.GA6367@in.ibm.com> (raw)
In-Reply-To: <20070525093354.5dbe5f43.akpm@linux-foundation.org>

On Fri, May 25, 2007 at 09:33:54AM -0700, Andrew Morton wrote:
> On Fri, 25 May 2007 14:34:56 +0200 Ingo Molnar <mingo@elte.hu> wrote:
> 
> > * Chris Newport <crn@netunix.com> wrote:
> > 
> > > There is a fundamental problem in getting a decent log to debug a 
> > > crashed kernel.  Maybe we should take a hint from Solaris. If the 
> > > kernel crashes Solaris dumps core to swap and sets a flag. At the next 
> > > boot this image is copied to /var/adm/crashdump where it is preserved 
> > > for future debugging. Obviously swap needs to be larger than core, but 
> > > this is usually the case.
> > 
> > we've got kdump, but it's not usually enabled by default by distros.
> 
> Isn't that awful?
> 

I think kdump should be enabled by default. Or at least user should be
given an option to enable/configure this service at installation time.

Things are still good atleast in RHEL5. It gives user a option to
enable/disable kdump at firstboot after installation. A fall side of
doing it at firstboot time is that a user has to go for an extra reboot
if he chooses to enable kdump (Because of kernel command line crashkernel=).
An improvemnt could be that these options should be given at installation
time so that a user does not have to go through an extra reboot to enable
kdump service. 

It also has got graphical scripts to configure kdump serivce and enable it.
Other distributions are catching up but there seems to be a reluctance
to enable kdump by default primarily because of a chunk of memory being
reserved for kdump kernel which can not be used by regular kernel.

As of today RHEL reserves 128MB of memory for x86/x86_64 arch if kdump
is enabled. Some people are also reluctant to change the installer to
include a screen which can help user enable/disable/configure kdump. They
think it increases installer complexity and user is likely to get confused.

> By now we should be in the situation where if a tester is hitting a
> kernel crash we can say to them "please turn on crashdumps and send me
> the image".  But we're not - kernel developers don't know how to turn the
> thing on in $RANDOM_DISTRO, testers have no experience with the feature
> and kernel developers don't have experience handling the crash images.
> 
> And I'm not sure that the (required) "don't dump user memory and pagecache"
> feature has been implemented yet?
> 

Yes. It has been implemented and integrated with RHEL5. Not sure about others.
NEC developers have developed a user space filtering utility which can filter
out pagecache, user memory and zero pages.

http://sourceforge.net/projects/makedumpfile

In RHEL5, one can pre-configure filtering options and a filtered crash
dump will automatically be saved to user configured destination.
 
Thanks
Vivek


  parent reply	other threads:[~2007-05-28  3:47 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <46558708.2040803@googlemail.com>
2007-05-24 14:04 ` [2/3] 2.6.22-rc2: known regressions v2 Michal Piotrowski
2007-05-24 14:18   ` [linux-pm] " Alan Stern
2007-05-24 17:01   ` Christoph Lameter
2007-05-24 17:12     ` Linus Torvalds
2007-05-24 17:18       ` Christoph Lameter
2007-05-24 18:49       ` Andrew Morton
2007-05-24 19:21         ` Linus Torvalds
2007-05-24 21:02           ` Jeff Garzik
2007-05-24 19:37       ` Ingo Molnar
2007-05-24 19:50         ` Linus Torvalds
2007-05-24 20:02           ` David Woodhouse
2007-05-25 10:11           ` Ingo Molnar
2007-05-25 10:18             ` Stefan Richter
2007-05-25 16:21               ` Linus Torvalds
2007-05-25 11:53             ` Chris Newport
2007-05-25 12:34               ` Ingo Molnar
2007-05-25 16:33                 ` Andrew Morton
2007-05-25 16:45                   ` Christoph Lameter
2007-05-28  3:46                   ` Vivek Goyal [this message]
2007-05-25 12:40               ` Stefan Richter
2007-05-25 16:45               ` Linus Torvalds
2007-05-25 17:03                 ` Alan Cox
2007-05-25 17:19                   ` Linus Torvalds
2007-05-25 17:37                     ` Andrew Morton
2007-05-25 17:48                       ` Alan Cox
2007-05-25 17:50                       ` Linus Torvalds
2007-05-28  4:27                         ` Vivek Goyal
2007-05-25 17:07                 ` Chuck Ebbert
2007-05-25 17:21                   ` Linus Torvalds
2007-05-25 18:03                 ` Chris Newport
2007-05-25 20:36                   ` David Miller
2007-05-26 13:16                   ` [linux-pm] " Matt Sealey
2007-06-03  6:47   ` Stefan Richter
2007-05-24 14:04 ` [3/3] " Michal Piotrowski
2007-05-24 22:04   ` Greg KH

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=20070528034640.GA6367@in.ibm.com \
    --to=vgoyal@in.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=alan@redhat.com \
    --cc=arvidjaar@mail.ru \
    --cc=cherwin@gmail.com \
    --cc=clameter@sgi.com \
    --cc=crn@netunix.com \
    --cc=davem@davemloft.net \
    --cc=gregkh@suse.de \
    --cc=htejun@gmail.com \
    --cc=krh@bitplanet.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pcmcia@lists.infradead.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=marcus@better.se \
    --cc=michal.k.k.piotrowski@gmail.com \
    --cc=mikpe@it.uu.se \
    --cc=mingo@elte.hu \
    --cc=oomichi@mxs.nes.nec.co.jp \
    --cc=pavel@ucw.cz \
    --cc=rjw@sisk.pl \
    --cc=robert.de.rooy@gmail.com \
    --cc=sparclinux@vger.kernel.org \
    --cc=stefanr@s5r6.in-berlin.de \
    --cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox