-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Sunday, May 26, 2013 10:49 AM
To: Programming forum
Subject: Re: [Jprogramming] Fwd: Do "Out of memory" errors vary by J
implementation?

The OS must indeed supply the memory used by J and it's up to the OS to
decide whether it can do so or not. Memory fragmentation can be an issue -
rebooting might help the OS here, in some cases. Another issue is virtual
memory (swapping to disk, and how that has been implemented).

That said, note also that 64 bit J uses twice the memory of 32 bit J, for
storing fixed width integers (this has some subtleties but I imagine those
can be ignored here).

--
Raul



On Sun, May 26, 2013 at 10:26 AM, Jeremy Smith
<[email protected]> wrote:
> Hi everyone,
>
> I was trying to take 9 boxes and multiply them all together, storing the
> output in a single box.  The first of the 9 boxes contains 12 numbers, the
> second contains 11, and so on, so that the output of this calculation will
> be a single box with 12*11*10*9*8*7*6*5*4=79,833,600 numbers.
>
> When I do this on Jgtk701 for Mac, the operation completes successfully
and
> requires about 10 seconds.  On my windows machine I receive an "Out of
> Memory" error.  I'm using exactly the same series of commands.
>
> Do these errors vary by machine, or operating system?  My windows laptop
> has 8GB of RAM compared to my Mac's puny 4GB.
>
> Thanks,
> Jeremy
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to