public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
From: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
To: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Cc: "kexec@lists.infradead.org" <kexec@lists.infradead.org>,
	"vgoyal@redhat.com" <vgoyal@redhat.com>
Subject: Re: [PATCH 2/2] Write out a whole part of the 1st bitmap before entering cyclic process
Date: Thu, 31 Oct 2013 13:28:01 +0900	[thread overview]
Message-ID: <5271DC51.6040200@jp.fujitsu.com> (raw)
In-Reply-To: <0910DD04CBD6DE4193FCF86B9C00BE971BA5FD@BPXM01GP.gisp.nec.co.jp>

(2013/10/30 19:52), Atsushi Kumagai wrote:
> (2013/10/24 15:52), HATAYAMA Daisuke wrote:
>> Currently, 1st bitmap is created during cyclic process, but the
>> information represented by the 1st bitmap, originally present memory,
>> is still available from ELF program header table, so we don't need to
>> keep the 1st bitmap even in cyclic process.
>>
>> Supported is a conversion from ELF to kdump-compressed format only,
>> not from ELF to ELF.
>>
>> Signed-off-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
>> ---
>>    makedumpfile.c |  224 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
>>    1 file changed, 202 insertions(+), 22 deletions(-)
>>
>> diff --git a/makedumpfile.c b/makedumpfile.c
>> index 4b6c0ed..7440c97 100644
>> --- a/makedumpfile.c
>> +++ b/makedumpfile.c
>> @@ -3055,7 +3055,8 @@ out:
>>    				 * bufsize_cyclic is used to allocate 1st and 2nd bitmap,
>>    				 * so it should be truncated to the half of free_memory.
>>    				 */
>> -				info->bufsize_cyclic = free_memory / 2;
>> +				if (info->flag_elf_dumpfile)
>> +					info->bufsize_cyclic = free_memory / 2;
>>    			}
>>    		}
> 
> I think here should be changed like below:
> 
> 		if (info->flag_elf_dumpfile)
> 			info->bufsize_cyclic = free_memory / 2;
> 		else
> 			info->bufsize_cyclic = free_memory;
> 

Thanks. I'll fix this.

-- 
Thanks.
HATAYAMA, Daisuke


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

      reply	other threads:[~2013-10-31  4:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-24  6:51 [PATCH 0/2] makedumpfile: write out a whole part of the 1st bitmap before entering cyclic process HATAYAMA Daisuke
2013-10-24  6:52 ` [PATCH 1/2] Use memset() to improve the 1st bitmap initialization performance HATAYAMA Daisuke
2013-10-24  6:52 ` [PATCH 2/2] Write out a whole part of the 1st bitmap before entering cyclic process HATAYAMA Daisuke
2013-10-30 10:52   ` Atsushi Kumagai
2013-10-31  4:28     ` HATAYAMA Daisuke [this message]

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=5271DC51.6040200@jp.fujitsu.com \
    --to=d.hatayama@jp.fujitsu.com \
    --cc=kexec@lists.infradead.org \
    --cc=kumagai-atsushi@mxc.nes.nec.co.jp \
    --cc=vgoyal@redhat.com \
    /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