All of lore.kernel.org
 help / color / mirror / Atom feed
* liblzma: Memory allocation failed on do_package_rpm
@ 2018-01-15  6:20 Manjukumar Harthikote Matha
  2018-01-15 10:19 ` [OE-core] " Alexander Kanavin
  2018-01-16  7:00 ` [meta-xilinx] " Alejandro Enedino Hernandez Samaniego
  0 siblings, 2 replies; 4+ messages in thread
From: Manjukumar Harthikote Matha @ 2018-01-15  6:20 UTC (permalink / raw)
  To: openembedded-core, yocto, meta-xilinx

All,

Has anybody seen this error?

Finished binary package job, result 0, filename (null)
error: create archive failed: cpio: write failed - Cannot allocate memory
error: liblzma: Memory allocation failederror: liblzma: Memory allocation failedFinished binary package job, result 2,

.......

RPM build errors:
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed

This happens in do_package_rpm task on various recipes, coreutils/libgpg/diffutils etc.

The host machine has good amount on memory, 256G to be exact. When I see the error and issue free -h command, I still see ~120G free memory available.
This is a RHEL 7.2 machine and I am running rocko baseline.

Any reason why this would happen? Where should I look to fix this issue?

Thanks,
Manju
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


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

* Re: [OE-core] liblzma: Memory allocation failed on do_package_rpm
  2018-01-15  6:20 liblzma: Memory allocation failed on do_package_rpm Manjukumar Harthikote Matha
@ 2018-01-15 10:19 ` Alexander Kanavin
  2018-01-16  7:00 ` [meta-xilinx] " Alejandro Enedino Hernandez Samaniego
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Kanavin @ 2018-01-15 10:19 UTC (permalink / raw)
  To: Manjukumar Harthikote Matha, yocto, meta-xilinx

On 01/15/2018 08:20 AM, Manjukumar Harthikote Matha wrote:
> All,
> 
> Has anybody seen this error?
> 
> Finished binary package job, result 0, filename (null)
> error: create archive failed: cpio: write failed - Cannot allocate memory
> error: liblzma: Memory allocation failederror: liblzma: Memory allocation failedFinished binary package job, result 2,


Never seen it. You need to find the spot in the source code where the 
error message is being printed, and see what is the failing function, 
and how much memory it's being asked to allocate etc. Essentially, study 
and play with rpm source code. The starting command to do that is:

devtool modify rpm-native


Alex


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

* Re: [meta-xilinx] liblzma: Memory allocation failed on do_package_rpm
  2018-01-15  6:20 liblzma: Memory allocation failed on do_package_rpm Manjukumar Harthikote Matha
  2018-01-15 10:19 ` [OE-core] " Alexander Kanavin
@ 2018-01-16  7:00 ` Alejandro Enedino Hernandez Samaniego
  2018-01-22 22:40   ` Manjukumar Harthikote Matha
  1 sibling, 1 reply; 4+ messages in thread
From: Alejandro Enedino Hernandez Samaniego @ 2018-01-16  7:00 UTC (permalink / raw)
  To: Manjukumar Harthikote Matha, openembedded-core, yocto, meta-xilinx

Hey Manju,

I'd like to see if I can reproduce this, could you please send the the steps you followed?

Thanks!

Alejandro

-----Original Message-----
From: meta-xilinx-bounces@yoctoproject.org [mailto:meta-xilinx-bounces@yoctoproject.org] On Behalf Of Manjukumar Harthikote Matha
Sent: Sunday, January 14, 2018 10:20 PM
To: openembedded-core@lists.openembedded.org; yocto@yoctoproject.org; meta-xilinx@yoctoproject.org
Subject: [meta-xilinx] liblzma: Memory allocation failed on do_package_rpm

All,

Has anybody seen this error?

Finished binary package job, result 0, filename (null)
error: create archive failed: cpio: write failed - Cannot allocate memory
error: liblzma: Memory allocation failederror: liblzma: Memory allocation failedFinished binary package job, result 2,

.......

RPM build errors:
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     Deprecated external dependency generator is used!
|     liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory allocation failed

This happens in do_package_rpm task on various recipes, coreutils/libgpg/diffutils etc.

The host machine has good amount on memory, 256G to be exact. When I see the error and issue free -h command, I still see ~120G free memory available.
This is a RHEL 7.2 machine and I am running rocko baseline.

Any reason why this would happen? Where should I look to fix this issue?

Thanks,
Manju
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
-- 
_______________________________________________
meta-xilinx mailing list
meta-xilinx@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-xilinx


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

* Re: [meta-xilinx] liblzma: Memory allocation failed on do_package_rpm
  2018-01-16  7:00 ` [meta-xilinx] " Alejandro Enedino Hernandez Samaniego
