kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: riel@surriel.com (Rik van Riel)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64
Date: Thu, 10 Jul 2014 02:08:04 -0400	[thread overview]
Message-ID: <53BE2DC4.6060400@surriel.com> (raw)
In-Reply-To: <cf7ec73279569219e34038691fa0b8f1@amit-agarwal.co.in>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/09/2014 08:23 AM, Amit Agarwal wrote:
> Hi All,
> 
> We are running a 32 bit application on RHEL6.3-64 bit OS with
> kernel version 2.6.32-279.el6.x86_64.
> 
> While running this application we see the following when running
> under strace: mmap(offset=33230848, len=2068480) failed with
> errno=12 for the file <so file name>
> 
> The system has enough RAM, total 16GB and about 12 GB free.

The system may have enough memory, but your 32 bit application
is limited to slightly less than 4GB of virtual memory.

Errno 12 corresponds to -ENOMEM. The process running out of its
slightly-less-than-4GB of memory corresponds nicely with your
system still having 12GB of free memory.

This suggests you have run out of virtual memory space in the
process.

If your program needs more than 4GB of memory, eg. because you have
a large data set, you need to use a 64 bit version of the program.

This is not a kernel problem.

- -- 
All rights reversed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTvi3EAAoJEM553pKExN6D1/QIAJ26mjn0UHz6MK1CPGywlvaZ
JuE+2JvHrImHALnQ8jxQOutNLWp9IPzB/zByoyMkqUiJkrQ15aj60pyzZ9PvzuQo
CX1ve3xMY/sf/617mRqRvbfCAbB3UArlXG4tU8OmzBdH4Qy/V6jFLY69hmFUqiXk
hMIkG7NhuptYSwPmHV7vw4qTFDVUhh/p+etPYDeuAtDcFlScZ8CjdX2pzwR8TxPr
M16UAOuhw2ONkZCO25XuM9AteKeLC85uV63gTgcm4h+W3Hqyeyebfsu7FmPkLq7v
JavXFNL9gCMeVxgvjU6A7o+NjT8HNgkh/IPdE2LrqFysE6SeU77T61AcJEMJulM=
=fmS4
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2014-07-10  6:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09 12:23 Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64 Amit Agarwal
2014-07-10  5:03 ` Greg KH
2014-07-11  4:38   ` Amit Agarwal
2014-07-10  5:42 ` shhuiw
2014-07-11  8:01   ` Amit Agarwal
2014-07-14  6:50     ` shhuiw
2014-07-14  7:04       ` Amit Agarwal
2014-07-14  9:40         ` shhuiw
2014-07-14 12:16           ` Amit Agarwal
2014-07-10  6:08 ` Rik van Riel [this message]
2014-07-10  7:06   ` shhuiw
2014-07-11  4:52     ` Amit Agarwal
2014-07-11  5:42       ` shhuiw
2014-07-11  5:46         ` Amit Agarwal
2014-07-11  6:59           ` Dave Tian
2014-07-11 12:02             ` Amit Agarwal
2014-07-11  4:50   ` Amit Agarwal

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=53BE2DC4.6060400@surriel.com \
    --to=riel@surriel.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).