HELP! MIDI-player demo sounds like *@#%!

Andrew P. Black black at cse.ogi.edu
Sun Apr 22 07:11:34 UTC 2001


Hi John,

You ask:

>Andrew check the memory size you are giving to Squeak. If your image 
>runs close to the VM size, then you'll end up doing too many 
>incremental GC, or full GC. You can pull those numbers back from the 
>VM BTW. If the image is doing too many IGC or Full GC then it can't 
>build buffers for the sound system.
>
>Let us know your image size, and how much free space you have.

I have 19.8 MB allocated to Squeak.  I get
Smalltalk bytesLeftString ==> '5,832,912 bytes available'  This is 
under MacOS 9.0.4.  In my previous message, when I said that "There 
is plenty of memory (> 8 MB in Squeak)", I was referring to the 
bytesLeft number, which is of course after a GC.  With both OSs, I 
have Virtual Memory turned on, but set at 193MB on a machine with 
192MB of real memory.  In both cases, there is more than 90MMB of 
unallocated memory, so there should not be any paging.

What did you mean when you said "You can pull those numbers back from 
the VM BTW."

I had assumed that the memory behaviour would be OS version 
independent.  I put a Transcript show ... in 
SystemDictionary>>garbageCollect, and get an appropriate printout 
when I use up memory explicitly, but not while the ScorePlayer is 
playing.  So, I doubt if the problem is GCs interrupting things.  It 
seems more like Squeak just not getting the processor...

	Andrew





More information about the Squeak-dev mailing list