@ 2018-01-22 22:40   ` Manjukumar Harthikote Matha
  0 siblings, 0 replies; 4+ messages in thread
From: Manjukumar Harthikote Matha @ 2018-01-22 22:40 UTC (permalink / raw)
  To: Alejandro Enedino Hernandez Samaniego, openembedded-core, yocto,
	meta-xilinx

Hi All,

> -----Original Message-----
> From: Alejandro Enedino Hernandez Samaniego
> Sent: Monday, January 15, 2018 11:00 PM
> To: Manjukumar Harthikote Matha <MANJUKUM@xilinx.com>; openembedded-
> core@lists.openembedded.org; yocto@yoctoproject.org; meta-
> xilinx@yoctoproject.org
> Subject: RE: [meta-xilinx] liblzma: Memory allocation failed on do_package_rpm
> 
> Hey Manju,
> 
> I'd like to see if I can reproduce this, could you please send the the steps you
> followed?
> 
> Thanks!
> 
> Alejandro
> 
> -----Original Message-----
> From: meta-xilinx-bounces@yoctoproject.org [mailto:meta-xilinx-
> bounces@yoctoproject.org] On Behalf Of Manjukumar Harthikote Matha
> Sent: Sunday, January 14, 2018 10:20 PM
> To: openembedded-core@lists.openembedded.org; yocto@yoctoproject.org;
> meta-xilinx@yoctoproject.org
> Subject: [meta-xilinx] liblzma: Memory allocation failed on do_package_rpm
> 
> All,
> 
> Has anybody seen this error?
> 
> Finished binary package job, result 0, filename (null)
> error: create archive failed: cpio: write failed - Cannot allocate memory
> error: liblzma: Memory allocation failederror: liblzma: Memory allocation
> failedFinished binary package job, result 2,
> 
> .......
> 
> RPM build errors:
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     Deprecated external dependency generator is used!
> |     liblzma: Memory allocation failed    liblzma: Memory allocation failed    liblzma:
> Memory allocation failed    liblzma: Memory allocation failed    liblzma: Memory
> allocation failed    liblzma: Memory allocation failed
> 
> This happens in do_package_rpm task on various recipes, coreutils/libgpg/diffutils
> etc.
> 
> The host machine has good amount on memory, 256G to be exact. When I see the
> error and issue free -h command, I still see ~120G free memory available.
> This is a RHEL 7.2 machine and I am running rocko baseline.
> 
> Any reason why this would happen? Where should I look to fix this issue?
> 


This seems to happen if your server configuration has (not a standard configuration)
vm.overcommit_memory = 2
vm.overcommit_ratio = 90

And probably this as well
kernel.unknown_nmi_panic = 1

Thanks,
Manju


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

end of thread, other threads:[~2018-01-22 22:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-15  6:20 liblzma: Memory allocation failed on do_package_rpm Manjukumar Harthikote Matha
2018-01-15 10:19 ` [OE-core] " Alexander Kanavin
2018-01-16  7:00 ` [meta-xilinx] " Alejandro Enedino Hernandez Samaniego
2018-01-22 22:40   ` Manjukumar Harthikote Matha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.