From: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
To: kexec@lists.infradead.org
Cc: ebiederm@xmission.com, d.hatayama@jp.fujitsu.com,
linux-mm@kvack.org, linux-kernel@vger.kernel.org, cpw@sgi.com,
akpm@linux-foundation.org
Subject: Re: [PATCH v2] Add the values related to buddy system for filtering free pages.
Date: Thu, 27 Dec 2012 17:35:23 +0900 [thread overview]
Message-ID: <20121227173523.5e414c342fed3e59a887fa87@mxc.nes.nec.co.jp> (raw)
In-Reply-To: <87licsrwpg.fsf@xmission.com>
Hello,
On Thu, 20 Dec 2012 18:00:11 -0800
ebiederm@xmission.com (Eric W. Biederman) wrote:
> "Hatayama, Daisuke" <d.hatayama@jp.fujitsu.com> writes:
>
> >> From: kexec-bounces@lists.infradead.org
> >> [mailto:kexec-bounces@lists.infradead.org] On Behalf Of Atsushi Kumagai
> >> Sent: Thursday, December 20, 2012 11:21 AM
> >
> >> On Wed, 19 Dec 2012 16:18:56 -0800
> >> Andrew Morton <akpm@linux-foundation.org> wrote:
> >>
> >> > On Mon, 10 Dec 2012 10:39:13 +0900
> >> > Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp> wrote:
> >> >
> >
> >> >
> >> > We might change the PageBuddy() implementation at any time, and
> >> > makedumpfile will break. Or in this case, become less efficient.
> >> >
> >> > Is there any way in which we can move some of this logic into the
> >> > kernel? In this case, add some kernel code which uses PageBuddy() on
> >> > behalf of makedumpfile, rather than replicating the PageBuddy() logic
> >> > in userspace?
> >>
> >> In last month, Cliff Wickman proposed such idea:
> >>
> >> [PATCH v2] makedumpfile: request the kernel do page scans
> >> http://lists.infradead.org/pipermail/kexec/2012-November/007318.html
> >>
> >> [PATCH] scan page tables for makedumpfile, 3.0.13 kernel
> >> http://lists.infradead.org/pipermail/kexec/2012-November/007319.html
> >>
> >> In his idea, the kernel does page scans to distinguish unnecessary pages
> >> (free pages and others) and returns the list of PFN's which should be
> >> excluded for makedumpfile.
> >> As a result, makedumpfile doesn't need to consider internal kernel
> >> behavior.
> >>
> >> I think it's a good idea from the viewpoint of maintainability and
> >> performance.
>
> > I also think wide part of his code can be reused in this work. But the bad
> > performance is caused by a lot of ioremap, not a lot of copying. See my
> > profiling result I posted some days ago. Two issues, ioremap one and filtering
> > maintainability, should be considered separately. Even on ioremap issue,
> > there is secondary one to consider in memory consumption on the 2nd
> > kernel.
>
> Thanks. I was wondering why moving the code into /proc/vmcore would
> make things faster.
Thanks HATAYAMA-san, I've understood the issues correctly.
We should continue improving the ioremap issue as Cliff and HATAYAMA-san
are doing now.
>
> > Also, I have one question. Can we always think of 1st and 2nd kernels
> > are same?
>
> Not at all. Distros frequently implement it with the same kernel in
> both role but it should be possible to use an old crusty stable kernel
> as the 2nd kernel.
>
> > If I understand correctly, kexec/kdump can use the 2nd kernel different
> > from the 1st's. So, differnet kernels need to do the same thing as makedumpfile
> > does. If assuming two are same, problem is mush simplified.
>
> As a developer it becomes attractive to use a known stable kernel to
> capture the crash dump even as I experiment with a brand new kernel.
To allow to use the 2nd kernel different from the 1st's, I think we have
to take care of each kernel version with the logic included in makedumpfile
for them. That's to say, makedumpfile goes on as before.
Thanks
Atsushi Kumagai
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2012-12-27 8:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20121210103913.020858db777e2f48c59713b6@mxc.nes.nec.co.jp>
2012-12-20 0:18 ` Andrew Morton
2012-12-20 0:57 ` Eric W. Biederman
2012-12-20 1:00 ` Andrew Morton
2012-12-20 1:20 ` Eric W. Biederman
2012-12-20 2:21 ` Atsushi Kumagai
2012-12-20 3:02 ` Hatayama, Daisuke
2012-12-21 2:00 ` Eric W. Biederman
2012-12-27 8:35 ` Atsushi Kumagai [this message]
2013-02-07 12:29 ` Lisa Mitchell
2013-02-08 2:45 ` Atsushi Kumagai
2013-02-08 14:59 ` Mitchell, Lisa (MCLinux in Fort Collins)
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=20121227173523.5e414c342fed3e59a887fa87@mxc.nes.nec.co.jp \
--to=kumagai-atsushi@mxc.nes.nec.co.jp \
--cc=akpm@linux-foundation.org \
--cc=cpw@sgi.com \
--cc=d.hatayama@jp.fujitsu.com \
--cc=ebiederm@xmission.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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