Welcome, Guest. Please login or register.

Author Topic: Choosing the type of memory to load stuff into.  (Read 1628 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline prowlerTopic starter

  • Full Member
  • ***
  • Join Date: Sep 2002
  • Posts: 182
    • Show only replies by prowler
Choosing the type of memory to load stuff into.
« 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 ?
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: Choosing the type of memory to load stuff into.
« Reply #1 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.
Playstation Network ID: xeron6
 

Offline csirac_

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 154
    • Show only replies by csirac_
Re: Choosing the type of memory to load stuff into.
« Reply #2 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
 

Offline prowlerTopic starter

  • Full Member
  • ***
  • Join Date: Sep 2002
  • Posts: 182
    • Show only replies by prowler
Re: Choosing the type of memory to load stuff into.
« Reply #3 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 :)