Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline humppaTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2005
  • Posts: 959
    • Show only replies by humppa
Memory defrag - any tool available?
« on: December 14, 2005, 09:10:53 AM »
Hi,

I am looking for a tool for memory (not harddisk!) defragmentation.

I am currently testing Blitzquake on my Mediator/Voodoo3 setup. Since I have an Apollo with only 32MB of RAM, there is definately a memory bottleneck for running Blitzquake.

When I start it after doing WB-stuff for some time, I frequently get a guru (potentially due to a lack of memory).
Sometimes it does not even start although I set "-mem 10" and having about 28MB still available.

I don't have any problems if I start Blitzquake after a fresh reboot since the memory is not yet fragmented into small chunks.

I just don't wanna reboot each time I start glquake. So is there a way for defragging memory to larger blocks from the Workbench?

Thanks for any suggestions!

Btw, it runs really smooth -if- it runs. I was amazed what I can achieve with the 68k version. It looks so much better than the version without Warp3D. Are there any other games/demos available for 68k with Warp3D? I guess Payback won't run with only 32MB... :roll:
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Memory defrag - any tool available?
« Reply #1 on: December 14, 2005, 09:13:22 AM »
PoolMem on Aminet
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Memory defrag - any tool available?
« Reply #2 on: December 14, 2005, 09:17:39 AM »
and is a damn good tool but . . avoid to use it with PFS3 (don't know if with SFS too)

 

Offline humppaTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2005
  • Posts: 959
    • Show only replies by humppa
Re: Memory defrag - any tool available?
« Reply #3 on: December 14, 2005, 09:53:30 AM »
Thanks, I will definately try it out!

I am using SFS, so I hope that both work together.

What does a memory defrag tool have to do with my filesystem by the way?
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Memory defrag - any tool available?
« Reply #4 on: December 14, 2005, 09:57:48 AM »
is your filesystem part of the "system"? it uses caches? it uses the memory therefore it has something to do :-)

 

Offline humppaTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2005
  • Posts: 959
    • Show only replies by humppa
Re: Memory defrag - any tool available?
« Reply #5 on: December 14, 2005, 10:07:54 AM »
Ok, understood. I didn't know that Poolmem was constantly running - that's why did not see the link.

I was looking for a tool that can be run once and just defrags the memory. Poolmem rather looks like a hack. I hope it does not cause instability since I am already running so many other hacks and patches...
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Memory defrag - any tool available?
« Reply #6 on: December 14, 2005, 10:42:17 AM »
ah, no it always running (it would impossible to defragment memory in runtime)

i know people that are using and are happy with it.

IIRC in the archive, theres also an useful graphical tool to "see" the fragmented memory.

Read carefully the docs (PoolMem has some important/critical options)

try with the NOCHIP and NOMERGE options at least.

 

Offline rockape

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 383
    • Show only replies by rockape
    • http://lincsamiga.org.uk/
Re: Memory defrag - any tool available?
« Reply #7 on: December 14, 2005, 11:21:31 AM »
Hi,

Open a shell and type "avail flush"

Or

Have a look on Aminet

See: http://aminet.net/search.php?query=flush

For examples of `flush' programs.


Regards, Michael

aka rockape
"A veteran is someone who, at one point in their life wrote a blank check made payable to \'Their Country\' for an amount of \'up to and including their life\'.
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Memory defrag - any tool available?
« Reply #8 on: December 14, 2005, 11:27:46 AM »
:-?

 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Memory defrag - any tool available?
« Reply #9 on: December 14, 2005, 11:30:21 AM »
@Framiga
Quote
avoid to use it with PFS3

Why? I used it for years, and all my filesystems were PFS3. No problems whatsoever.
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Memory defrag - any tool available?
« Reply #10 on: December 14, 2005, 11:34:39 AM »
here i have problems with PoolMem and PFS3.

You don't? better for you :-)
 

Offline AmiDude

  • Hero Member
  • *****
  • Join Date: Oct 2005
  • Posts: 903
    • Show only replies by AmiDude
Re: Memory defrag - any tool available?
« Reply #11 on: December 14, 2005, 11:47:38 AM »
@humppa

You could use this FragCure command:

www.aminet.net/search.php?query=FragCure

Put it right after the SetPatch command in the
startup-sequence:

"C:SetPatch"
"C:FragCure 65536"

 :-)
 

Offline humppaTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2005
  • Posts: 959
    • Show only replies by humppa
Re: Memory defrag - any tool available?
« Reply #12 on: December 14, 2005, 12:41:41 PM »
From my understanding "avail flush" just removes all unused libraries out of ram.

This will increase the ram I have available, but will not defragment it into larger blocks. Blitzquake needs the memory in one large block.
 

Offline AmiDude

  • Hero Member
  • *****
  • Join Date: Oct 2005
  • Posts: 903
    • Show only replies by AmiDude
Re: Memory defrag - any tool available?
« Reply #13 on: December 14, 2005, 02:55:41 PM »
"avail flush" doesn't defragment any memory...
You have to use programs like FragCure.
This wil defragment it into larger blocks,
so you can play your Blitzquake game.
 :-)
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Memory defrag - any tool available?
« Reply #14 on: 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...