linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Issue with Kexec memory allocation
@ 2020-01-06  7:13 Uday R
  2020-01-13 12:05 ` Uday R
  0 siblings, 1 reply; 2+ messages in thread
From: Uday R @ 2020-01-06  7:13 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Issue with Kexec memory allocation
  2020-01-06  7:13 Issue with Kexec memory allocation Uday R
@ 2020-01-13 12:05 ` Uday R
  0 siblings, 0 replies; 2+ messages in thread
From: Uday R @ 2020-01-13 12:05 UTC (permalink / raw)
  To: linux-kernel

Any help ?

Thanks,
RK

On Mon, Jan 6, 2020 at 12:43 PM Uday R <opensource.linuz@gmail.com> wrote:
>
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-13 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06  7:13 Issue with Kexec memory allocation Uday R
2020-01-13 12:05 ` Uday R

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).