From: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
To: Cliff Wickman <cpw@sgi.com>
Cc: "kexec@lists.infradead.org" <kexec@lists.infradead.org>,
Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Subject: Re: /proc/vmcore kernel patches
Date: Tue, 23 Apr 2013 09:38:57 +0900 [thread overview]
Message-ID: <5175D821.3060106@jp.fujitsu.com> (raw)
In-Reply-To: <20130422175504.GA26312@sgi.com>
(2013/04/23 2:55), Cliff Wickman wrote:
> Hello Mr. Atayama and Mr. Kumagai,
>
> I have been playing with the v4 patches
> kdump, vmcore: support mmap() on /proc/vmcore
> and find the mmap interface to /proc/vmcore potentially about 80x faster than
> the read interface.
>
> But in practice (using a makedumpfile that mmap's instead of read's) I find
> it about 10x slower.
>
> It looks like makedumpfile's usage of the interface is very inefficient.
> It will mmap an area, read a page, then back up the offset to a previous
> page. It has to munmap and mmap on virtually every read.
You can change size of mapping memory through command-line option
--map-size <some KB>.
The version of makedumpfile is experimental. The design should be
changed if it turns out to be problematic.
>
> Do you have a re-worked makedumpfile that predicts a large range of
> pages and mmap's the whole range just once?
> It seems that makedumpfile should have the information available to do
> that.
>
The benchmark result has already shown that under large enough map size,
the current implementation performs as well as other kernel-space
implementation that maps a whole range of memory.
In addition, the current implementation of remap_pfn_range uses 4KB
pages only. This means that total size of PTEs amounts to 2GB per 1TB.
It's better to map pages little by little for small memory programming.
--
Thanks.
HATAYAMA, Daisuke
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next parent reply other threads:[~2013-04-23 0:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1UQGbu-0000on-Qi@eag09.americas.sgi.com>
[not found] ` <20130412101056.a7371f1297e3057125c44521@mxc.nes.nec.co.jp>
[not found] ` <20130422175504.GA26312@sgi.com>
2013-04-23 0:38 ` HATAYAMA Daisuke [this message]
2013-04-23 11:45 ` /proc/vmcore kernel patches Cliff Wickman
2013-04-24 0:17 ` HATAYAMA Daisuke
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=5175D821.3060106@jp.fujitsu.com \
--to=d.hatayama@jp.fujitsu.com \
--cc=cpw@sgi.com \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
/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.