Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1426712 > unrolled thread

Proposal for run time memory allocation for crash kernel

Started byRonit halder <ronit.crj@gmail.com>
First post2016-06-20 17:50 +0200
Last post2016-06-20 17:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Proposal for run time memory allocation for crash kernel Ronit halder <ronit.crj@gmail.com> - 2016-06-20 17:50 +0200

#1426712 — Proposal for run time memory allocation for crash kernel

FromRonit halder <ronit.crj@gmail.com>
Date2016-06-20 17:50 +0200
SubjectProposal for run time memory allocation for crash kernel
Message-ID<rM9Cy-1EU-19@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,
Currenty linux kernel allocates memory at the boot time for crash
kernel booted using kexec system call in kernel crash. It will be very
useful if we can allocate memory in run time.
It is possible to allocate memory for crash kernel at the boot time
using CMA (Contiguous Memory Allocator). CMA is capable of allocating
big chunk of memory. At the boot time we will create one (if only low
memory is used) or two (if we use both high and low memory) CMA areas
of size given in "crashkernel" boot time command line parameter. Then
the user can allocate or free memory from those CMA areas using
"/sys/kernel/kexec_crash_size" sysfs entry.

I am attaching a prototype patch with the mail. I have made the patch
against kernel version v4.4.11.
Please give your opinions.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web