From: "\"Zhou, Wenjian/周文剑\"" <zhouwj-fnst@cn.fujitsu.com>
To: Baoquan He <bhe@redhat.com>
Cc: kexec@lists.infradead.org
Subject: Re: [PATCH V5 4/5] Add module of calculating start_pfn and end_pfn in each dumpfile
Date: Mon, 24 Nov 2014 15:28:29 +0800 [thread overview]
Message-ID: <5472DE1D.3090608@cn.fujitsu.com> (raw)
In-Reply-To: <20141124071856.GB3015@dhcp-16-105.nay.redhat.com>
On 11/24/2014 03:18 PM, Baoquan He wrote:
> On 11/06/14 at 04:49pm, Zhou Wenjian wrote:
>
>> +#define CURRENT_SPLITBLOCK_PFN_NUM (*cur_splitblock_num * splitblock->page_per_splitblock)
>> +mdf_pfn_t
>> +calculate_end_pfn_by_splitblock(mdf_pfn_t start_pfn,
>> + int *cur_splitblock_num)
>> +{
>> + if (start_pfn>= info->max_mapnr)
>> + return info->max_mapnr;
>> +
>> + mdf_pfn_t end_pfn;
>> + long long pfn_needed, offset;
>> + char *splitblock_value_offset;
>> +
>> + pfn_needed = info->num_dumpable / info->num_dumpfile;
>> + offset = *cur_splitblock_num * splitblock->entry_size;
>> + splitblock_value_offset = splitblock->table + offset;
>> + end_pfn = start_pfn;
>> +
>> + while (*cur_splitblock_num< splitblock->num&& pfn_needed> 0) {
>> + pfn_needed -= read_from_splitblock_table(splitblock_value_offset);
>> + splitblock_value_offset += splitblock->entry_size;
>> + ++*cur_splitblock_num;
>> + }
>
> Hi Wenjian,
>
> If splitblock->page_per_splitblock is 1G, and the system ram is 4G. Now
> I set 8 dumpfiles to store the splitted vmcore, say dump0...7. Then
> dump0/1/2/3 will store 1G of data, dump4/5/6/7 will be empty. So is it
> OK?
>
> Can we do anything to avoid this case or give some note to let people not
> be panikked by empty dump files?
>
> Thanks
> Baoquan
>
>
Hello Baoquan,
Actually, we have thought about it and talked at
http://lists.infradead.org/pipermail/kexec/2014-November/012880.html .
--
Thanks
Zhou Wenjian
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2014-11-24 7:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 8:49 [PATCH V5 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time Zhou Wenjian
2014-11-06 8:49 ` [PATCH V5 1/5] Add support for splitblock Zhou Wenjian
2014-11-06 8:49 ` [PATCH V5 2/5] Add tools for reading and writing from splitblock table Zhou Wenjian
2014-11-06 8:49 ` [PATCH V5 3/5] Add module of generating table Zhou Wenjian
2014-11-06 8:49 ` [PATCH V5 4/5] Add module of calculating start_pfn and end_pfn in each dumpfile Zhou Wenjian
2014-11-24 7:18 ` Baoquan He
2014-11-24 7:28 ` "Zhou, Wenjian/周文剑" [this message]
2014-11-24 8:07 ` Baoquan He
2014-11-06 8:49 ` [PATCH V5 5/5] Add support for --splitblock-size Zhou Wenjian
2014-11-07 2:00 ` [PATCH V5 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time Atsushi Kumagai
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=5472DE1D.3090608@cn.fujitsu.com \
--to=zhouwj-fnst@cn.fujitsu.com \
--cc=bhe@redhat.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.