Welcome, Guest. Please login or register.

Author Topic: TLSFMem O(1) Memory Allocator  (Read 4202 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show all replies
Re: TLSFMem O(1) Memory Allocator
« on: October 15, 2007, 06:42:27 PM »
What a pleasant surprise from Platon42!! :-) Thank you!
 I'm using MemOptimizer currently and i will test this patch, asap.

@platon42
 From the docs:
Quote
There is a bug in all known version of the scsi.device (both  IDE  and  NCR
SCSI).  The devices will allocate an IORequest structure (32 bytes big) and
then use it as IOStdReq structure (which  is  48  bytes  big),  overwriting
innocent  memory past the 32 allocated bytes. By chance, this seems to have
no noticable effect on the  standard  AmigaOS  allocator,  but  immediately
kills   TLSFMem,  as  a  vital  pointer  in  its  internal  structures  are
overwritten. Don't get me wrong: This is a bug in the scsi.device and  that
TLSFMem triggers it makes it no bug of TLSFMem.

 Hey, do you think that this bug could explain the (urg!..) partition trashing experiences that i had with PoolMem and AllocP?? (No problems with MemOptimizer, so far)
 What are the expected consequences of this? I do know that you provide a bug-fix, but i still would like to know.

Edit:
 Oh, another (important, i believe) question please: Many ppl like me are using the IDEFix package which patches/replaces the standard scsi.device. What's the case with this one? Is there a need for a fix? Which one from the ScsiBugfix directory?
A1200 PPC user.
 

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show all replies
Re: TLSFMem O(1) Memory Allocator
« Reply #1 on: October 15, 2007, 08:26:09 PM »
@platon42
 Thanks for the reply.
 I have found a serious problem with your patch:
Every WOS and PUP progs i have tried so far, refuses to work when TLSFMem is installed. :-(

 Anyone else have this problem?
A1200 PPC user.
 

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show all replies
Re: TLSFMem O(1) Memory Allocator
« Reply #2 on: October 16, 2007, 04:12:34 PM »
Quote
I have found a serious problem with your patch:
Every WOS and PUP progs i have tried so far, refuses to work when TLSFMem is installed.

 So..  Is there anyone with a PPC board who confirms this?
A1200 PPC user.
 

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show all replies
Re: TLSFMem O(1) Memory Allocator
« Reply #3 on: October 17, 2007, 05:56:02 PM »
@platon42
 A pity because according to AllocatorBenchmark, your patch is superior from the others. :-(
A1200 PPC user.