public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: sonatabar bar <sonatabar@yahoo.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Maximum Allocatable Dynamic Memory
Date: Thu, 22 Jun 2006 18:35:00 -0000	[thread overview]
Message-ID: <m364itninu.fsf@localhost.localdomain> (raw)
In-Reply-To: <20060622142626.85577.qmail@web36203.mail.mud.yahoo.com>

sonatabar bar <sonatabar@yahoo.com> writes:

> I am trying to test what is the maximum allocatable
> dynamic memory on a give machine. For my surprise I
> see wonders happening, and I don't have an
> explaination to it. I understand a bit that, it
> doesn't have to do with compilers entirely, and hece
> seeking explaination. 
>  
> this test fails allocating memory for index 68561
> which means => allocated memory is (68561000000*8)
> bytes =>X
> => X/1024/1024/1024 = 510.82 Gig ???
>  
> May be I am missing something, tried running it on a 2
> & 4 Gig phyiscal memory machines, with a swap space of
> 8Gig.

Wrong mailing list.  This is not a gcc question.  It is a kernel or a
library question.

I believe the answer is that the kernel permits you to allocate as
many pages as you like, but when you actually try to use them and it
looks for a place to put them, it will fail.  I am not an expert,
though.

Ian

      reply	other threads:[~2006-06-22 18:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 14:26 sonatabar bar
2006-06-22 18:35 ` Ian Lance Taylor [this message]

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=m364itninu.fsf@localhost.localdomain \
    --to=iant@google.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=sonatabar@yahoo.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).