Mine is bigger. WooHoo!

510 STR1 SIZE = 510000000
511 STR1 SIZE = 511000000
Available Memory Exceeded
Abort(coredump)

Sorry, it's early on a Monday.

-[d]-

-----Original Message-----
From: Marco Manyevere [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 3:44 AM
To: [EMAIL PROTECTED]
Subject: [U2] [UV] How far can STR1 := SPACE(1000000) grow?


Please try the following on your server and find out how far you can go
before malloc fails.

On my Unixware server with 8Gb RAM, I can only go as far as 24 to 30 MB
before the process fails with 'Available memory exceeded'.  Running 'sar -r'
at the Unix prompt shows me over 3 Gig of RAM is still free. Are there any
parameters I can change to increase the limit?

On my XP latop with 512MB RAM, I can run the program upto 250MB then it
begins to really crawl, taking upto 15 seconds to go through the loop.

BLOCK = SPACE(1000000)
STR1 = ''
FOR I = 1 TO 1000000
   STR1 := BLOCK
   PRINT I:' STR1 SIZE = ':1000000*I
NEXT

RETURN
END





                
---------------------------------
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to