Welcome, Guest. Please login or register.

Author Topic: Free Memory  (Read 2149 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Ilwrath

Re: Free Memory
« on: March 29, 2009, 01:01:36 PM »
Quote
AmigaOS is a multitasking system, the amount of memory taken by the system/apps varies greatly over time. There is no way to predict the amount of free memory at any given time.


Yep...  And to continue on what Piru is saying, the Amiga doesn't use a fixed memory map like the C64, either.  From bootup to bootup, programs (even ones called from s:startup-sequence) can end up located in different base addresses of RAM, and cause different memory fragmentation to occur.  All based on the lucky spin of the program counter that boot.

So, even though you may boot the machine the exact same way 10 times in a row, you won't obtain 10 cycle-identical bootups.  Hence, you'll have variations in free RAM.  (And, also, keep in mind that the screen itself is buffered in RAM, so when you click to check the memory available you may also be unwittingly introducing a variable to the memory available reading.   :lol: )
 

Offline Ilwrath

Re: Free Memory
« Reply #1 on: March 29, 2009, 01:37:30 PM »
Quote
where can i discover more?

I think you've found the right place.  :-)

Quote
is there a way for me to mess with the boot?


s:startup-sequence is a text batch file that the AmigaDOS ROM hands off to after it completes.  You get an idea what the Amiga is doing on start after looking this over.  (Make a backup disk before editing this, of course.  ;-)  )

In AmigaDOS 1.3 and lower, l:system-configuration stores the screenmode that the Amiga comes up in.  For 2.0 and higher, it controls screenmode only if s:startup-sequence is missing or if the Amiga was booted with a "No Startup Sequence" option.  This file is binary though, and is created by the "Prefs" tool in 1.3.

Quote
i want to see this stuff in action

There's some tools like Sysinfo (which also benchmarks, but gives lots of great version and memory details) and SnoopDOS (lets you know what programs are trying to do while loading) that can give a little more clue what's going on under-the-hood, without being too prohibitively difficult...  I forget what program I used to use that would show the base address of literally every task running, and allow you to kill things and mess around, but that was cool, too...  Easy way to guru the system, but hey, that's half the fun, too, right?   :lol: