[S] Memory Problems

MICHAEL BENJAMIN (EMBENJAM@eg-sdevsrv2.unl.ac.uk)
Thu, 02 Jul 1998 20:21:00 +0000 (GMT)


Hello S-Plus users

I am experiencing problems when I attempt to carry out large
simulations which involve some loops and recursions (which cannot be
avoided) using S-Plus and am wondering if any S-Plus users can offer
any advice.

The simulations consist of generating data using a function, which
I have programmed as efficiently as possible using advice given in the
programmers manual (chapters 12 & 13). The problem is that after
after a period of time I get the error message 'unable to get the requested
dynamic memory'. On tracing the memory build up using the function
memory.size() within the function, the computer appears to slow down
significantly after memory.size has increased to approximately 15.5MB
giving the error message above when memory.size has increased to
approximately 25MB.

I am using S-Plus v3.3 on a 16MB PC running under windows 95.

I would appreciate advice on the following questions:

(1) Is the 'slow-down' that I experience likely to be avoided if I
increase my RAM memory to say 48MB or 80MB?

(2) Do I get the message 'unable to ... memory' when the memory being
used (25MB in the example above) exceeds the total memory available
to S-Plus, which I understand to be the sum of the main memory (RAM) and
swap space?

Could this dynamic memory be increased by increasing the 'swap space'
as or is it done using the command options$memory which by default
has a value 2.15GB.

Thanks in advance for your help

Michael
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news