[Vm-dev] Re: New Cog VMs available

Paul DeBruicker pdebruic at gmail.com
Thu Jun 26 05:01:12 UTC 2014


Hi Eliot

On Windows 7 Ultimate 32bit, on a laptop with 3GB RAM, tested in normal &
Safe Mode your test  maxed out around 1870MB using the Cog Spur v3018.


Hope this helps

Paul

here is the data from one of the runs:
62.2
78.2
94.2
110.2
126.2
142.2
158.2
174.2
190.2
206.2
222.2
238.2
254.2
270.2
286.2
302.2
318.2
334.2
350.2
366.2
382.2
398.2
414.2
430.2
446.2
462.2
478.2
494.2
510.2
526.2
542.2
558.2
574.2
590.2
606.2
622.2
638.2
654.2
670.2
686.2
702.2
718.2
734.2
750.2
766.2
782.2
798.2
814.2
830.2
846.2
862.2
878.2
894.2
910.2
926.2
942.2
958.2
974.2
990.2
1006.2
1022.2
1038.2
1054.2
1070.2
1086.2
1102.2
1118.2
1134.2
1150.2
1166.2
1182.2
1198.2
1214.2
1230.2
1246.2
1262.2
1278.2
1294.2
1310.2
1326.2
1342.2
1358.2
1374.2
1390.2
1406.2
1422.2
1438.2
1454.2
1470.2
1486.2
1502.2
1518.2
1534.2
1550.2
1566.2
1582.2
1598.2
1614.2
1630.2
1646.2
1662.2
1678.2
1694.2
1710.2
1726.2
1742.2
1758.2
1774.2
1790.2
1806.2
1822.2
1838.2
1854.2
1870.2
1886.2
974.2
62.2











Eliot Miranda-2 wrote
> ... at http://www.mirandabanda.org/files/Cog/VM/VM.r3018/.
> 
> The main difference here is fixes to memory segment allocation on Spur.
>  Linux and Mac OS can now grow the heap to 2.9Gb or there abouts, and Win
> XP can grow to 1.8Gb.  I'm interested in reports on other Windows versions
> that don't have XP's 2Gb user process address space limit.
> 
> Here's my test script:
> | them |
> them := OrderedCollection new.
> [[them addLast: (ByteArray new: 16000000).
>  Transcript cr; print: (Smalltalk vmParameterAt: 3) / (1024*1024.0)
> maxDecimalPlaces: 1; flush] repeat]
> on: OutOfMemory
> do: [:ex| 2 to: them size by: 2 do: [:i| them at: i put: nil. Smalltalk
> garbageCollect]].
> Transcript cr; print: (Smalltalk vmParameterAt: 3) / (1024*1024.0)
> maxDecimalPlaces: 1; flush.
> them := nil.
> Smalltalk garbageCollect.
> Transcript cr; print: (Smalltalk vmParameterAt: 3) / (1024*1024.0)
> maxDecimalPlaces: 1; flush
> 
> And the README is:
> CogVM binaries as per VMMaker.oscog-eem.779/r3018.
> 
> Rewrite memory allocation on linux for Spur.  Arrange that the heap can
> grow
> above 2Gb without any large initial alloc.
> 
> Rewrite platforms/unix/vm/sqUnixSpurMemory.c to stand alone.  Use it in
> place
> of sqMacMemory.c with Spur on Mac OS.  Now Spur can grow the heap to 2.9Gb
> on
> both linux (CentOS 5.3) and Mac OS X (10.6.8).
> 
> Rewrite Spur memory allocation on win32 similarly to unix.  Can now
> allocate
> up to 1.8Gb on Windows XP (which has a 2Gb address space limit).  Add a
> flag
> to indicate if the win32 exe is running as a console app and don't write
> to
> the in-window console if so.
> 
> Fix some sign issues with free space tallying to allow Spur to shrink
> memory
> and answer via primitiveVMParameter heap sizes above 2Gb.
> 
> Add longPrintInstancesOf:/longPrintInstancesWithClassIndex: for debugging.
> 
> Suggest reading a suitable README when the linux VM fails to spawn the
> heartbeat
> thread.
> 
> Add parameter 54 on Spur to answer totalFreeOldSpace.
> 
> -- 
> best,
> Eliot





--
View this message in context: http://forum.world.st/New-Cog-VMs-available-tp4764823p4764840.html
Sent from the Squeak VM mailing list archive at Nabble.com.


More information about the Vm-dev mailing list