Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: prowler on June 03, 2003, 02:47:09 AM

Title: Choosing the type of memory to load stuff into.
Post by: prowler on June 03, 2003, 02:47:09 AM
I was wondering if there is a way to choose the type of memory to load stuff into.

My A3000 has 16Meg on the motherboard (pri of 30), 2Meg chip (pri of -10) and another 8 megs sitting on a GVP card (pri of 0). So everything goes into the 16 megs of  fastmem first etc.

While this is all well and good for general operation I would like to say load the WB backdrop etc into say the GVP memory or maybe even into virtual memory (I have been playing around with VMM for the last few hours  :-) ) to try and save the good stuff for applications etc.

Does anyone know if this is possible or if there is a programme out there that will interupt allocmem() calls for selected apps and allocate memory in a certain memory range so you can preserve the good stuff for when it is needed ?
Title: Re: Choosing the type of memory to load stuff into.
Post by: xeron on June 03, 2003, 09:27:56 AM
It would be a bit of a hack, but it shouldn't be too hard to write a program to modify exec's memory list and change the priorities. In fact, one of the system monitors (like scout) might be able to do that.
Title: Re: Choosing the type of memory to load stuff into.
Post by: csirac_ on June 03, 2003, 04:22:03 PM
You could write a program that retrieved how much ram the machine has free, malloc() a chunk that would fill the 16MB space, let WB load (and the background) then free the malloc'd space again...

- Paul
Title: Re: Choosing the type of memory to load stuff into.
Post by: prowler on June 04, 2003, 04:26:30 AM
Hrmmm, that's food for thought and something I didn't think of.

A small programme to allocate the memory then after a certain amount of time free it up again.
I wonder how hard or how safe it would be to change memory priority on the fly as well.

I will need to ponder these things :)