Re: [PATCH v4 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: xlpang@xxxxxxxxxx
- Subject: Re: [PATCH v4 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section
- From: Dave Young <dyoung@xxxxxxxxxx>
- Date: Thu, 27 Apr 2017 11:06:07 +0800
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dyoung@xxxxxxxxxx
- Cc: Juergen Gross <jgross@xxxxxxxx>, linux-s390@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, Baoquan He <bhe@xxxxxxxxxx>, kexec@xxxxxxxxxxxxxxxxxxx, Petr Tesarik <ptesarik@xxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Eric Biederman <ebiederm@xxxxxxxxxxxx>, Hari Bathini <hbathini@xxxxxxxxxxxxxxxxxx>, akpm@xxxxxxxxxxxxxxxxxxxx, Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx>
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7648085542
- In-reply-to: <59007405.6070107@redhat.com>
- References: <1492688374-27903-1-git-send-email-xlpang@redhat.com> <20170426071916.GD5381@dhcp-128-65.nay.redhat.com> <59006DAB.8030908@redhat.com> <59007405.6070107@redhat.com>
- User-agent: Mutt/1.7.1 (2016-10-04)
[snip]
> >>>
> >>> static int __init crash_save_vmcoreinfo_init(void)
> >>> {
> >>> + /* One page should be enough for VMCOREINFO_BYTES under all archs */
> >> Can we add a comment in the VMCOREINFO_BYTES header file about the one
> >> page assumption?
> >>
> >> Or just define the VMCOREINFO_BYTES as PAGE_SIZE instead of 4096
> > Yes, I considered this before, but VMCOREINFO_BYTES is also used by VMCOREINFO_NOTE_SIZE
> > definition which is exported to sysfs, also some platform has larger page size(64KB), so
> > I didn't touch this 4096 value.
> >
> > I think I should use kmalloc() to allocate both of them, then move this comment to Patch3
> > kimage_crash_copy_vmcoreinfo().
>
> But on the other hand, using a separate page for them seems safer compared with
> using frequently-used slab, what's your opinion?
I feel current page based way is better.
For 64k page the vmcore note size will increase it seems fine. Do you
have concern in mind?
Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]