[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Out of memory messages



Mark et al...,

Thanks for all of your suggestions.

I don't think that it is the amount of memory allocated - I run MacPerl at
6 Megs. I checked the amount of memory used - it only looked to be about
1.5 - 2 megs.

I think that the problem is more in line with the amount I am trying to
read in at once. The file is 1.1 meg - I'll try reading a line at a time -
that sounds like it will solve my problem.

Thanks to all again.

>After reading some of the other responses let me input this:
>
>What the other people are saying in a round-about fashion is that you
>are basically running out of memory in your program.  The way to
>increase how much memory your program needs is to click once on the
>MacPerl icon in the MacPerl directory.  Type Command-I (%i) and change
>the Preferred Memory and Maximum Memory allocation from whatever it is
>set at to a higher number.  Thus, if it is set at 8192 change that to
>12000 in both boxes.  This will give Macperl (and thus your program)
>more memory to work with.
>
>I would also suggest that you go to the Finder and click on the Apple.
>Bring up the "About this Macintosh...".  This will show you how much
>memory your progrm is using while it runs.  If the dark colored bar
>fills up the light colored bar - you are using up all of your available
>memory.
>
>So, what do you do if you are filling up all of your available memory?
>you need to not read in all of the information at one time or try to
>hold all of it at one time in memory.  Instead, try working on a record
>by record basis.
>
>And lastly - remember that MacPerl (like any language) requires some
>overhead in order to handle information in memory.  I'm not sure exactly
>how much each variable requires.  But, if like Matthias has said,
>MacPerl keeps the string version, integer, and double precision version
>of the string in memory so it will run faster; then you are probably
>carrying around 16 bytes or so of extra overhead.  (Paul or Chris if you
>know exactly how many bytes are being carried around for each variable
>can you post this information?  Thanks.)  Anyway, these extra bytes will
>fill up memory also as you are loading everything in and should be taken
>into consideration if you are going to be dealing with large amounts of
>information.
>
>later.


Best regards,
Bill McAuliff, webmaster
_______________________________________________
adams  apple                    Web Site Design
communications             Internet Classifieds
group                      womc3@adamsapple.com
http://www.adamsapple.com          407.788.8812
_______________________________________________



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch