Welcome, Guest. Please login or register.

Author Topic: Memory defrag - any tool available?  (Read 2840 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Memory defrag - any tool available?
« Reply #14 from previous page: December 14, 2005, 08:06:32 PM »
Actually 'defraging' your physical memory is completely impossible as there's no way to tell running processes to relocate their data. And there's no way to find out yourself where all the pointers are.
With the help of the MMU it would be possible to re-align the non-allocated tile sized memory chunks into one single chunk (thus creating additional logical memory), but there's no such tool around afaik.
Logical memory can create problems with allocating buffers for DMA, too...
 

Offline SHADES

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 355
  • Country: au
    • Show only replies by SHADES
Re: Memory defrag - any tool available?
« Reply #15 on: December 14, 2005, 09:46:14 PM »
@Zac67
Surely there is a lookup table or something for the system. How would the system know where memory is allocated to what program or where it can find free memory otherwise.
If a memory defrag program can also look at this table, it would probably be possible to create some sort of defrag.
It's not the question, that is the problem, it is the problem, that is the question.
 

Offline MskoDestny

  • Sr. Member
  • ****
  • Join Date: Oct 2004
  • Posts: 363
    • Show only replies by MskoDestny
    • http://www.retrodev.com
Re: Memory defrag - any tool available?
« Reply #16 on: December 14, 2005, 10:26:54 PM »
Quote

SHADES wrote:
@Zac67
Surely there is a lookup table or something for the system. How would the system know where memory is allocated to what program or where it can find free memory otherwise.

The OS knows where the free and allocated memory is. The problem is that the OS has no way of telling the application using the memory that the memory allocated to it has moved (PalmOS has a mechanism for this, but it requires software to be written specifically to take advantage of it).

The most a utility could do (short of mucking about with the MMU) is join contiquous free blocks in the free memory list, but I would hope the OS does this by itself.
 

Offline Doobrey

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: Memory defrag - any tool available?
« Reply #17 on: December 14, 2005, 10:40:55 PM »
Quote

MskoDestny wrote:
The most a utility could do (short of mucking about with the MMU) is join contiquous free blocks in the free memory list, but I would hope the OS does this by itself.


Wouldn't that mean all of exec's memory functions would have to be patched too to take into account the page sizes used by the MMU.. and if so, wouldn't it make AllocMem/AllocVec etc wastefull for small allocations(Or does exec already have a minimum size to stop the memory lists getting stupidly long)?
On schedule, and suing
 

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show only replies by AmigaMance
Re: Memory defrag - any tool available?
« Reply #18 on: December 14, 2005, 11:40:15 PM »
 Yeah, patches like FragCure will do the job. But, i wonder if they interfere somehow with the allocmem/freemem functions of the newer execs, like exec44 and 45.
A1200 PPC user.
 

Offline Dr_Righteous

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1345
    • Show only replies by Dr_Righteous
Re: Memory defrag - any tool available?
« Reply #19 on: December 15, 2005, 03:31:08 AM »
Heh, guess no one thought to write EMM680x0
- Doc

A4000D, A3640 OC-36.3MHz, custom tower, Mediator A4000D. Diamond Banshee 16M, Indivision AGA 4000, GVP HC+8.

Mac Mini 1.5GHz, that might run MorphOS someday, when the fools who own it come to the realization that 30 minutes just isn\'t enough time to play with it enough to decide whether or not you like it enough to cough up $200.

 - Someone please design SOME kind of DIY accelerator for the A4000. :D -