From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWtsR-0002M8-Ay for kexec@lists.infradead.org; Mon, 29 Apr 2013 19:36:44 +0000 Date: Mon, 29 Apr 2013 15:36:12 -0400 From: Vivek Goyal Subject: Re: [PATCH v4 5/8] vmcore: copy ELF note segments in the 2nd kernel per page vmcore objects Message-ID: <20130429193611.GQ8204@redhat.com> References: <20130413002000.18245.21513.stgit@localhost6.localdomain6> <20130413002133.18245.91528.stgit@localhost6.localdomain6> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130413002133.18245.91528.stgit@localhost6.localdomain6> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: HATAYAMA Daisuke Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, lisa.mitchell@hp.com, kumagai-atsushi@mxc.nes.nec.co.jp, ebiederm@xmission.com, zhangyanfei@cn.fujitsu.com, akpm@linux-foundation.org, cpw@sgi.com, jingbai.ma@hp.com On Sat, Apr 13, 2013 at 09:21:33AM +0900, HATAYAMA Daisuke wrote: [..] > ELF notes are per-cpu, so total size of ELF note segments increases > according to the number of CPUs. The current maximum number of CPUs on > x86_64 is 5192, and there's already system with 4192 CPUs in SGI, > where total size amounts to 1MB. This can be larger in the neare > futrue or possibly even now on another architecture. Thus, to avoid > the case where memory allocation for large block fails, we allocate > vmcore objects per pages. IIRC, eric had suggested using vmalloc() and remap_vmalloc_range(). What's wrong with that? That should keep your vc_list relatively smaller. Thanks Vivek _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec