linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Uday R <opensource.linuz@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Issue with Kexec memory allocation
Date: Mon, 6 Jan 2020 12:43:20 +0530	[thread overview]
Message-ID: <CAFZWReakYoDcSgEXw-d-SPAzum=fw=uLo7sh8OMqZV6FjP1ymA@mail.gmail.com> (raw)

Hello folks,

I am using kexec to load into the new kernel from the existing kernel.
My vmlinuz image size is 6.6MB, initrd size is 18MB, and the root file
system size is 715MB.  I use kexec command to load the new kernel into
memory. I observed that before calling kexec if the available memory
is less than 1.33GB then kexec lands into an out of memory issue
effectively kexec being killed by OOM-KILLER.  I dont get into out of
memory issue if i have memory >=1.33GB.

My question is why kexec tries to over allocate memory when the
available memory is less than 1.33GB and gets the available memory to
ZERO.
In case if the available memory is >= 1.33GB before calling kexec,
After kexec load, i see the memory consumed by kexec load is
approximately equal to size of "linux+initrd+root file system".

Is there a bug in the 'Kexec' code and had been fixed ?

Note: i am using the kernel from a vendor, Just wanted to know if
there is no such issue in mainstream code.

Thanks in Advance,
Uday

             reply	other threads:[~2020-01-06  7:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-06  7:13 Uday R [this message]
2020-01-13 12:05 ` Issue with Kexec memory allocation Uday R

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='CAFZWReakYoDcSgEXw-d-SPAzum=fw=uLo7sh8OMqZV6FjP1ymA@mail.gmail.com' \
    --to=opensource.linuz@gmail.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).