Welcome, Guest. Please login or register.

Author Topic: Development of Tlsfmem as Memtlsf Allowed by Chris Hodge  (Read 5542 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline unusedunusedTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Development of Tlsfmem as Memtlsf Allowed by Chris Hodge
« on: November 13, 2007, 05:47:18 PM »
I get the allow from Chris Hodge to reassemble and release tlsfmem with that rule to rename it and add a remark in the readme.

Currently I notice some enforcer Hits and crashes happen when run wipeout(68k memtracker) and end amigaamp.

When start Yam 2.4p1 too get enforcerHits.

Not 100% sure if that Bug in program or tlfsmem is yet.

Because Chris does not look for fixes he told me in E-Mail, so  i wait until December if maybe the situation change.

If not, i begin reassemble it.
That is possible, blitzbasic code is too reassemble.

if you reproducable problems with tlsfmem let me know.the more bad Situations know the easier it is to find the Problem.

Maybe other AOS developers can help here too.
 

Offline unusedunusedTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Development of Tlsfmem as Memtlsf Allowed by Chris Hodge
« Reply #1 on: November 13, 2007, 07:28:08 PM »
I have told in the news, that i only begin on December if Chris do not fix anything.

i only want inform that furtherdevelop is possible and collect for Bug Reports.

so there is currently nothing to test.
 

Offline unusedunusedTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Development of Tlsfmem as Memtlsf Allowed by Chris Hodge
« Reply #2 on: November 14, 2007, 09:46:37 AM »
if the mungwall not work, doesnt matter, because mugwall is not usefull for developing today, because it tracks not poolmem.

a tool that do that and more is wipeout.it is opensource and with that tlsfmem that work.

i notice a fast speedup when use wipoeut(memtracker) mung memory.my 256 mb ram take without tlsfmem ca. 1 sec.

with tlsf mem it take not measurable time.

yam2.4p1 and MUI crash when use tlsf mem(see the hits)but when use zune and AFA OS it work.
after long time use i notice with AFA too random hangers with TLSF Mem, on startup but no crash, YAM does not continue to start.

but for speedmeasuring it is usefull  

My YAM have 6200 Mails in inbox.
when start without wipeout YAM take 3,5 sec.
here no diffrence with our without tlsf Mem.

But when use wipeout then YAM start without tlsfmem in 6,1 -6,3 sec (handstoppet)

with tlsf mem it start in 4,5-4,8 sec.
 

Offline unusedunusedTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Development of Tlsfmem as Memtlsf Allowed by Chris Hodge
« Reply #3 on: November 15, 2007, 04:40:22 PM »
>No software can fill 256MB memory instantly.

i have a AMD64 3000+ with DUAL Channel DDR Ram and winuae.
sysspeed show me fast2fastm 828 Megabytes/sec

so in theory can be faster than wipeout and old mem system do ;-)

but you are right, i do a complete coldstart and verify and see wipeout with tlsfmem does not fill.

something i must add on todo list.it is important that the developers tools work 100% with memtlsf.

mungwall is faster sure, because it do not munge allocpooled and freepooled.

memfree on old AOS memallocater is very slow, so many programs use memory pools.

because poolmem was lots faster in praxis i change amiblitz to use mempools and here are find out that mungwall does not track mempool memory.

when i have tlsfmem in year 2000 then i save lots work -;)

but the algo is only found 2005

>If i have understood you correctly, you plan to >convert highly optimized assembly code to >blitzbasic?

i reassemble it to 68k asm code back, with in_go(aminet) and it stay asm.

but of course i use a modern graphical assembler ide where i can click on a jsr label and the editor jump to the label.this is important to navigate in unknwon programs that do many nestet jumps

so i develop memtlsf in amiblitz assembler.
 

Offline unusedunusedTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Development of Tlsfmem as Memtlsf Allowed by Chris Hodge
« Reply #4 on: November 16, 2007, 05:24:48 PM »
>Amiblitz Assembler sounds awesome!

wy.C have too support of inline assembler code.

but in amiblitz it is much more easy to code in asm in basic code.

for example you can do
var = 40

move.l @var(a4),d0
add.l #10,d0
move.l d0,@var(a4)
print var
 

Offline unusedunusedTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show all replies
Re: Development of Tlsfmem as Memtlsf Allowed by Chris Hodge
« Reply #5 on: November 18, 2007, 12:13:32 PM »
to mix very easy assembler and basic code was the first step done in amiblitz in when released 2001

this was necessary, because blitzbasic source was asm and in most part the fast asm speed is not necessary.

amiblitz use for new code basic and the old code stay in asm.

BTW: it is possible to test the amiblitz speed compare to c speed, when you download at www.hd-rec.de

if you do that with the existing CPU expensive effects as reverb, you can see that amiblitz sometimes is little faster sometimes little slower as gcc C.

to reach the speed amiblitz offer to load varibale to registers to avoid unescessary load of vars by bad compiler optimation.

for example

regload var1,var2,var3,var4
.....
calculation
.....
regsave var1,var2,var3,var4 ;//(if some values are changed)