Re: Memory problems

• To: mathgroup at smc.vnet.net
• Subject: [mg33783] Re: Memory problems
• Date: Tue, 16 Apr 2002 03:50:35 -0400 (EDT)
• References: <a93b7u\$pie\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```The difficulty is that you are asking for a list of 100 Million
entries to be stored into memory.  The following shows the memory
needed for evaluations up to 10^7

In[1]:=
Table[
ByteCount[Table[ Random[Integer],{10^n}]],{n,0,7}]

Out[1]=
{40,216,2024,4056,40056,400056,4000056,40000056}

For 10^7 we need approximately 40 MB.  10^8 would need about 400 MB.
Considering that the operating system uses some fraction of memory,
you simply do not have 400 MB free.

I am wondering what you are trying to do.  Perhaps you can accomplish
what you want in more of a step by step method.  Without details I
simply can't make any useful suggestions.

poonam_pandey at hotmail.com (poonam) wrote in message news:<a93b7u\$pie\$1 at smc.vnet.net>...
> Hi,
>
>
> I am trying to do the equation below and I get a message which says
> not enough memory and kernel will shut down. I am doing this on a
> 360MHz Unix machine with 384MB RAM as well on 256MB PC.
>
> Info = Table[Random[Integer],{10^8}]
>
> It works fine upto 10^7 beyond which it says not enough memory. This
> is just the first step in my package. I have a lot of further
> computations to do on this list. Is there a way to solve this problem?
>
>
> Thanks.
>
> Poonam

```

• Prev by Date: Trouble calculating a volume
• Next by Date: Re: Subscript[x, y] and the Symbol x
• Previous by thread: Re: Memory problems
• Next by thread: Subscript[x, y] and the Symbol x